aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/pe.em
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-11 08:11:16 +0000
committerNick Clifton <nickc@redhat.com>2001-07-11 08:11:16 +0000
commitd29d80f20cde02febef0ca3db72c757acf7e7969 (patch)
tree53a359f5b9b652b1b7bbb61e6ebd52f93adb0dd2 /ld/emultempl/pe.em
parent2a6ef46975aa0c3867f6294c0105085f60015235 (diff)
downloadfsf-binutils-gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.zip
fsf-binutils-gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.tar.gz
fsf-binutils-gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.tar.bz2
Check for the output_bfd not having any coff_data structure allocated to it.
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 1266fae..1df0609 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -800,7 +800,7 @@ gld_${EMULATION_NAME}_after_open ()
FIXME: This should be done via a function, rather than by
including an internal BFD header. */
- if (!coff_data (output_bfd)->pe)
+ if (coff_data (output_bfd) == NULL || coff_data (output_bfd)->pe == NULL)
einfo (_("%F%P: PE operations on non PE file.\n"));
pe_data (output_bfd)->pe_opthdr = pe;