This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][ARM] Handle --target1-abs, --target1-rel and --target2 options.
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: Ian Lance Taylor <iant at google dot com>, binutils <binutils at sourceware dot org>
- Date: Mon, 23 Nov 2009 11:40:44 +0800
- Subject: Re: [PATCH][ARM] Handle --target1-abs, --target1-rel and --target2 options.
- References: <498552560911160118n1c83f3d7of593cc71be3a6429@mail.gmail.com>
ping
2009/11/16 Doug Kwan (Ãö®¶¼w) <dougkwan@google.com>:
> Hi,
>
> This patch adds handling of --target1-abs, --target2-rel and
> --target2 options. Previously we hard-coded the real relocation types
> of R_ARM_TARGET1 and R_ARM_TARGET2.
>
> -Doug
>
> 2009-11-16 Doug Kwan <dougkwan@google.com>
>
> * arm.cc (Target_arm::Target_arm): Move method definition outside of
> class definition. Add code to handle --target1-rel, --target1-abs
> and --target2= options.
> (Target_arm::get_reloc_reloc_type): Change method to be non-static
> and const.
> (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data
> member declaration.
> (Target_arm::Scan::local, Target_arm::Scan::global,
> Target_arm::Relocate::relocate,
> Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust
> call to Target_arm::get_real_reloc_type.
> (Target_arm::get_real_reloc_type): Use command line options to
> determine real types of R_ARM_TARGET1 and R_ARM_TARGET2.
> * options.h (--target1-rel, --target1-abs, --target2): New ARM-only
> options.
>