https://sourceware.org/bugzilla/show_bug.cgi?id=26268
Bug ID: 26268 Summary: --gc-sections -u __start_cident inconsistent for -r and non-relocatable links Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s .section cident,"a",@progbits .byte 0 % as a.s -o a.o % ld.bfd -r --gc-sections --print-gc-sections -u __start_cident a.o -o a ld.bfd: removing unused section 'cident' in file 'a.o' % ld.bfd --gc-sections --print-gc-sections -u __start_cident a.o -o a ld.bfd: warning: cannot find entry symbol _start; not setting start address Non-relocatable links retain 'cident' while relocatable links discard it. I don't know whether the rule should be consistent here. I am also thinking how 'cident' should behave when it is in a section group. -- You are receiving this mail because: You are on the CC list for the bug.