Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing 5-31. libso corrupt? #40

Closed
kneoyskw opened this issue Sep 12, 2017 · 1 comment
Closed

Listing 5-31. libso corrupt? #40

kneoyskw opened this issue Sep 12, 2017 · 1 comment

Comments

@kneoyskw
Copy link
Contributor

something wrong with 2 command lines in Listing 5-31.
After two nasm lines, the book says:

ld -o main.o -d libso.so
ld -shared -o libso.so libso.o --dynamic-linker=/lib64/ld-linux-x86-64.so2

which does not work because libso.so is not yet generated.
Refering to the Makefile in libso directory and making it all right,
i guessed that the 2 lines shown above should be replaced with:

ld -shared -o libso.so libso.o
ld -o main main.o -d libso.so --dynamic-linker=/lib64/ld-linux-x86-64.so.2

@sayon
Copy link
Collaborator

sayon commented Dec 10, 2017

Fixed in #49. Thank you!

@sayon sayon closed this as completed Dec 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants