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 | d29d80f20cde02febef0ca3db72c757acf7e7969 (patch) | |
tree | 53a359f5b9b652b1b7bbb61e6ebd52f93adb0dd2 /ld | |
parent | 2a6ef46975aa0c3867f6294c0105085f60015235 (diff) | |
download | gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.zip gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.tar.gz gdb-d29d80f20cde02febef0ca3db72c757acf7e7969.tar.bz2 |
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 997b6f2..dd4585e 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 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; |