aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/pe.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-20 13:41:11 +0000
committerAlan Modra <amodra@gmail.com>2002-07-20 13:41:11 +0000
commit25844aaec2671c9975e2cbad8637bec980d9ecee (patch)
tree8a2a57b59c3229f4c219a4f5fd01306a06f7bdc8 /ld/emultempl/pe.em
parentc0647bfc65ff9823ce5a75489a64027cb429caa4 (diff)
downloadgdb-25844aaec2671c9975e2cbad8637bec980d9ecee.zip
gdb-25844aaec2671c9975e2cbad8637bec980d9ecee.tar.gz
gdb-25844aaec2671c9975e2cbad8637bec980d9ecee.tar.bz2
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
bomb on /DISCARD/ input section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. * emultempl/mmo.em (mmo_place_orphan): Likewise.
Diffstat (limited to 'ld/emultempl/pe.em')
-rw-r--r--ld/emultempl/pe.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index a6dfe46..37146ab 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -1668,7 +1668,7 @@ gld_${EMULATION_NAME}_place_orphan (file, s)
stat_ptr = old;
- if (place != NULL)
+ if (place != NULL && os->bfd_section != NULL)
{
asection *snew, **pps;