https://sourceware.org/bugzilla/show_bug.cgi?id=20022
--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Nick Clifton from comment #9) > Created attachment 9274 [details] > Revised patch > > Hi H.J. > > Of course, you are right. Plus the error message was wrong - it is not > undefined orphan section symbols that are the problem, it is defined ones. > Plus, really this ought to be a warning, not an error, since garbage > collection will work if the orphan section is referred to by non start/stop > symbols. > > So here is a revised patch. What do you think ? > _bfd_elf_is_start_stop is called only with --gc-sections. There is no need to check info->gc_sections. Also the defined __start_foo isn't a problem. The problem happens only when __start_foo is defined in a shared object. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils