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

Thomas Mader <thomas.mader at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from Thomas Mader <thomas.mader at gmail dot com> ---
(In reply to Alan Modra from comment #6)
> OK, so not a binutils bug causing these bad SHT_GROUP section entries.
> 
> The same nm error is reported for all binutils I tried back to 2.25 (at
> which point I stopped looking).  It is possible that your 2.28 binutils had
> some distro patches that made BFD behave better with these bad object files,
> but my binutils-2_28-branch version does not.

I found the problem.
Nix is stripping the libs and binaries on installation and there seems to be a
bug introduced in binutils 2.30 with strip.
I disabled the striping and everythings worked fine.
You can find the unstripped lib here:
https://drive.google.com/file/d/1fPjoNiQJNE5uzpCvqkRE1G7sMM5LbaNR/view?usp=sharing

Output of nix-build when stripping:

strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in
/nix/store/q674hw91v3605szwhhc8ypwdc2iqxb20-dmdBuild-2.079.1/lib 
/nix/store/q674hw91v3605szwhhc8ypwdc2iqxb20-dmdBuild-2.079.1/bin

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to