summaryrefslogtreecommitdiffstats
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-09-07 04:02:31 +0000
committerAlan Modra <amodra@gmail.com>2008-09-07 04:02:31 +0000
commit66c103b772fdbc413d4727efa329babcab6617c5 (patch)
treeefdff51ef2f57d2ba723f82ae5cfdc1650745e8e /ld/emultempl
parent61aed60ab9bfe96a73488851b778d66a1c6e8620 (diff)
downloadppe42-binutils-66c103b772fdbc413d4727efa329babcab6617c5.tar.gz
ppe42-binutils-66c103b772fdbc413d4727efa329babcab6617c5.zip
* ldlang.h (lang_output_section_find): Define.
(lang_output_section_statement_lookup): Update prototype. * ldlang.c (lang_output_section_find, lang_output_section_statement_lookup_1): Merge into.. (lang_output_section_statement_lookup): ..here. Update all callers. (process_insert_statements): Set constraint negative for output section statements we might be inserting. Make error fatal on not finding insertion section. (lang_output_section_find): Rather than comparing output_section_statement.constraint against -1, test whether it is postive. (lang_output_section_statement_lookup_1): Likewise. (output_prev_sec_find, strip_excluded_output_sections): Likewise. (lang_record_phdrs): Likewise. * emultempl/elf32.em (output_rel_find): Likewise. * NEWS: Mention INSERT.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 955fc9fdfe..be9d78d2ef 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1583,7 +1583,7 @@ output_rel_find (asection *sec, int isdyn)
lookup != NULL;
lookup = lookup->next)
{
- if (lookup->constraint != -1
+ if (lookup->constraint >= 0
&& CONST_STRNEQ (lookup->name, ".rel"))
{
int lookrela = lookup->name[4] == 'a';
OpenPOWER on IntegriCloud