aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>1999-09-28 20:22:55 +0000
committerDJ Delorie <dj@redhat.com>1999-09-28 20:22:55 +0000
commit7c9e78f8e450aa9cebaff594e70f7aeb2964b0af (patch)
treeb9a242a3c49ad4a8c0ef6d9c62ee54c0dbd8a32d /ld/pe-dll.c
parentce195b4280a718f36c02f316234b79b3f4b3e9e8 (diff)
downloadgdb-7c9e78f8e450aa9cebaff594e70f7aeb2964b0af.zip
gdb-7c9e78f8e450aa9cebaff594e70f7aeb2964b0af.tar.gz
gdb-7c9e78f8e450aa9cebaff594e70f7aeb2964b0af.tar.bz2
* deffilep.y (tokens): Add upper and lower case versions of DATA,
CONSTANT, NONAME and PRIVATE tokens. (command): Use DATAU. (expline): Allow for drectve syntax as well. (exp_opt_list): Likewise. (exp_opt): Likewise. * pe-dll.c (make_one): Only generate the idata entries for data symbols.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 5afdfbb..61f57f0 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -1307,7 +1307,8 @@ make_one (exp, parent)
id5 = quick_section (abfd, ".idata$5", SEC_HAS_CONTENTS, 2);
id4 = quick_section (abfd, ".idata$4", SEC_HAS_CONTENTS, 2);
id6 = quick_section (abfd, ".idata$6", SEC_HAS_CONTENTS, 2);
- quick_symbol (abfd, U(""), exp->internal_name, "", tx, BSF_GLOBAL, 0);
+ if (! exp->flag_data)
+ quick_symbol (abfd, U(""), exp->internal_name, "", tx, BSF_GLOBAL, 0);
quick_symbol (abfd, U("_head_"), dll_symname, "", UNDSEC, BSF_GLOBAL, 0);
quick_symbol (abfd, U("__imp_"), exp->internal_name, "", id5, BSF_GLOBAL, 0);
quick_symbol (abfd, U("_imp__"), exp->internal_name, "", id5, BSF_GLOBAL, 0);