https://sourceware.org/bugzilla/show_bug.cgi?id=21562
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- _bfd_elf_gc_mark_rsec has if (start_stop != NULL) { /* To work around a glibc bug, mark all XXX input sections when there is an as yet undefined reference to __start_XXX or __stop_XXX symbols. The linker will later define such symbols for orphan input sections that have a name representable as a C identifier. */ asection *s = _bfd_elf_is_start_stop (info, h); if (s != NULL) { *start_stop = !s->gc_mark; return s; } } The question is if ELF linker automatically creates a definition when there is a reference, regardless if the input section is orphan or not. -- 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