diff options
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r-- | bfd/elf64-sh64.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c index 352fd2973d..4739881ed7 100644 --- a/bfd/elf64-sh64.c +++ b/bfd/elf64-sh64.c @@ -3792,22 +3792,6 @@ sh64_elf64_finish_dynamic_sections (bfd *output_bfd, dyn.d_un.d_val = s->size; bfd_elf64_swap_dyn_out (output_bfd, &dyn, dyncon); break; - - case DT_RELASZ: - /* My reading of the SVR4 ABI indicates that the - procedure linkage table relocs (DT_JMPREL) should be - included in the overall relocs (DT_RELA). This is - what Solaris does. However, UnixWare can not handle - that case. Therefore, we override the DT_RELASZ entry - here to make it not include the JMPREL relocs. Since - the linker script arranges for .rela.plt to follow all - other relocation sections, we don't have to worry - about changing the DT_RELA entry. */ - s = elf_hash_table (info)->srelplt; - if (s != NULL) - dyn.d_un.d_val -= s->size; - bfd_elf64_swap_dyn_out (output_bfd, &dyn, dyncon); - break; } } @@ -3960,6 +3944,7 @@ static const struct bfd_elf_special_section sh64_elf64_special_sections[]= #define elf_backend_plt_readonly 1 #define elf_backend_want_plt_sym 0 #define elf_backend_got_header_size 24 +#define elf_backend_dtrel_excludes_plt 1 #include "elf64-target.h" |