diff options
author | Nick Clifton <nickc@redhat.com> | 2001-07-11 08:11:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-07-11 08:11:16 +0000 |
commit | aa0156ab536a54223d00c0f070215f2a847389fb (patch) | |
tree | fab5af4860a127ed59bd4db8d07e329105255912 /ld | |
parent | 7b159605ec9a576ec5d6cec1bca7d47f89a0cf68 (diff) | |
download | binutils-redhat-aa0156ab536a54223d00c0f070215f2a847389fb.tar.gz |
Check for the output_bfd not having any coff_data structure allocated to it.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 997b6f25b0..dd4585e49c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2001-07-11 Nick Clifton <nickc@cambridge.redhat.com> + + * emultempl/pe.em (after_open): Check for the output_bfd not + having any coff_data structure allocated to it. + 2001-07-09 David O'Brien <obrien@FreeBSD.org> * emultempl/elf32.em: Do not assuming that contents of the buffer diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 1266fae3f7..1df0609b91 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; |