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): binutils-2.19.51.0.14-31 How reproducible: always Steps to Reproduce: 1.see above 2. 3. Actual results: No special ABI indicated Expected results: ELFOSABI_LINUX used Additional info:
Created attachment 363029 [details] Always set the OSABI field to ELFOSABI_LINUX if unique symbols are used
Hi Uli, 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. Cheers Nick
(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.
Hi Uli, The latest development binutils rpm now contains this patch. Cheers Nick
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. Cheers Nick
I verified it works in rawhide. This fix should be in RHEL6. Will RHEL6 get a rebase on rawhide?