aboutsummaryrefslogtreecommitdiff
path: root/binutils/defparse.y
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-03-14 02:56:45 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-03-14 02:56:45 +0000
commit04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4 (patch)
tree6771be833710d107357a8c41d08a4500c1e89211 /binutils/defparse.y
parent120aa76a7f9e4bc20929fa7b8d81a00899c569f6 (diff)
downloadgdb-04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4.zip
gdb-04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4.tar.gz
gdb-04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4.tar.bz2
* defparse.y (opt_equal_name): allow "." in name.
* dlltool.c (def_exports): Added ability to generate forwarded exports. (gen_exp_file): Likewise.
Diffstat (limited to 'binutils/defparse.y')
-rw-r--r--binutils/defparse.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/defparse.y b/binutils/defparse.y
index 7e13965..d0bccd9 100644
--- a/binutils/defparse.y
+++ b/binutils/defparse.y
@@ -149,6 +149,12 @@ opt_ordinal:
opt_equal_name:
'=' ID { $$ = $2; }
+ | '=' ID '.' ID
+ {
+ char *name = xmalloc (strlen ($2) + 1 + strlen ($4) + 1);
+ sprintf (name, "%s.%s", $2, $4);
+ $$ = name;
+ }
| { $$ = 0; }
;