diff options
author | Doug Kwan <dougkwan@google.com> | 2010-06-30 06:41:09 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2010-06-30 06:41:09 +0000 |
commit | b2286c10fe98d0bc1e4e207d0966cbd9e3bba58a (patch) | |
tree | 292470d366a43ff72fe1cd45398e3df194f60999 /gold/arm-reloc-property.h | |
parent | 3863f96c205610e5351a0484cc9d45f9779365bf (diff) | |
download | gdb-b2286c10fe98d0bc1e4e207d0966cbd9e3bba58a.zip gdb-b2286c10fe98d0bc1e4e207d0966cbd9e3bba58a.tar.gz gdb-b2286c10fe98d0bc1e4e207d0966cbd9e3bba58a.tar.bz2 |
2010-06-29 Doug Kwan <dougkwan@google.com>
* arm-reloc-property.cc (Arm_reloc_property::Arm_reloc_property):
Initialize USE_SYMBOL_.
* arm-reloc-property.h (Arm_reloc_property::uses_symbol): New method
definition.
(Arm_reloc_property::uses_symbol_): New data member declaration.
* arm.cc (Target_arm::Relocate::relocate): Exit early if relocation
uses symbol value and symbol is undefined but not weakly undefined.
Diffstat (limited to 'gold/arm-reloc-property.h')
-rw-r--r-- | gold/arm-reloc-property.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/arm-reloc-property.h b/gold/arm-reloc-property.h index 349d862..e7d7f50 100644 --- a/gold/arm-reloc-property.h +++ b/gold/arm-reloc-property.h @@ -132,6 +132,11 @@ class Arm_reloc_property uses_symbol_base() const { return this->uses_symbol_base_; } + // Whether relocation uses the symbol. + bool + uses_symbol() const + { return this->uses_symbol_; } + // Return the type of relative address base or RAB_NONE if this // is not a relative addressing relocation. Relative_address_base @@ -273,6 +278,8 @@ class Arm_reloc_property bool uses_symbol_base_ : 1; // Whether this uses an addend. bool uses_addend_ : 1; + // Whether this uses the symbol. + bool uses_symbol_ : 1; }; // Arm_reloc_property_table. This table is used for looking up propeties |