diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-27 22:38:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-27 22:38:18 +0000 |
commit | 7019cd256559b48bc642fcb8ff9a4ea9e98bced7 (patch) | |
tree | c88847678e9c212b482d4a30beccdd74abdd90c6 /gold/target-reloc.h | |
parent | * remote.c (remote_wait, remote_async_wait): Stop if we receive (diff) | |
download | binutils-gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.gz binutils-gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.bz2 binutils-gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.zip |
Implement -q/--emit-relocs.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r-- | gold/target-reloc.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h index 3fd96c3a52c..2bc0a1b3b69 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); |