* ldlang.c (lang_add_section): Discard debugging sections that have

been marked SEC_EXCLUDE.
This commit is contained in:
Alan Modra 2002-11-12 11:31:43 +00:00
parent cd24c22246
commit c4c4121963
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-11-12 Earl Chew <earl_chew@agilent.com>
* ldlang.c (lang_add_section): Discard debugging sections that have
been marked SEC_EXCLUDE.
2002-11-12 Nick Clifton <nickc@redhat.com> 2002-11-12 Nick Clifton <nickc@redhat.com>
* configure.in (ALL_LINGUAS): Add da. * configure.in (ALL_LINGUAS): Add da.

View File

@ -1138,10 +1138,11 @@ lang_add_section (ptr, section, output, file)
discard = false; discard = false;
/* If we are doing a final link, discard sections marked with /* Discard sections marked with SEC_EXCLUDE if we are doing a final
SEC_EXCLUDE. */ link. Discard debugging sections marked with SEC_EXCLUDE on a
if (! link_info.relocateable relocatable link too. */
&& (flags & SEC_EXCLUDE) != 0) if ((flags & SEC_EXCLUDE) != 0
&& ((flags & SEC_DEBUGGING) != 0 || !link_info.relocateable))
discard = true; discard = true;
/* Discard input sections which are assigned to a section named /* Discard input sections which are assigned to a section named