aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2012-04-26 00:07:21 +0000
committerIan Lance Taylor <ian@airs.com>2012-04-26 00:07:21 +0000
commit2c54b4f42276b990ee7fd98a5f7c4629dac8f50b (patch)
tree415a2bf3b4c430e148e5920ec3102713d8ba0ab4 /gold/arm.cc
parent109bbf34a11a1a65f42ece14556a29100679294f (diff)
downloadgdb-2c54b4f42276b990ee7fd98a5f7c4629dac8f50b.zip
gdb-2c54b4f42276b990ee7fd98a5f7c4629dac8f50b.tar.gz
gdb-2c54b4f42276b990ee7fd98a5f7c4629dac8f50b.tar.bz2
* arm.cc (Target_arm::do_is_defined_by_abi): Make sym a const
pointer. (Stub_addend_reader::operator()): Declare Arm_relocate_functions as a class, not a struct. (Target_arm::scan_span_for_cortex_a8_erratum): Likewise. (Target_arm::apply_cortex_a8_workaround): Likewise. * gc.h: Declare Reloc_types as a struct, not a class. * object.h: Declare Symbols_data as a struct. * reloc.h: Declare Read_relocs_data as a struct. * target.h: Declare Relocate_info as a struct.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index dc6e64a..1ddbf7f 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -2314,7 +2314,7 @@ class Target_arm : public Sized_target<32, big_endian>
// Return whether SYM is defined by the ABI.
bool
- do_is_defined_by_abi(Symbol* sym) const
+ do_is_defined_by_abi(const Symbol* sym) const
{ return strcmp(sym->name(), "__tls_get_addr") == 0; }
// Return whether there is a GOT section.
@@ -6993,7 +6993,7 @@ Stub_addend_reader<elfcpp::SHT_REL, big_endian>::operator()(
const unsigned char* view,
const typename Reloc_types<elfcpp::SHT_REL, 32, big_endian>::Reloc&) const
{
- typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
+ typedef class Arm_relocate_functions<big_endian> RelocFuncs;
switch (r_type)
{
@@ -11709,7 +11709,7 @@ Target_arm<big_endian>::scan_span_for_cortex_a8_erratum(
// Check if we have an offending branch instruction.
uint16_t upper_insn = (insn >> 16) & 0xffffU;
uint16_t lower_insn = insn & 0xffffU;
- typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
+ typedef class Arm_relocate_functions<big_endian> RelocFuncs;
if (cortex_a8_reloc != NULL
&& cortex_a8_reloc->reloc_stub() != NULL)
@@ -11812,7 +11812,7 @@ Target_arm<big_endian>::apply_cortex_a8_workaround(
Valtype lower_insn = elfcpp::Swap<16, big_endian>::readval(wv + 1);
off_t branch_offset = stub_address - (insn_address + 4);
- typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
+ typedef class Arm_relocate_functions<big_endian> RelocFuncs;
switch (stub->stub_template()->type())
{
case arm_stub_a8_veneer_b_cond: