From: Alan Modra Date: Mon, 24 Nov 2008 07:54:34 +0000 (+0000) Subject: * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7512c3973e35f12e076a0726fae6ce976da72251;p=binutils-gdb.git * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index a6212fcce4a..4e93eb233b5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2008-11-24 Alan Modra + + * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header. + 2008-11-19 Nick Clifton * fdl.texi: Update to v1.3 diff --git a/ld/ldlang.c b/ld/ldlang.c index 9fd26a99e29..6668c59e523 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -6669,6 +6669,10 @@ lang_record_phdrs (void) || (os->bfd_section->flags & SEC_ALLOC) == 0) continue; + /* Don't add orphans to PT_INTERP header. */ + if (l->type == 3) + continue; + if (last == NULL) { lang_output_section_statement_type * tmp_os;