aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-11-24 07:54:34 +0000
committerAlan Modra <amodra@gmail.com>2008-11-24 07:54:34 +0000
commit7512c3973e35f12e076a0726fae6ce976da72251 (patch)
treebbfedd596f4ca55f712afba1f208575289d2d5b6 /ld/ldlang.c
parent00c63f6216e399e8239ce85c40cccfae33b8acf5 (diff)
downloadgdb-7512c3973e35f12e076a0726fae6ce976da72251.zip
gdb-7512c3973e35f12e076a0726fae6ce976da72251.tar.gz
gdb-7512c3973e35f12e076a0726fae6ce976da72251.tar.bz2
* ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9fd26a9..6668c59 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;