Re: nasm + libtool + shared lib
Georg Seidel <[email protected]>
| Newsgroups | gmane.comp.video.gephex.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Still no clue what might cause the problems on linux. I think I found the cause of the problem (although I still don't understand why this can result in a segfault...). Somwhere in the nasm manual, in a section about building shared libraries, I found a remark that ebx is used to store the address of the global offset table. In a code snippet, I saw that ebx was saved before any further computations were done. So I simply push ebx in the function prologue, and pop it in the epilogue. Works just fine. I don't understand, however, why the compiler can assume that the function does not modify ebx. Any ELF/shared library experts? I will try to replace all inline assembler with external nasm files in the next weeks. Regards, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBE1LP/rP0cdKF/ToRAoRvAKC27358/AvQITPqBEg4ycqcisRs7ACguIKc 2RhQk7ygNQFHkiMIaVXwiP0= =XEM1 -----END PGP SIGNATURE-----