GNU Binutils with patches for OS216
Revisión | c4c41219636642438223c7b46a2c8e1467faba06 (tree) |
---|---|
Tiempo | 2002-11-12 20:31:43 |
Autor | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
* ldlang.c (lang_add_section): Discard debugging sections that have
@@ -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 | + | |
1 | 6 | 2002-11-12 Nick Clifton <nickc@redhat.com> |
2 | 7 | |
3 | 8 | * configure.in (ALL_LINGUAS): Add da. |
@@ -1138,10 +1138,11 @@ lang_add_section (ptr, section, output, file) | ||
1138 | 1138 | |
1139 | 1139 | discard = false; |
1140 | 1140 | |
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)) | |
1145 | 1146 | discard = true; |
1146 | 1147 | |
1147 | 1148 | /* Discard input sections which are assigned to a section named |