aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GnuLdLexer.g422
-rw-r--r--GnuLdParser.g422
2 files changed, 44 insertions, 0 deletions
diff --git a/GnuLdLexer.g4 b/GnuLdLexer.g4
index a02a8e4..16c4a9e 100644
--- a/GnuLdLexer.g4
+++ b/GnuLdLexer.g4
@@ -1,3 +1,25 @@
+// This file is based on ld/ldgram.y and ld/ldlex.l from the binutils-gdb git repository. Original license header:
+/* A YACC grammar to parse a superset of the AT&T linker scripting language.
+ Copyright (C) 1991-2016 Free Software Foundation, Inc.
+ Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
+
+ This file is part of the GNU Binutils.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+ MA 02110-1301, USA. */
+
lexer grammar GnuLdLexer;
diff --git a/GnuLdParser.g4 b/GnuLdParser.g4
index 68734fe..36d4515 100644
--- a/GnuLdParser.g4
+++ b/GnuLdParser.g4
@@ -1,3 +1,25 @@
+// This file is based on ld/ldgram.y and ld/ldlex.l from the binutils-gdb git repository. Original license header:
+/* A YACC grammar to parse a superset of the AT&T linker scripting language.
+ Copyright (C) 1991-2016 Free Software Foundation, Inc.
+ Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
+
+ This file is part of the GNU Binutils.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+ MA 02110-1301, USA. */
+
parser grammar GnuLdParser;
options {