aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/elf32.em
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-10-23 20:13:01 +0000
committerJakub Jelinek <jakub@redhat.com>2002-10-23 20:13:01 +0000
commita8927cfd1ab2dac807c4d22428f3dbfd3c9d8713 (patch)
tree757bdd1bd305cd9c62d11e114537ca9a76747b2b /ld/emultempl/elf32.em
parent9cc0d196fc91bea770f668eed89fe80f167e21c6 (diff)
downloadfsf-binutils-gdb-a8927cfd1ab2dac807c4d22428f3dbfd3c9d8713.zip
fsf-binutils-gdb-a8927cfd1ab2dac807c4d22428f3dbfd3c9d8713.tar.gz
fsf-binutils-gdb-a8927cfd1ab2dac807c4d22428f3dbfd3c9d8713.tar.bz2
* emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
sections into .rel{,a}.dyn.
Diffstat (limited to 'ld/emultempl/elf32.em')
-rw-r--r--ld/emultempl/elf32.em1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 62c39f4..4fee5fb 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1098,6 +1098,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
secname = bfd_get_section_name (s->owner, s);
if (! link_info.relocateable
&& link_info.combreloc
+ && (s->flags & SEC_ALLOC)
&& strncmp (secname, ".rel", 4) == 0)
{
if (secname[4] == 'a')