Created attachment 6973 [details] ppc64 kernel linker script I see the following failure when building a ppc64 Linux kernel with gold: # gcc -c foo.c # ld -m elf64ppc -Bstatic -T vmlinux.lds foo.o ld: internal error in segment_precedes, at layout.cc:3183
Created attachment 6974 [details] Trivial source code to link
This is due to the linker script specifying two PT_NOTE segments, something that gold seems to think should not be allowed.
CVSROOT: /cvs/src Module name: src Changes by: amodra@sourceware.org 2013-04-21 23:21:56 Modified files: gold : ChangeLog layout.cc Log message: PR gold/15355 * layout.cc (Layout::segment_precedes): Allow more than one segment with the same type and flags. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.1068&r2=1.1069 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/layout.cc.diff?cvsroot=src&r1=1.249&r2=1.250
Fixed
*** Bug 16389 has been marked as a duplicate of this bug. ***