diff options
author | David S. Miller <davem@redhat.com> | 2012-04-12 16:26:06 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2012-04-12 16:26:06 +0000 |
commit | 2615994e91176ae1a147439f81c452e5f5965920 (patch) | |
tree | 39fad336d6e5c3c564bd15e377256d88b737447c /include | |
parent | 214d508ee1d179d6c9e0e993d68628a0bc477124 (diff) | |
download | gdb-2615994e91176ae1a147439f81c452e5f5965920.zip gdb-2615994e91176ae1a147439f81c452e5f5965920.tar.gz gdb-2615994e91176ae1a147439f81c452e5f5965920.tar.bz2 |
Support R_SPARC_WDISP10 and R_SPARC_H34.
include/
* elf/sparc.h (R_SPARC_WDISP10): New reloc.
* opcode/sparc.h: Define '=' as generating R_SPARC_WDISP10.
opcodes/
* sparc-dis.c (X_DISP10): Define.
(print_insn_sparc): Handle '='.
bfd/
* reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Likewise.
* elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
(_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
(_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
(_bfd_sparc_elf_check_relocs): Likewise.
(_bfd_sparc_elf_gc_sweep_hook): Likewise.
(_bfd_sparc_elf_relocate_section): Likewise.
gas/
* config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
BFD_RELOC_SPARC_H34.
(md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
(tc_gen_reloc): Likewise.
gas/testsuite/
* gas/sparc/reloc64.s: Add abs34 code model tests.
* gas/sparc/reloc64.d: Update.
elfcpp/
* sparc.h (R_SPARC_WDISP10): New relocation.
gold/
* sparc.cc (Reloc::wdisp10): New relocation method.
(Reloc::h34): Likewise.
(Target_sparc::Scan::check_non_pic): Handle R_SPARC_H34.
(Target_sparc::Scan::get_reference_flags): Handle R_SPARC_H34 and
R_SPARC_WDISP10.
(Target_sparc::Scan::local): Likewise.
(Target_sparc::Scan::global): Likewise.
(Target_sparc::Relocate::relocate): Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/elf/sparc.h | 1 | ||||
-rw-r--r-- | include/opcode/sparc.h | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index e14f707..b1ff61c 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2012-04-12 David S. Miller <davem@davemloft.net> + + * elf/sparc.h (R_SPARC_WDISP10): New reloc. + * opcode/sparc.h: Define '=' as generating R_SPARC_WDISP10. + 2012-04-10 Tristan Gingold <gingold@adacore.com> * splay-tree.h: Conditionnaly includes stdint.h and inttypes.h diff --git a/include/elf/sparc.h b/include/elf/sparc.h index fc8a765..880ead6 100644 --- a/include/elf/sparc.h +++ b/include/elf/sparc.h @@ -162,6 +162,7 @@ START_RELOC_NUMBERS (elf_sparc_reloc_type) RELOC_NUMBER (R_SPARC_H34, 85) RELOC_NUMBER (R_SPARC_SIZE32, 86) RELOC_NUMBER (R_SPARC_SIZE64, 87) + RELOC_NUMBER (R_SPARC_WDISP10, 88) EMPTY_RELOC (R_SPARC_max_std) diff --git a/include/opcode/sparc.h b/include/opcode/sparc.h index 7ae3641..91dc696 100644 --- a/include/opcode/sparc.h +++ b/include/opcode/sparc.h @@ -208,7 +208,8 @@ typedef struct sparc_opcode 0 32/64 bit immediate for set or setx (v9) insns _ Ancillary state register in rd (v9a) / Ancillary state register in rs1 (v9a) - ( entire floating point state register (%efsr). */ + ( entire floating point state register (%efsr) + = 2+8 bit PC relative immediate. (v9) */ #define OP2(x) (((x) & 0x7) << 22) /* Op2 field of format2 insns. */ #define OP3(x) (((x) & 0x3f) << 19) /* Op3 field of format3 insns. */ |