https://sourceware.org/bugzilla/show_bug.cgi?id=28910

--- Comment #6 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Stas Sergeev from comment #5)
> Created attachment 14836 [details]
> test case
> 
> This test-case ends with
> 
> ld: error: source object obj2.o has EABI version 5, but target out.o has
> EABI version 0
> ld: failed to merge target specific data of file obj2.o
> make: *** [Makefile:4: out.o] Error 1
> 
> Nick, could you please check if your patch
> fixes this? Seems a bit easier than to
> convince people to test the patch.

It doesn't. :-(  But you can fix the problem by rearranging the order of the
object files on the link command line:

  ld -r -o out.o obj2.o obj1.o 

This will remove the error, although you may still get a warning about obj2.o
not having a .note.GNU-stack section.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to