diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-12-17 22:44:12 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2001-12-17 22:44:12 +0000 |
commit | c3551052661dbe4255508485cf97f307a459b322 (patch) | |
tree | 355d967e8800be0bfe70d84b9f4bc6bfee2b8575 /bfd/elf64-alpha.c | |
parent | 14a75f4db5ec61d5c2c13cb4499fd24c24c6df77 (diff) | |
download | binutils-redhat-c3551052661dbe4255508485cf97f307a459b322.tar.gz |
* elf-bfd.h (elf_discarded_section): Define.
* elflink.h (elf_link_input_bfd): Use it.
(elf_reloc_symbol_deleted_p): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Don't warn about
overflows for pc relative relocs against discarded sections.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r-- | bfd/elf64-alpha.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 1bfe15df64..14c20f3022 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -3628,6 +3628,15 @@ elf64_alpha_relocate_section (output_bfd, info, input_bfd, input_section, { const char *name; + /* Don't warn if the overflow is due to pc relative reloc + against discarded section. Section optimization code should + handle it. */ + + if (r_symndx < symtab_hdr->sh_info + && sec != NULL && howto->pc_relative + && elf_discarded_section (sec)) + break; + if (h != NULL) name = h->root.root.root.string; else |