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 | ed4de5e2e022526c1d1294cefd2e3c1973d06c39 (patch) | |
tree | a496cf12d353b77f9385b28366c05a080d98f2b5 /bfd/elf64-alpha.c | |
parent | f94cac655291999adc7830dc28eebb1434337413 (diff) | |
download | gdb-ed4de5e2e022526c1d1294cefd2e3c1973d06c39.zip gdb-ed4de5e2e022526c1d1294cefd2e3c1973d06c39.tar.gz gdb-ed4de5e2e022526c1d1294cefd2e3c1973d06c39.tar.bz2 |
* 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 1bfe15d..14c20f3 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 |