* ld-elf/foo0.s: Use ARM-compatible .section syntax.
[deliverable/binutils-gdb.git] / ld / deffilep.y
index efeff19678e0bf7dae99b26057c3e2cea9f37136..3afb3ce3ce859ffcd370f53c99afbeadb3136c2e 100644 (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"; }
This page took 0.044401 seconds and 4 git commands to generate.