diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2003-10-18 15:42:40 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2003-10-18 15:42:40 +0000 |
commit | f60ebe1430678802e6143b20150eb4cac65023b2 (patch) | |
tree | cd21de2995dad134f24df99dc31ee314385fdf97 /bfd/reloc.c | |
parent | 666de3fd45399522be05ca076132902f13370a83 (diff) | |
download | gdb-f60ebe1430678802e6143b20150eb4cac65023b2.zip gdb-f60ebe1430678802e6143b20150eb4cac65023b2.tar.gz gdb-f60ebe1430678802e6143b20150eb4cac65023b2.tar.bz2 |
Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs.
* elf64-mmix.c (MAX_PUSHJ_STUB_SIZE): New macro.
(struct _mmix_elf_section_data): New member pjs.
(mmix_set_relaxable_size, mmix_elf_get_section_contents): New
functions.
(elf_mmix_howto_table): New entry for R_MMIX_PUSHJ_STUBBABLE.
(mmix_reloc_map): Ditto.
(mmix_elf_relocate_section): Handle R_MMIX_PUSHJ_STUBBABLE.
(mmix_final_link_relocate, mmix_elf_check_common_relocs): Ditto.
(mmix_elf_perform_relocation): Ditto. Don't mark parameter addr
unused.
(mmix_elf_check_relocs): Move early return to after
mmix_elf_check_common_relocs call.
(mmix_elf_symbol_processing): Fix cut-and-pasto in head comment.
(_bfd_mmix_before_linker_allocation): Rename from
_bfd_mmix_prepare_linker_allocated_gregs. All referers changed.
Arrange to set the initial relaxable size of sections.
(_bfd_mmix_after_linker_allocation): Rename from
_bfd_mmix_finalize_linker_allocated_gregs.
(mmix_elf_relax_section): Relax a R_MMIX_PUSHJ_STUBBABLE reloc.
(bfd_elf64_get_section_contents): Define.
* reloc.c: Add ENUMX for BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
* libbfd.h, bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 9ec83eb..5e3a592 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -3133,6 +3133,8 @@ ENUMX BFD_RELOC_MMIX_PUSHJ_2 ENUMX BFD_RELOC_MMIX_PUSHJ_3 +ENUMX + BFD_RELOC_MMIX_PUSHJ_STUBBABLE ENUMDOC These are relocations for the PUSHJ instruction. ENUM |