diff options
Diffstat (limited to 'ld/emultempl/pe.em')
-rw-r--r-- | ld/emultempl/pe.em | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 0ffeffc..b556fac 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -876,6 +876,27 @@ gld_${EMULATION_NAME}_after_open () } } } + + { + LANG_FOR_EACH_INPUT_STATEMENT (is) + { + asection *sec; + char *new_name, seq; + + + if (is->the_bfd->my_archive) + for (sec = is->the_bfd->sections; sec; sec = sec->next) + if (strcmp (sec->name, ".idata\$7") == 0 + && sec->reloc_count == 0) + { + char *name = xmalloc (sec->_raw_size + 1); + bfd_get_section_contents (is->the_bfd, sec, name, 0, sec->_raw_size); + name[sec->_raw_size] = 0; + printf ("dj: implib \"%s\" for dll \"%s\" %d\n", + is->the_bfd->my_archive->filename, name, sec->_raw_size); + } + } + } } static void |