diff options
author | Dave Korn <dave.korn@artimi.com> | 2009-05-17 05:10:21 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2009-05-17 05:10:21 +0000 |
commit | 177b81d66a6cf42aaa2b15ccc499bb7b292c3955 (patch) | |
tree | 1736415f33049710f5257069456ed6050febb979 /ld/pe-dll.c | |
parent | 6ec72856884353055e9397fef5ac77b7aac37f99 (diff) | |
download | gdb-177b81d66a6cf42aaa2b15ccc499bb7b292c3955.zip gdb-177b81d66a6cf42aaa2b15ccc499bb7b292c3955.tar.gz gdb-177b81d66a6cf42aaa2b15ccc499bb7b292c3955.tar.bz2 |
Committed on behalf of
2008-08-07 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
ld/ChangeLog:
* pe-dll.c (process_def_file): Do not create empty export table.
ld/testsuite/ChangeLog:
* ld-pe/exports.d: New file.
* ld-pe/exports.s: New file.
* ld-pe/pe.exp: New test for empty export table.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index b5470c5..3f2815e 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -720,6 +720,10 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info) #undef NE #define NE pe_def_file->num_exports + /* Don't create an empty export table. */ + if (NE == 0) + return; + /* Canonicalize the export list. */ if (pe_dll_kill_ats) { |