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/elf-bfd.h | |
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/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 24ebcd9..46978d0 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -883,6 +883,12 @@ struct bfd_elf_section_data #define elf_group_name(sec) (elf_section_data(sec)->group_name) #define elf_next_in_group(sec) (elf_section_data(sec)->next_in_group) +/* Return true if section has been discarded. */ +#define elf_discarded_section(sec) \ + (!bfd_is_abs_section(sec) \ + && bfd_is_abs_section((sec)->output_section) \ + && elf_section_data (sec)->sec_info_type != ELF_INFO_TYPE_MERGE) + #define get_elf_backend_data(abfd) \ ((struct elf_backend_data *) (abfd)->xvec->backend_data) |