From cfb3e4d8b66aa8ca991fbf6d2d4c4dd51b307554 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 26 Oct 2004 18:41:52 +0000 Subject: * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc. * ldexp.h (segment_type): New type. (segments): New variable. * ldexp.c (segments): New variable. (exp_print_token): Handle SEGMENT_START. (fold_binary): Likewise. * ldgram.y (SEGMENT_START): Declare it as a token. (exp): Handle SEGMENT_START. * ldlang.h (lang_address_statement_type): Add segment field. (lang_section_start): Change prototype. * ldlang.c (map_input_to_output_sections): Do not process section assignments if a corresponding SEGMENT_START has already been seen. (lang_section_start): Add segment parameter. * ldlex.l (SEGMENT_START): Add it. * lexsup.c (seg_segment_start): New function. (parse_args): Use it for -Tbss, -Tdata, and -Ttext. * ld.texinfo (SEGMENT_START): Document it. * emulparams/armsymbian.sh (EMBEDDED): Set it. * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment base addresses. Do not map relocations. * NEWS: Mention SEGMENT_START. --- ld/ldlex.l | 1 + 1 file changed, 1 insertion(+) (limited to 'ld/ldlex.l') diff --git a/ld/ldlex.l b/ld/ldlex.l index e01332a3a2..0ace6ecf07 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -261,6 +261,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* "NEXT" { RTOKEN(NEXT);} "sizeof_headers" { RTOKEN(SIZEOF_HEADERS);} "SIZEOF_HEADERS" { RTOKEN(SIZEOF_HEADERS);} +"SEGMENT_START" { RTOKEN(SEGMENT_START);} "MAP" { RTOKEN(MAP);} "SIZEOF" { RTOKEN(SIZEOF);} "TARGET" { RTOKEN(TARGET_K);} -- cgit v1.2.1