nasm + libtool + shared lib

Georg Seidel <[email protected]>
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does anybody have experience with nasm in combination with shared
libraries (libtool)?

I just tried to link an external assembler function to the
gradnormmodule. Very frustrating. First it worked, then all of a
sudden, it segfaulted. Since I had not commited the asm file yet,
I could not reconstruct the exact version that worked, but
if I remember correctly, I had changed nothing in the asm file.

The strange thing is: when I link the asm file statically to a
test application everything works. And after I converted the
code to inline assembler it worked, too (in the shared
library).
And even stranger: it worked for some time, before it decided
to segfault!

I tried some weird automake stuff to persuade libtool to use nasm, but
without success.
One further thing: all mailing list entries I found with similar
problems are a few years (1 to 3) old, and one of the projects
seems to have changed to inline assembler (avifile, inside
plugins/libffmpeg).

hmm, don't know what to try next.
after the last few hours, I'm not sure anymore if we can use nasm on all
x86 plattforms in order to get rid of the compiler specific inline
assembler...

hope this turns out as a stupid bug.

i would really appreciate if someone could look over the code.
as I said, it's the gradnormmodule (modules/src/gradnormmodule),
and the external asm file is called roberts_cross_x86.asm.
I just mirrored my branch, the revision is:

~ [email protected]/gephex--georg--0.4--patch-143


georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAmZ9R/rP0cdKF/ToRAndMAJ4nKBVS21ki0dlNSb5H3ljKNOUUsgCgyRgL
lksW6v2f7cDQWHdehWyufb8=
=tQmt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.