From 5b3d386eed68db38fda170cb48b54ce1baa86baa Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Fri, 24 Feb 2012 14:20:19 +0000 Subject: 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. --- ld/ChangeLog | 6 ++++++ ld/deffilep.y | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 47eeb2a..4f9a9b7 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2012-02-24 Kai Tietz + + PR binutils/13710 + * deffilep.y (keyword_as_name): Disable LIBRARY + keyword. + 2012-02-22 Alan Modra PR ld/13683 diff --git a/ld/deffilep.y b/ld/deffilep.y index efeff19..3afb3ce 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"; } -- cgit v1.1