This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [GOLD][PATCH] Do not scan merged sections for stubs.
- From: Ian Lance Taylor <iant at google dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Fri, 05 Feb 2010 17:58:16 -0800
- Subject: Re: [GOLD][PATCH] Do not scan merged sections for stubs.
- References: <498552561002051717o7b33626ena2fbf34a8e23fff6@mail.gmail.com>
"Doug Kwan (éæå)" <dougkwan@google.com> writes:
> 2010-02-05 Doug Kwan <dougkwan@google.com>
>
> PR 11247
> * arm.cc (Arm_relobj::section_is_scannable): New method.
> (Arm_relobj::section_needs_reloc_stub_scanning): Use it.
> (Arm_relobj::section_needs_cortex_a8_stub_scanning): Same.
> + // If this requires special offset handling, check to see if it is
> + // a relaxed section. If this is not, then it is a merged section that
> + // we cannot handle.
> + if (this->output_section_offset(shndx) == static_cast<uint64_t>(-1))
Change this to this->is_output_section_offset_invalid(shndx).
This is OK with that change.
Thanks.
Ian