aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2008-07-09 03:18:15 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2008-07-09 03:18:15 +0000
commitb92216aa3b2831722ab2c32908ccb7090fae380b (patch)
tree128ac042fc9db711918e44a89938c1f6febec1cb
parent679823d92c81e3bdfcbe60414c5b8de9ccd77c48 (diff)
downloadgdb-b92216aa3b2831722ab2c32908ccb7090fae380b.zip
gdb-b92216aa3b2831722ab2c32908ccb7090fae380b.tar.gz
gdb-b92216aa3b2831722ab2c32908ccb7090fae380b.tar.bz2
*pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
starting with ".". Exclude "_IMPORT_DESCRIPTOR_". (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA". (autofilter_symbollist_generic): Don't check for ".text". Exclude "_NULL_IMPORT_DESCRIPTOR". (autofilter_symbollist_i386): Likewise.
-rw-r--r--ld/ChangeLog10
-rw-r--r--ld/pe-dll.c9
2 files changed, 17 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9a36205..8e6d62a 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,13 @@
+2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
+
+ *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
+ starting with ".".
+ Exclude "_IMPORT_DESCRIPTOR_".
+ (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
+ (autofilter_symbollist_generic): Don't check for ".text".
+ Exclude "_NULL_IMPORT_DESCRIPTOR".
+ (autofilter_symbollist_i386): Likewise.
+
2008-07-07 Alan Modra <amodra@bigpond.net.au>
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 89c18c4..692f80f 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -187,7 +187,7 @@ pe_details_type;
static const autofilter_entry_type autofilter_symbollist_generic[] =
{
- { STRING_COMMA_LEN (".text") },
+ { STRING_COMMA_LEN ("_NULL_IMPORT_DESCRIPTOR") },
/* Entry point symbols. */
{ STRING_COMMA_LEN ("DllMain") },
{ STRING_COMMA_LEN ("DllMainCRTStartup") },
@@ -200,7 +200,7 @@ static const autofilter_entry_type autofilter_symbollist_generic[] =
static const autofilter_entry_type autofilter_symbollist_i386[] =
{
- { STRING_COMMA_LEN (".text") },
+ { STRING_COMMA_LEN ("_NULL_IMPORT_DESCRIPTOR") },
/* Entry point symbols, and entry hooks. */
{ STRING_COMMA_LEN ("cygwin_crt0") },
#ifdef pe_use_x86_64
@@ -350,12 +350,17 @@ static const autofilter_entry_type autofilter_symbolprefixlist[] =
{ STRING_COMMA_LEN ("_nm_") },
/* Don't export symbols specifying internal DLL layout. */
{ STRING_COMMA_LEN ("_head_") },
+ { STRING_COMMA_LEN ("_IMPORT_DESCRIPTOR_") },
+ /* Don't export section labels or artificial symbols
+ (eg ".weak.foo". */
+ { STRING_COMMA_LEN (".") },
{ NULL, 0 }
};
static const autofilter_entry_type autofilter_symbolsuffixlist[] =
{
{ STRING_COMMA_LEN ("_iname") },
+ { STRING_COMMA_LEN ("_NULL_THUNK_DATA") },
{ NULL, 0 }
};