undefined reference when mixing a.out and ELF object files ?

Vincent Rivière vincent.riviere@freesbee.fr
Fri May 2 16:11:00 GMT 2008


Nick Clifton wrote:
> Tell you what - if you can put together a *small* and *simple* test 
> case for me I will it out locally and see if I can find a fix.  No 
> promises though... :-)

I finally managed to reproduce it !
There was actually another important element: the problem occurs only 
when there is a stab warning in the a.out object file. I have been very 
unlucky, because I felt in that trap on my very first ELF test: I called 
the gets() function, which causes a linker warning in my libc because it 
is a dangerous function. Because of the bug the whole libc failed to link !

To be continued here:
http://sourceware.org/bugzilla/show_bug.cgi?id=6478

There is probably something wrong with N_WARNING...

-- 
Vincent Rivière



More information about the Binutils mailing list