summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2012-02-24 14:20:15 +0000
committerKai Tietz <kai.tietz@onevision.com>2012-02-24 14:20:15 +0000
commitdcfd4d66872ed928ca0bf1a99e1672509fc62c79 (patch)
treecbc2188f0fb905ad0b714bf519297f4b925a805d /ld
parent1173a0c1d916f19f7f5b90094b889318065fc97b (diff)
downloadbinutils-redhat-dcfd4d66872ed928ca0bf1a99e1672509fc62c79.tar.gz
PR binutils/13710
* defparse.y (keyword_as_name): Disable LIBRARY keyword. * doc/binutils.texi: Document LIBRARY exception. PR binutils/13710 * deffilep.y (keyword_as_name): Disable LIBRARY keyword.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/deffilep.y7
2 files changed, 12 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 47eeb2a8b3..4f9a9b72a1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-24 Kai Tietz <ktietz@redhat.com>
+
+ PR binutils/13710
+ * deffilep.y (keyword_as_name): Disable LIBRARY
+ keyword.
+
2012-02-22 Alan Modra <amodra@gmail.com>
PR ld/13683
diff --git a/ld/deffilep.y b/ld/deffilep.y
index efeff19678..3afb3ce3ce 100644
--- a/ld/deffilep.y
+++ b/ld/deffilep.y
@@ -249,7 +249,12 @@ keyword_as_name: BASE { $$ = "BASE"; }
| EXPORTS { $$ = "EXPORTS"; }
| HEAPSIZE { $$ = "HEAPSIZE"; }
| IMPORTS { $$ = "IMPORTS"; }
- | LIBRARY { $$ = "LIBRARY"; }
+/* Disable LIBRARY keyword as valid symbol-name. This is necessary
+ for libtool, which places this command after EXPORTS command.
+ This behavior is illegal by specification, but sadly required by
+ by compatibility reasons.
+ See PR binutils/13710
+ | LIBRARY { $$ = "LIBRARY"; } */
| NAME { $$ = "NAME"; }
| NONAMEU { $$ = "NONAME"; }
| NONAMEL { $$ = "noname"; }