diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-03-18 23:51:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-03-18 23:51:21 +0000 |
commit | 7451fd8967001ff0af98b084e231f39f68ddcd4f (patch) | |
tree | 65c16c7e94fbe5e6ad6e6ba0d488d4d6bbbccfc7 /bfd | |
parent | d40e2883cc8cde816c3cc36798c2a5ae8e78b60e (diff) | |
download | gdb-7451fd8967001ff0af98b084e231f39f68ddcd4f.zip gdb-7451fd8967001ff0af98b084e231f39f68ddcd4f.tar.gz gdb-7451fd8967001ff0af98b084e231f39f68ddcd4f.tar.bz2 |
2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_mark_used_section): Remove check for special
sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7111988..de6b496 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 H.J. Lu <hongjiu.lu@intel.com> + + * elflink.c (elf_mark_used_section): Remove check for special + sections. + 2005-03-18 Andreas Schwab <schwab@suse.de> * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn diff --git a/bfd/elflink.c b/bfd/elflink.c index 1ddfe18..277395a 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9012,9 +9012,7 @@ elf_mark_used_section (struct elf_link_hash_entry *h, || h->root.type == bfd_link_hash_defweak) { asection *s = h->root.u.def.section; - if (s != NULL - && s->output_section != NULL - && !bfd_is_const_section (s->output_section)) + if (s != NULL && s->output_section != NULL) s->output_section->flags |= SEC_KEEP; } |