Menu

#75 Linux a.out object format makes faulty code?

open
nobody
None
2
2003-09-02
2003-01-20
Anonymous
No

I had made a graphics library. It had always worked
correctly when I linked it static, thus, no problems.
But, when I learned to use configure and made a shared
object with libtool, the problems began.

If I complile my programs to use the library, that was
linked to a.out objects made by nasm instead of the elf
ones, programs using this library chash. Telling nasm
to make elf and doing all the same things makes the
library work.

If I link statically to the library, it works no matter
if the objects were a.out or elf.

I am completely puzzled.

The library uses configure and is safe to try, install
and uninstall. To test the a.out chrash configure it
with: 'configure --enable-nasm --with-nasm-output=aout'

The test program is very simple, displays a rotateable
3d gouraud pyramid. Works with elf and static linking,
chrashes with a.out dynamic linking.

If this is somehow caused by my poor coding skills, I
will die in shame.Bashing accepted at trilkk@hotmail.com ;)

The tar.bz2 file contains 2 directories. It should be
very straightforward

-Trilkk

Discussion

  • H. Peter Anvin

    H. Peter Anvin - 2003-09-02
    • priority: 5 --> 2
     
  • H. Peter Anvin

    H. Peter Anvin - 2003-09-02

    Logged In: YES
    user_id=58697

    Does anyone care about Linux a.out anymore? Builiding a.out
    shared libraries were a royal pain in the arse, so I
    wouldn't be surprised if NASM doesn't support it.

    Low priority.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.