cat > x.s <<\EOF .section.data.rel.ro,"aw",@progbits .align 16 .type_ZZ3fooiE1t, @object .size_ZZ3fooiE1t, 16 _ZZ3fooiE1t: .quad_ZN1AIiE1aE .quad0 .weak_ZN1AIiE1aE .section.rodata._ZN1AIiE1aE,"aG",@progbits,_ZN1AIiE1aE,comdat .align 4 .type_ZN1AIiE1aE, @gnu_unique_object .size_ZN1AIiE1aE, 4 _ZN1AIiE1aE: .long16 .section.note.GNU-stack,"",@progbits EOF sed 's/foo/bar/g' x.s > y.s gas/as-new -o x.o x.s gas/as-new -o y.o y.s ld/ld-new -shared -nostdlib -o x.so x.o y.o; echo $? cp -a y.o z.o binutils/strip-new -g z.o ld/ld-new -shared -nostdlib -o x.so x.o z.o; echo $?
The first link is fine, but the second complains. 0 `_ZN1AIiE1aE' referenced in section `.data.rel.ro' of z.o: defined in discarded section `.rodata._ZN1AIiE1aE[_ZN1AIiE1aE]' of z.o 1 The only difference is that one of the objects has been strip -g'ed in between. -- Summary: strip -g breaks objects with STB_GNU_UNIQUE Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: jakub at redhat dot com CC: bug-binutils at gnu dot org GCC target triplet: x86_64-linux http://sourceware.org/bugzilla/show_bug.cgi?id=10492 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils