aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2006-08-17 17:02:13 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2006-08-17 17:02:13 +0000
commit19b3b564f1448c51fac7b2bea38e96d256c7c0a6 (patch)
treee782ea1ef225b89d0ee74ab3ca35049d23023d68
parentee4bf8d232ce4f0eb1a4c9343e28d7e351d8a08f (diff)
downloadgdb-19b3b564f1448c51fac7b2bea38e96d256c7c0a6.zip
gdb-19b3b564f1448c51fac7b2bea38e96d256c7c0a6.tar.gz
gdb-19b3b564f1448c51fac7b2bea38e96d256c7c0a6.tar.bz2
* pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
(generate_reloc): Revert to skipping sections without a SEC_LOAD flag, and to not skipping .idata* sections.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/pe-dll.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 206faf0..49e65fc 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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>
PR 3052
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 1144ce2..725d6c1 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -296,7 +296,6 @@ static autofilter_entry_type autofilter_symbolprefixlist[] =
{ "__imp_", 6 },
/* Do __imp_ explicitly to save time. */
{ "__rtti_", 7 },
- { ".idata$", 7 },
/* Don't re-export auto-imported symbols. */
{ "_nm_", 4 },
{ "__builtin_", 10 },
@@ -1155,13 +1154,8 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info)
int nsyms, symsize;
/* 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))
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
seen it happen - DJ */