diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-04-03 10:08:29 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-04-04 08:29:16 -0700 |
commit | b52920324fabbcad93042f2e17de52696d0dab42 (patch) | |
tree | 35f0068b46fd2e207feba053509415467c86ac11 /include | |
parent | 65dd1e590e519eba10bc29fb6e952271e0604c9b (diff) | |
download | gdb-b52920324fabbcad93042f2e17de52696d0dab42.zip gdb-b52920324fabbcad93042f2e17de52696d0dab42.tar.gz gdb-b52920324fabbcad93042f2e17de52696d0dab42.tar.bz2 |
RISC-V: Resurrect GP-relative disassembly hints
We missed a "_gp" when changing the GP symbol. To make sure that
doesn't happen again, we now use the same definition everywhere (thanks,
Nick).
include/ChangeLog:
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* elf/riscv.h (RISCV_GP_SYMBOL): New define.
bfd/ChangeLog:
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* elfnn-riscv.c (GP_NAME): Delete.
(riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
(_bfd_riscv_relax_lui): Likewise.
opcodes/ChangeLog:
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* riscv-dis.c (riscv_disassemble_insn): Change "_gp" to
RISCV_GP_SYMBOL.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/riscv.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 70ab0a8..c7a0ef2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> + + * elf/riscv.h (RISCV_GP_SYMBOL): New define. + 2017-03-27 Andrew Waterman <andrew@sifive.com> * opcode/riscv-opc.h (CSR_PMPCFG0): New define. diff --git a/include/elf/riscv.h b/include/elf/riscv.h index 526bc11..daa4463 100644 --- a/include/elf/riscv.h +++ b/include/elf/riscv.h @@ -109,4 +109,7 @@ END_RELOC_NUMBERS (R_RISCV_max) /* File uses the quad-float ABI. */ #define EF_RISCV_FLOAT_ABI_QUAD 0x0006 +/* The name of the global pointer symbol. */ +#define RISCV_GP_SYMBOL "__global_pointer$" + #endif /* _ELF_RISCV_H */ |