summaryrefslogtreecommitdiff
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
commit0efecebac6b0ac1ca1de3691b32a9182bfe1c3d5 (patch)
tree6345b6d42380f02697983c0fb0ef82b71173dc97 /ld/deffilep.y
parent8c8f2b87ba16b794912593e1ce45ebc9aa336ff6 (diff)
downloadbinutils-redhat-0efecebac6b0ac1ca1de3691b32a9182bfe1c3d5.tar.gz
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 31aa703a91..6b17e55817 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: