aboutsummaryrefslogtreecommitdiff
path: root/ld/deffilep.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-01-04 23:30:51 +0000
committerNick Clifton <nickc@redhat.com>2000-01-04 23:30:51 +0000
commit5aaace278daa85ea6c3255a47e4dd47f7f25df26 (patch)
tree51cba6bf9bf28376e3fc7763f91bea113f0bd6c5 /ld/deffilep.y
parent9b234ee9323726271aa3e43d5f11e616c0bc7b89 (diff)
downloadgdb-5aaace278daa85ea6c3255a47e4dd47f7f25df26.zip
gdb-5aaace278daa85ea6c3255a47e4dd47f7f25df26.tar.gz
gdb-5aaace278daa85ea6c3255a47e4dd47f7f25df26.tar.bz2
Apply patch from Mumit Khan to fix bugs generating dll names.
Diffstat (limited to 'ld/deffilep.y')
-rw-r--r--ld/deffilep.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/deffilep.y b/ld/deffilep.y
index 31aa703..6b17e55 100644
--- a/ld/deffilep.y
+++ b/ld/deffilep.y
@@ -214,7 +214,13 @@ attr:
;
opt_name: ID { $$ = $1; }
- | { $$ = 0; }
+ | ID '.' ID
+ {
+ char * name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1);
+ sprintf (name, "%s.%s", $1, $3);
+ $$ = name;
+ }
+ | { $$ = ""; }
;
opt_ordinal: