aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-05-11 14:10:10 +0000
committerAlan Modra <amodra@gmail.com>2005-05-11 14:10:10 +0000
commit0cf7d72c50cd48896b66849604286cc73d838161 (patch)
treec09ffd5807fa80c56cfabc90e29b928e9a7b4032 /ld/ldgram.y
parentd7128ce4b13e32a44861403299d9541ed9b8827d (diff)
downloadgdb-0cf7d72c50cd48896b66849604286cc73d838161.zip
gdb-0cf7d72c50cd48896b66849604286cc73d838161.tar.gz
gdb-0cf7d72c50cd48896b66849604286cc73d838161.tar.bz2
* ldgram.y: Add SPECIAL token.
(sect_constraint): Handle SPECIAL. * ldlang.c (lang_output_section_find_1): Don't match SPECIAL. (map_input_to_output_sections): Likewise. * ldlex.l (SPECIAL): Define. * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT, GOT, PLT, GOTPLT): Define. * emultempl/ppc32elf.em (old_plt, old_got): New static vars. (ppc_after_open): New function. (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT. (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got". (PARSE_AND_LIST_OPTIONS): Document them. (PARSE_AND_LIST_ARGS_CASES): Handle them. (LDEMUL_AFTER_OPEN): Define. * scripttempl/elf.sc (PLT): Don't override existing define. (DATA_GOT, SDATA_GOT): Define and use to enable alternate got placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index fefd7bc..d24ad07 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -151,7 +151,7 @@ static int error_index;
%token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM CASE EXTERN START
%token <name> VERS_TAG VERS_IDENTIFIER
%token GLOBAL LOCAL VERSIONK INPUT_VERSION_SCRIPT
-%token KEEP ONLY_IF_RO ONLY_IF_RW
+%token KEEP ONLY_IF_RO ONLY_IF_RW SPECIAL
%token EXCLUDE_FILE
%type <versyms> vers_defns
%type <versnode> vers_tag
@@ -899,6 +899,7 @@ opt_subalign:
sect_constraint:
ONLY_IF_RO { $$ = ONLY_IF_RO; }
| ONLY_IF_RW { $$ = ONLY_IF_RW; }
+ | SPECIAL { $$ = SPECIAL; }
| { $$ = 0; }
;