https://sourceware.org/bugzilla/show_bug.cgi?id=26265
Bug ID: 26265 Summary: Spurious 'gc-sections requires either an entry or an undefined symbol' when --init or --fini is specified 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: --- link_info.init_function & link_info.fini_function are GC roots. When they are explicitly specified, there is no need for the error: % ld.bfd -r --gc-sections -init _init a.o ld.bfd: gc-sections requires either an entry or an undefined symbol -- You are receiving this mail because: You are on the CC list for the bug.