diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-14 15:21:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-14 15:21:54 +0000 |
commit | 6b31fd3af359b3478037f5e2f38da8f953e15b86 (patch) | |
tree | 9a65ee4b005987a5ddf2d262edd5ccecd0b59c31 /bfd/bfd-in2.h | |
parent | 19406903ab6849e34361a3a0c2aabbf46cd029fc (diff) | |
download | gdb-6b31fd3af359b3478037f5e2f38da8f953e15b86.zip gdb-6b31fd3af359b3478037f5e2f38da8f953e15b86.tar.gz gdb-6b31fd3af359b3478037f5e2f38da8f953e15b86.tar.bz2 |
Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
* reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
mistake to have reused the ECOFF LITERAL for ELF since they have
different semantics.
* elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
* bfd-in2.h, libbfd.h: Rebuild.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
section overflow.
* elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
dynamic relocation for an undefweak symbol when we are building
a static executable.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 252931d..4767c0c 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1635,6 +1635,12 @@ section symbol. The addend is ignored when writing, but is filled in with the file's GP value on reading, for convenience, as with the GPDISP_LO16 reloc. +The ELF_LITERAL reloc is somewhere between 16_GOTOFF and GPDISP_LO16. +It should refer to the symbol to be referenced, as with 16_GOTOFF, +but it generates output not based on the position within the .got +section, but relative to the GP value chosen for the file during the +final link stage. + The LITUSE reloc, on the instruction using the loaded address, gives information to the linker that it might be able to use to optimize away some literal section references. The symbol is ignored (read @@ -1646,6 +1652,7 @@ of instruction using the register: The GNU linker currently doesn't do any of this optimizing. */ BFD_RELOC_ALPHA_LITERAL, + BFD_RELOC_ALPHA_ELF_LITERAL, BFD_RELOC_ALPHA_LITUSE, /* The HINT relocation indicates a value that should be filled into the |