This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GOLD] Avoid generating unused dynamic relocation for __exidx_{start,end}


On Tue, Mar 13, 2012 at 4:18 PM, Doug Kwan (éæå) <> wrote:
> [resend a previously sent e-mail to include binutils]
> Hi Ian,
> ÂThis patch fixes a problem in which unnecessary dynamic relocations
> are generated for __exidx_{start,end}. ÂThese symbols are special and
> references to them should use the local definition. ÂCurrently we
> define these symbols in the ARM backend too late. ÂThe patch adds a
> new target hook to generate target-specific symbols.
> 2012-03-13 ÂDoug Kwan Â<>
> Â Â Â * (Target_arm::do_define_standard_symbols): New method.
> Â Â Â (Target_arm::do_finalize_sections): Remove code which defines
> Â Â Â __exidx_start and __exidx_end. ÂMake symbol table parameter
> Â Â Â anonymous as it is not used.
> Â Â Â * (queue_middle_tasks): Call target hook to define any
> Â Â Â target-specific symbols.
> Â Â Â * target.h (Target::define_standard_symbols): New method.
> Â Â Â (Target::do_define_standard_symbols): Same.
> Â Â Â * testsuite/ (arm_exidx_test): Dump relocations also.
> Â Â Â * testsuite/ Regenerate.
> Â Â Â * testsuite/arm_exidx.s: Generate data relocations for __exidx_start
> Â Â Â and __exidx_end.
> Â Â Â * testsuite/ Check that no unused dynamic
> Â Â Â relocations are generated for __exidx_start and __exidx_end.
> -Doug

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]