diff options
author | Alan Modra <amodra@gmail.com> | 2004-07-01 13:48:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-07-01 13:48:53 +0000 |
commit | cdd3575c2204443be4e4ad258d61bac6c7f2f337 (patch) | |
tree | 04077db1ee96496a5118a832f584b9e4a06bf9ad /bfd/elf-bfd.h | |
parent | 0b5d8877912034b2af0c548afbb794e4dcd07fbd (diff) | |
download | gdb-cdd3575c2204443be4e4ad258d61bac6c7f2f337.zip gdb-cdd3575c2204443be4e4ad258d61bac6c7f2f337.tar.gz gdb-cdd3575c2204443be4e4ad258d61bac6c7f2f337.tar.bz2 |
bfd/
* elflink.c (elf_section_ignore_discarded_relocs): Revert last
change. Comment.
(elf_section_complain_discarded): New function. Handle
.gcc_except_table too.
(elf_link_input_bfd): Rewrite handling of relocs against symbols
in discarded sections.
* elf-bfd.h (elf_discarded_section): Protect macro arg.
ld/testsuite/
* ld-discard/extern.d: Update.
* ld-discard/start.d: Update.
* ld-discard/static.d: Update.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 532cdb3..1892cb1 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1067,8 +1067,8 @@ struct bfd_elf_section_data #define elf_discarded_section(sec) \ (!bfd_is_abs_section (sec) \ && bfd_is_abs_section ((sec)->output_section) \ - && sec->sec_info_type != ELF_INFO_TYPE_MERGE \ - && sec->sec_info_type != ELF_INFO_TYPE_JUST_SYMS) + && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \ + && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS) #define get_elf_backend_data(abfd) \ ((const struct elf_backend_data *) (abfd)->xvec->backend_data) |