aboutsummaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
committerIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
commit7019cd256559b48bc642fcb8ff9a4ea9e98bced7 (patch)
treec88847678e9c212b482d4a30beccdd74abdd90c6 /gold/target-reloc.h
parent20b4711e0556d73b7a16250447ee5ca505b834db (diff)
downloadgdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.zip
gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.gz
gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.bz2
Implement -q/--emit-relocs.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index 3fd96c3..2bc0a1b 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -256,7 +256,7 @@ class Default_scan_relocatable_relocs
switch (classify.get_size_for_reloc(r_type, object))
{
case 0:
- return Relocatable_relocs::RELOC_COPY;
+ return Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_0;
case 1:
return Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_1;
case 2:
@@ -286,7 +286,7 @@ class Default_scan_relocatable_relocs
// local_section_strategy. Most targets should be able to use
// Default_scan_relocatable_relocs as this class.
-template<int size, bool big_endian, typename Target_type, int sh_type,
+template<int size, bool big_endian, int sh_type,
typename Scan_relocatable_reloc>
void
scan_relocatable_relocs(
@@ -365,7 +365,7 @@ scan_relocatable_relocs(
// Relocate relocs during a relocatable link. This is a default
// definition which should work for most targets.
-template<int size, bool big_endian, typename Target_type, int sh_type>
+template<int size, bool big_endian, int sh_type>
void
relocate_for_relocatable(
const Relocate_info<size, big_endian>* relinfo,
@@ -416,6 +416,7 @@ relocate_for_relocatable(
break;
case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_RELA:
+ case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_0:
case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_1:
case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_2:
case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_4:
@@ -503,6 +504,9 @@ relocate_for_relocatable(
}
break;
+ case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_0:
+ break;
+
case Relocatable_relocs::RELOC_ADJUST_FOR_SECTION_1:
Relocate_functions<size, big_endian>::rel8(padd, object,
psymval);