mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
def_file_parse to handle pe_def_file if NULL and prevent crash with invalid .def files.
This commit is contained in:
parent
4a2ce54450
commit
f2d3750dc9
@ -1,3 +1,9 @@
|
||||
2004-09-27 Filip Navara <navaraf@reactos.com>
|
||||
|
||||
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
|
||||
def_file_parse to handle pe_def_file if NULL and prevent crash with
|
||||
invalid .def files.
|
||||
|
||||
2004-09-27 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
|
||||
|
@ -1293,10 +1293,7 @@ gld_${EMULATION_NAME}_unrecognized_file (lang_input_statement_type *entry ATTRIB
|
||||
|
||||
if (strcmp (ext, ".def") == 0 || strcmp (ext, ".DEF") == 0)
|
||||
{
|
||||
if (pe_def_file == 0)
|
||||
pe_def_file = def_file_empty ();
|
||||
|
||||
def_file_parse (entry->filename, pe_def_file);
|
||||
pe_def_file = def_file_parse (entry->filename, pe_def_file);
|
||||
|
||||
if (pe_def_file)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user