From: Richard Sandiford Date: Mon, 10 Jun 2002 16:10:43 +0000 (+0000) Subject: * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE X-Git-Url: http://drtracing.org/?a=commitdiff_plain;ds=sidebyside;h=0ebaf18527d124cb0cde59192c5fd7c352b22cd4;p=deliverable%2Fbinutils-gdb.git * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE for removed output sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1dfc78df4d..fd439709c0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-06-10 Richard Sandiford + + * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE + for removed output sections. + 2002-06-10 Geoffrey Keating * merge.c (merge_strings): Use htab_create_alloc with calloc, not diff --git a/bfd/section.c b/bfd/section.c index 96130b9d3f..8bb85c890f 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1368,6 +1368,7 @@ _bfd_strip_section_from_output (info, s) if (*spp == os) { bfd_section_list_remove (os->owner, spp); + os->flags |= SEC_EXCLUDE; os->owner->section_count--; break; }