PATCH: PR ld/11133: Static linking with gc-sections deletes sections with __start/__stop reference

H.J. Lu
Tue Jan 5 19:49:00 GMT 2010

On Tue, Jan 5, 2010 at 11:11 AM, Ian Lance Taylor <> wrote:
> "H.J. Lu" <> writes:
>> __start_XXX and __stop_XXX symbols may reference the start address and
>> end address of the orphaned section.  We need to search all input files
>> for section XXX.  OK to install?
> I see code in lang_insert_orphan which defines the __start and __stop
> symbols.  Why does that code not work?

_bfd_elf_gc_mark_hook is run before lang_insert_orphan is called.


More information about the Binutils mailing list