https://sourceware.org/bugzilla/show_bug.cgi?id=22981
Bug ID: 22981
Summary: ld: BFD (GNU Binutils) 2.30.0.20180226-0 assertion
fail ../../bfd/elf.c:3564
Product: binutils
Version: 2.30
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
> echo '#define FOO BAR' > t.c
> gcc-7 t.c -g3 -c
> ld -r -s t.o -o tx.o
ld: BFD (GNU Binutils; devel:gcc / openSUSE_Leap_42.2) 2.30.0.20180226-0
assertion fail ../../bfd/elf.c:3564
ld: BFD (GNU Binutils; devel:gcc / openSUSE_Leap_42.2) 2.30.0.20180226-0
assertion fail ../../bfd/elf.c:3564
looks like ld -s doesn't like
[ 1] .group GROUP 0000000000000000 00000040
000000000000000c 0000000000000004 21 14 4
[ 2] .group GROUP 0000000000000000 0000004c
000000000000000c 0000000000000004 21 15 4
[11] .debug_macro PROGBITS 0000000000000000 000000ac
0000000000000020 0000000000000000 0 0 1
[12] .rela.debug_macro RELA 0000000000000000 00003258
0000000000000060 0000000000000018 I 21 11 8
[13] .debug_macro PROGBITS 0000000000000000 000000cc
00000000000007ea 0000000000000000 G 0 0 1
[14] .rela.debug_macro RELA 0000000000000000 000032b8
0000000000001f98 0000000000000018 IG 21 13 8
[15] .debug_macro PROGBITS 0000000000000000 000008b6
0000000000000022 0000000000000000 G 0 0 1
[16] .rela.debug_macro RELA 0000000000000000 00005250
COMDAT group section [ 1] `.group' [wm4.0.fade8ac3fef0ae2a926ae61f60e6e0e5]
contains 2 sections:
[Index] Name
[ 13] .debug_macro
[ 14] .rela.debug_macro
COMDAT group section [ 2] `.group'
[wm4.stdcpredef.h.19.52894a18705f0664f8da17e99c6c0a93] contains 2 sections:
[Index] Name
[ 15] .debug_macro
[ 16] .rela.debug_macro
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils