mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 21:22:20 +08:00
Fix a segfault when creating an import library with 0 exports.
PR 26588 * emultempl/pe.em (_finish): Only generate a import library if not exporting relocs. * emultempl/pep.em: Likewise.
This commit is contained in:

committed by
Nick Clifton

parent
ad570dd76c
commit
9cdc5bacdd
@ -1823,7 +1823,8 @@ gld_${EMULATION_NAME}_finish (void)
|
||||
&& pep_def_file->num_exports != 0))
|
||||
{
|
||||
pep_dll_fill_sections (link_info.output_bfd, &link_info);
|
||||
if (command_line.out_implib_filename)
|
||||
if (command_line.out_implib_filename
|
||||
&& pep_def_file->num_exports != 0)
|
||||
pep_dll_generate_implib (pep_def_file,
|
||||
command_line.out_implib_filename, &link_info);
|
||||
}
|
||||
|
Reference in New Issue
Block a user