• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiónc4c41219636642438223c7b46a2c8e1467faba06 (tree)
Tiempo2002-11-12 20:31:43
AutorAlan Modra <amodra@gmai...>
CommiterAlan Modra

Log Message

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

been marked SEC_EXCLUDE.

Cambiar Resumen

Diferencia incremental

--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
1+2002-11-12 Earl Chew <earl_chew@agilent.com>
2+
3+ * ldlang.c (lang_add_section): Discard debugging sections that have
4+ been marked SEC_EXCLUDE.
5+
16 2002-11-12 Nick Clifton <nickc@redhat.com>
27
38 * configure.in (ALL_LINGUAS): Add da.
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1138,10 +1138,11 @@ lang_add_section (ptr, section, output, file)
11381138
11391139 discard = false;
11401140
1141- /* If we are doing a final link, discard sections marked with
1142- SEC_EXCLUDE. */
1143- if (! link_info.relocateable
1144- && (flags & SEC_EXCLUDE) != 0)
1141+ /* Discard sections marked with SEC_EXCLUDE if we are doing a final
1142+ link. Discard debugging sections marked with SEC_EXCLUDE on a
1143+ relocatable link too. */
1144+ if ((flags & SEC_EXCLUDE) != 0
1145+ && ((flags & SEC_DEBUGGING) != 0 || !link_info.relocateable))
11451146 discard = true;
11461147
11471148 /* Discard input sections which are assigned to a section named