aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-06-05 14:07:29 +0000
committerAlan Modra <amodra@gmail.com>2002-06-05 14:07:29 +0000
commit1d475d825e36133b136f092ddac495cb1ca2eb88 (patch)
tree8331e0b85418ce0d51075b8dcf882f0d66792f87 /ld/emultempl
parentdc156bc0bb8b5c3c18dd9add22360d601a767cc3 (diff)
downloadfsf-binutils-gdb-1d475d825e36133b136f092ddac495cb1ca2eb88.zip
fsf-binutils-gdb-1d475d825e36133b136f092ddac495cb1ca2eb88.tar.gz
fsf-binutils-gdb-1d475d825e36133b136f092ddac495cb1ca2eb88.tar.bz2
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
SEC_EXCLUDE sections when doing a relocatable link.
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 b1e7dd3..e854c2a 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1107,7 +1107,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
#define HAVE_SECTION(hold, name) \
(hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL)
- if (s->flags & SEC_EXCLUDE)
+ if ((s->flags & SEC_EXCLUDE) != 0 && !link_info.relocateable)
{
if (s->output_section == NULL)
s->output_section = bfd_abs_section_ptr;