diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2012-02-24 14:20:19 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2012-02-24 14:20:19 +0000 |
commit | 5b3d386eed68db38fda170cb48b54ce1baa86baa (patch) | |
tree | 2a710d6ac6285f7b06cc636876f349a0075d4354 /ld/deffilep.y | |
parent | 11337c2fed80fe18e89604d4dd6a0fa2d5663c68 (diff) | |
download | gdb-5b3d386eed68db38fda170cb48b54ce1baa86baa.zip gdb-5b3d386eed68db38fda170cb48b54ce1baa86baa.tar.gz gdb-5b3d386eed68db38fda170cb48b54ce1baa86baa.tar.bz2 |
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/deffilep.y')
-rw-r--r-- | ld/deffilep.y | 7 |
1 files changed, 6 insertions, 1 deletions
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"; } |