diff options
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 2b4b507..081176b 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -27,7 +27,6 @@ #define DONTDECLARE_MALLOC #include "sysdep.h" -#include "libiberty.h" #include "bfd.h" #include "bfdlink.h" #include "ctf-api.h" @@ -59,8 +58,6 @@ static char *error_names[ERROR_NAME_MAX]; static int error_index; #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++; #define POP_ERROR() error_index--; - -static void yyerror (const char *); %} %union { bfd_vma integer; @@ -111,7 +108,7 @@ static void yyerror (const char *); %type <section_phdr> phdr_opt %type <integer> opt_nocrossrefs -%right <token> PLUSEQ MINUSEQ MULTEQ DIVEQ '=' LSHIFTEQ RSHIFTEQ ANDEQ OREQ XOREQ +%right <token> PLUSEQ MINUSEQ MULTEQ DIVEQ '=' LSHIFTEQ RSHIFTEQ ANDEQ OREQ %right <token> '?' ':' %left <token> OROR %left <token> ANDAND @@ -750,8 +747,6 @@ assign_op: { $$ = '&'; } | OREQ { $$ = '|'; } - | XOREQ - { $$ = '^'; } ; @@ -1509,8 +1504,9 @@ opt_semicolon: ; %% -static void -yyerror (const char *arg) +void +yyerror(arg) + const char *arg; { if (ldfile_assumed_script) einfo (_("%P:%s: file format not recognized; treating as linker script\n"), |