This is the mail archive of the binutils@sourceware.org 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]

Fwd: [PATCH][GOLD] Classes to support stub generation in ARM.


[+ccoutant@google.com]


---------- Forwarded message ----------
From: Doug Kwan (Ãö®¶¼w) <dougkwan@google.com>
Date: 2009/10/1
Subject: Re: [PATCH][GOLD] Classes to support stub generation in ARM.
To: Ian Lance Taylor <iant@google.com>, binutils@sourceware.org


This is an updated patch.  My sandbox broke after merging in the
target information removal of the object class.  I changed to code a
little to make things working again.

2009-10-01  Doug Kwan  <dougkwan@google.com>

       * arm.cc: Update copyright comments.
       (Target_arm): New forward class template declaration.
       (Arm_address): New type.
       (ARM_MAX_FWD_BRANCH_OFFSET, ARM_MAX_BWD_BRANCH_OFFSET,
       THM_MAX_FWD_BRANCH_OFFSET, THM_MAX_BWD_BRANCH_OFFSET,
       THM2_MAX_FWD_BRANCH_OFFSET, THM2_MAX_BWD_BRANCH_OFFSET): New
       constants.
       (Insn_template): Same.
       (DEF_STUBS): New macro.
       (Stub_type): New enum type.
       (Stub_template): New class definition.
       (Stub): Same.
       (Reloc_stub): Same.
       (Stub_factory): Same.
       (Target_arm::Target_arm): Initialize use_blx_ and pic_veneer_.
       (Target_arm::use_blx, Target_arm::set_use_blx, Target_arm::pic_veneer,
       Target_arm::set_pic_veneer, Target_arm::using_thumb2,
       Target_arm::using_thumb_only, Target_arm:;default_target): New
       method defintions.
       (Target_arm::use_blx_, Target_arm::pic_veneer_): New data member
       declarations.
       (Insn_template::size, Insn_template::alignment): New method
       defintions.
       (Stub_template::Stub_template): New method definition.
       (Reloc_stub::Key::name, Reloc_stub::stub_type_for_reloc,
       Reloc_stub::do_fixed_endian_write, Reloc_stub::do_write): Same.
       (Stub_factory::Stub_factory): New method definition.


2009/9/30 Doug Kwan (Ãö®¶¼w) <dougkwan@google.com>:
> Hi,
>
>    This patch contains a number of classes to support stub generation
> of ARM.  Since the stub machinery is pretty self-contained, it is
> broken out to make reviewing easier.  The code to use these classes
> will be sent out in subsequent patches.
>
> -Doug
>
> 2009-09-30  Doug Kwan  <dougkwan@google.com>
>
>        * arm.cc: Update copyright comments.
>        (Target_arm): New forward class template declaration.
>        (Arm_address): New type.
>        (ARM_MAX_FWD_BRANCH_OFFSET, ARM_MAX_BWD_BRANCH_OFFSET,
>        THM_MAX_FWD_BRANCH_OFFSET, THM_MAX_BWD_BRANCH_OFFSET,
>        THM2_MAX_FWD_BRANCH_OFFSET, THM2_MAX_BWD_BRANCH_OFFSET): New
>        constants.
>        (Unsized_arm_target): New class definition.
>        (Insn_template): Same.
>        (DEF_STUBS): New macro.
>        (Stub_type): New enum type.
>        (Stub_template): New class definition.
>        (Stub): Same.
>        (Reloc_stub): Same.
>        (Stub_factory): Same.
>        (Target_arm::Target_arm): Initialize use_blx_ and pic_veneer_.
>        (Target_arm::use_blx, Target_arm::set_use_blx, Target_arm::pic_veneer,
>        Target_arm::set_pic_veneer, Target_arm::using_thumb2,
>        Target_arm::using_thumb_only): New method defintions.
>        (Target_arm::use_blx_, Target_arm::pic_veneer_): New data member
>        declarations.
>        (Insn_template::size, Insn_template::alignment): New method
>        defintions.
>        (Stub_template::Stub_template): New method definition.
>        (Reloc_stub::Key::name, Reloc_stub::stub_type_for_reloc,
>        Reloc_stub::do_fixed_endian_write, Reloc_stub::do_write): Same.
>        (Stub_factory::Stub_factory): New method definition.
>

Attachment: patch.txt
Description: Text document


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