* pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.

(generate_reloc): Revert to skipping sections without a SEC_LOAD flag, and to
not skipping .idata* sections.
This commit is contained in:
Christopher Faylor 2006-08-17 17:02:13 +00:00
parent ee4bf8d232
commit 19b3b564f1
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
* pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
(generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
and to not skipping .idata* sections.
2006-08-16 Alan Modra <amodra@bigpond.net.au> 2006-08-16 Alan Modra <amodra@bigpond.net.au>
PR 3052 PR 3052

View file

@ -296,7 +296,6 @@ static autofilter_entry_type autofilter_symbolprefixlist[] =
{ "__imp_", 6 }, { "__imp_", 6 },
/* Do __imp_ explicitly to save time. */ /* Do __imp_ explicitly to save time. */
{ "__rtti_", 7 }, { "__rtti_", 7 },
{ ".idata$", 7 },
/* Don't re-export auto-imported symbols. */ /* Don't re-export auto-imported symbols. */
{ "_nm_", 4 }, { "_nm_", 4 },
{ "__builtin_", 10 }, { "__builtin_", 10 },
@ -1155,13 +1154,8 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info)
int nsyms, symsize; int nsyms, symsize;
/* If it's not loaded, we don't need to relocate it this way. */ /* If it's not loaded, we don't need to relocate it this way. */
#if 0 /* Some toolchains can generate .data sections without a SEC_LOAD flag but with relocs. */
if (!(s->output_section->flags & SEC_LOAD)) if (!(s->output_section->flags & SEC_LOAD))
continue; continue;
#endif
/* Huh ? */
if (strncmp (bfd_get_section_name (abfd, s), ".idata",6) == 0)
continue;
/* I don't know why there would be a reloc for these, but I've /* I don't know why there would be a reloc for these, but I've
seen it happen - DJ */ seen it happen - DJ */