Description of problem:
Assemble this file
.type a, @gnu_unique_object
a: .long 0
.size a, .-a
and the result will have on Linux/x86-64 a header which has an ELF header with
no special OSABI marker. But STB_GNU_UNIQUE requires that.
gas should also notice the STB_GNU_UNIQUE binding and change the OSABI to
ELFOSABI_LINUX, just as ld does.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
No special ABI indicated
Created attachment 363029 [details]
Always set the OSABI field to ELFOSABI_LINUX if unique symbols are used
This bug is a duplicate of the binutils PR 10549. (Or possibly the other way around). Anyway the uploaded patch should resolve the problem. Please let me know if you are happy with it.
(In reply to comment #2)
> Anyway the uploaded patch should resolve the problem. Please let me
> know if you are happy with it.
It looks good to me. Once a patched binutils is available we'll easily see whether the patch works. Thanks.
The latest development binutils rpm now contains this patch.
Isn't this already in F-13 binutils (== RHEL6 binutils ATM)?
(In reply to comment #5)
> Isn't this already in F-13 binutils (== RHEL6 binutils ATM)?
Yes it is. Or rather the patch that I believe will fix this problem is in F-13. I am waiting for feedback from Uli as to whether it fully solves the problem or not.
I verified it works in rawhide. This fix should be in RHEL6. Will RHEL6 get a rebase on rawhide?