diff options
author | Alan Modra <amodra@gmail.com> | 2006-02-15 14:12:54 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-02-15 14:12:54 +0000 |
commit | e0ae6d6fe927d3b0a19d9f909f74a09127fa1654 (patch) | |
tree | fc631f82bc41ddc2abcf19e865f282fb625507b9 /bfd | |
parent | 21e282f58e3fd8b4d069cd75b77d8aca1e17aec1 (diff) | |
download | fsf-binutils-gdb-e0ae6d6fe927d3b0a19d9f909f74a09127fa1654.zip fsf-binutils-gdb-e0ae6d6fe927d3b0a19d9f909f74a09127fa1654.tar.gz fsf-binutils-gdb-e0ae6d6fe927d3b0a19d9f909f74a09127fa1654.tar.bz2 |
* elflink.c (_bfd_elf_default_action_discarded): Return 0 for
debug sections.
(elf_link_input_bfd): Adjust comments.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elflink.c | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 57b71cd..c3479f0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2006-02-16 Alan Modra <amodra@bigpond.net.au> + + * elflink.c (_bfd_elf_default_action_discarded): Return 0 for + debug sections. + (elf_link_input_bfd): Adjust comments. + 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> * elf.c (copy_private_bfd_data): Minor update. diff --git a/bfd/elflink.c b/bfd/elflink.c index 0336a29..bbd3770 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -6691,7 +6691,7 @@ unsigned int _bfd_elf_default_action_discarded (asection *sec) { if (sec->flags & SEC_DEBUGGING) - return PRETEND; + return 0; if (strcmp (".eh_frame", sec->name) == 0) return 0; @@ -7007,8 +7007,7 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) from discarded sections and section symbols from removed link-once sections. Complain about relocs against discarded sections. Zero relocs against removed - link-once sections. Preserve debug information as much - as we can. */ + link-once sections. */ if (!elf_section_ignore_discarded_relocs (o)) { Elf_Internal_Rela *rel, *relend; @@ -7080,16 +7079,11 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) sym_name, o, input_bfd, sec, sec->owner); /* Try to do the best we can to support buggy old - versions of gcc. If we've warned, or this is - debugging info, pretend that the symbol is + versions of gcc. Pretend that the symbol is really defined in the kept linkonce section. FIXME: This is quite broken. Modifying the symbol here means we will be changing all later - uses of the symbol, not just in this section. - The only thing that makes this half reasonable - is that we warn in non-debug sections, and - debug sections tend to come after other - sections. */ + uses of the symbol, not just in this section. */ if (action & PRETEND) { asection *kept; |