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.
This commit is contained in:
Kai Tietz
2012-02-24 14:20:19 +00:00
parent 11337c2fed
commit 5b3d386eed
5 changed files with 32 additions and 2 deletions

View File

@@ -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

View File

@@ -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"; }