diff --git a/gnu/dist/binutils/ld/emulparams/msp430x1331.sh b/gnu/dist/binutils/ld/emulparams/msp430x1331.sh deleted file mode 100644 index 1d6104f57c56..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x1331.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:13 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xe000 -ROM_SIZE=0x1fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x135.sh b/gnu/dist/binutils/ld/emulparams/msp430x135.sh deleted file mode 100644 index f2eb5448ee9b..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x135.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:13 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x1351.sh b/gnu/dist/binutils/ld/emulparams/msp430x1351.sh deleted file mode 100644 index f2eb5448ee9b..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x1351.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:13 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x147.sh b/gnu/dist/binutils/ld/emulparams/msp430x147.sh deleted file mode 100644 index a2747b7d6d4e..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x147.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:14 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1K - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x148.sh b/gnu/dist/binutils/ld/emulparams/msp430x148.sh deleted file mode 100644 index 5954c70a86d5..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x148.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:14 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x4000 -ROM_SIZE=0xbef0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x149.sh b/gnu/dist/binutils/ld/emulparams/msp430x149.sh deleted file mode 100644 index a695876e38b4..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x149.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:14 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x1100 -ROM_SIZE=0xeee0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x155.sh b/gnu/dist/binutils/ld/emulparams/msp430x155.sh deleted file mode 100644 index 5b1c8380bc2e..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x155.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:15 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x156.sh b/gnu/dist/binutils/ld/emulparams/msp430x156.sh deleted file mode 100644 index 0bb2867694e3..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x156.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:15 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xa000 -ROM_SIZE=0x5fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x157.sh b/gnu/dist/binutils/ld/emulparams/msp430x157.sh deleted file mode 100644 index 21ea6f68331f..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x157.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:15 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1K - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x167.sh b/gnu/dist/binutils/ld/emulparams/msp430x167.sh deleted file mode 100644 index 3b942f740f2a..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x167.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:16 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1K - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x168.sh b/gnu/dist/binutils/ld/emulparams/msp430x168.sh deleted file mode 100644 index f92e6d4d7884..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x168.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:16 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x4000 -ROM_SIZE=0xbef0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x169.sh b/gnu/dist/binutils/ld/emulparams/msp430x169.sh deleted file mode 100644 index 72b0983888cf..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x169.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:16 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x1100 -ROM_SIZE=0xeee0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x311.sh b/gnu/dist/binutils/ld/emulparams/msp430x311.sh deleted file mode 100644 index eebad54ed29d..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x311.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:31 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xf800 -ROM_SIZE=0x07e0 -RAM_START=0x0200 -RAM_SIZE=128 - -STACK=0x280 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x312.sh b/gnu/dist/binutils/ld/emulparams/msp430x312.sh deleted file mode 100644 index 789c73b72ba4..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x312.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:31 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xf000 -ROM_SIZE=0x0fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x313.sh b/gnu/dist/binutils/ld/emulparams/msp430x313.sh deleted file mode 100644 index 8fac19fc58d9..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x313.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:31 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xe000 -ROM_SIZE=0x1fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x314.sh b/gnu/dist/binutils/ld/emulparams/msp430x314.sh deleted file mode 100644 index 3ef198759497..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x314.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:31 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xd000 -ROM_SIZE=0x2fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x315.sh b/gnu/dist/binutils/ld/emulparams/msp430x315.sh deleted file mode 100644 index 4156eb684a1a..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x315.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:31 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x323.sh b/gnu/dist/binutils/ld/emulparams/msp430x323.sh deleted file mode 100644 index 13b9d5170980..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x323.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:32 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xe000 -ROM_SIZE=0x1fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x325.sh b/gnu/dist/binutils/ld/emulparams/msp430x325.sh deleted file mode 100644 index 3c8e351e3f09..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x325.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:32 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x336.sh b/gnu/dist/binutils/ld/emulparams/msp430x336.sh deleted file mode 100644 index c0dc08c917ef..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x336.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:33 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xa000 -ROM_SIZE=0x5fe0 -RAM_START=0x0200 -RAM_SIZE=1024 - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x337.sh b/gnu/dist/binutils/ld/emulparams/msp430x337.sh deleted file mode 100644 index a52d12948afb..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x337.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:33 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1024 - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x412.sh b/gnu/dist/binutils/ld/emulparams/msp430x412.sh deleted file mode 100644 index 1a1f68b41d16..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x412.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:41 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xf000 -ROM_SIZE=0x0fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x413.sh b/gnu/dist/binutils/ld/emulparams/msp430x413.sh deleted file mode 100644 index d3a739d323ef..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x413.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:41 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xe000 -ROM_SIZE=0x1fe0 -RAM_START=0x0200 -RAM_SIZE=256 - -STACK=0x300 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x435.sh b/gnu/dist/binutils/ld/emulparams/msp430x435.sh deleted file mode 100644 index d625acea3530..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x435.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:43 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xc000 -ROM_SIZE=0x3fe0 -RAM_START=0x0200 -RAM_SIZE=512 - -STACK=0x400 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x436.sh b/gnu/dist/binutils/ld/emulparams/msp430x436.sh deleted file mode 100644 index 75f711b1a020..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x436.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:43 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0xa000 -ROM_SIZE=0x5fe0 -RAM_START=0x0200 -RAM_SIZE=1024 - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x437.sh b/gnu/dist/binutils/ld/emulparams/msp430x437.sh deleted file mode 100644 index 92de8cccd41f..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x437.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:43 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1024 - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x447.sh b/gnu/dist/binutils/ld/emulparams/msp430x447.sh deleted file mode 100644 index 058cc07132ff..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x447.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:44 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x8000 -ROM_SIZE=0x7fe0 -RAM_START=0x0200 -RAM_SIZE=1K - -STACK=0x600 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x448.sh b/gnu/dist/binutils/ld/emulparams/msp430x448.sh deleted file mode 100644 index e8820ce93ad4..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x448.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:44 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x4000 -ROM_SIZE=0xbef0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emulparams/msp430x449.sh b/gnu/dist/binutils/ld/emulparams/msp430x449.sh deleted file mode 100644 index 9c3442eb48cb..000000000000 --- a/gnu/dist/binutils/ld/emulparams/msp430x449.sh +++ /dev/null @@ -1,14 +0,0 @@ -ARCH=msp:44 -MACHINE= -SCRIPT_NAME=elf32msp430 -OUTPUT_FORMAT="elf32-msp430" -MAXPAGESIZE=1 -EMBEDDED=yes -TEMPLATE_NAME=generic - -ROM_START=0x1100 -ROM_SIZE=0xeee0 -RAM_START=0x0200 -RAM_SIZE=0x07ff - -STACK=0xa00 diff --git a/gnu/dist/binutils/ld/emultempl/elf32.em b/gnu/dist/binutils/ld/emultempl/elf32.em index 723299b8bc8c..98041fa8ebff 100644 --- a/gnu/dist/binutils/ld/emultempl/elf32.em +++ b/gnu/dist/binutils/ld/emultempl/elf32.em @@ -13,7 +13,7 @@ cat >e${EMULATION_NAME}.c < ELF support by Ian Lance Taylor @@ -53,38 +53,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "elf/common.h" -static void gld${EMULATION_NAME}_before_parse - PARAMS ((void)); -static void gld${EMULATION_NAME}_vercheck - PARAMS ((lang_input_statement_type *)); -static void gld${EMULATION_NAME}_stat_needed - PARAMS ((lang_input_statement_type *)); -static bfd_boolean gld${EMULATION_NAME}_try_needed - PARAMS ((const char *, int)); -static bfd_boolean gld${EMULATION_NAME}_search_needed - PARAMS ((const char *, const char *, int)); -static void gld${EMULATION_NAME}_check_needed - PARAMS ((lang_input_statement_type *)); -static void gld${EMULATION_NAME}_after_open - PARAMS ((void)); -static void gld${EMULATION_NAME}_find_exp_assignment - PARAMS ((etree_type *)); -static void gld${EMULATION_NAME}_find_statement_assignment - PARAMS ((lang_statement_union_type *)); -static void gld${EMULATION_NAME}_before_allocation - PARAMS ((void)); -static bfd_boolean gld${EMULATION_NAME}_open_dynamic_archive - PARAMS ((const char *, search_dirs_type *, lang_input_statement_type *)); -static lang_output_section_statement_type *output_rel_find - PARAMS ((asection *)); -static asection *output_prev_sec_find - PARAMS ((lang_output_section_statement_type *)); +/* Declare functions used by various EXTRA_EM_FILEs. */ +static void gld${EMULATION_NAME}_before_parse (void); +static void gld${EMULATION_NAME}_after_open (void); +static void gld${EMULATION_NAME}_before_allocation (void); static bfd_boolean gld${EMULATION_NAME}_place_orphan - PARAMS ((lang_input_statement_type *, asection *)); -static void gld${EMULATION_NAME}_finish - PARAMS ((void)); -static char *gld${EMULATION_NAME}_get_script - PARAMS ((int *isfile)); + (lang_input_statement_type *file, asection *s); +static void gld${EMULATION_NAME}_finish (void); EOF @@ -104,17 +79,9 @@ if test x"$LDEMUL_BEFORE_PARSE" != xgld"$EMULATION_NAME"_before_parse; then cat >>e${EMULATION_NAME}.c <arch; - ldfile_output_machine = arch->mach; - ldfile_output_machine_name = arch->printable_name; - } - else - ldfile_output_architecture = bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`; + ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`); config.dynamic_link = ${DYNAMIC_LINK-TRUE}; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`; } @@ -122,6 +89,28 @@ gld${EMULATION_NAME}_before_parse () EOF fi +if test x"$LDEMUL_RECOGNIZED_FILE" != xgld"${EMULATION_NAME}"_load_symbols; then +cat >>e${EMULATION_NAME}.c <as_needed + || (bfd_get_file_flags (entry->the_bfd) & DYNAMIC) == 0) + return FALSE; + + /* Tell the ELF linker that we don't want the output file to have a + DT_NEEDED entry for this file, unless it is used to resolve + references in a regular object. */ + bfd_elf_set_dyn_lib_class (entry->the_bfd, DYN_AS_NEEDED); + + /* Continue on with normal load_symbols processing. */ + return FALSE; +} +EOF +fi + cat >>e${EMULATION_NAME}.c <name, suffix - l->name) == 0) { /* Here we know that S is a dynamic object FOO.SO.VER1, and - the object we are considering needs a dynamic object - FOO.SO.VER2, and VER1 and VER2 are different. This - appears to be a version mismatch, so we tell the caller - to try a different version of this library. */ + the object we are considering needs a dynamic object + FOO.SO.VER2, and VER1 and VER2 are different. This + appears to be a version mismatch, so we tell the caller + to try a different version of this library. */ global_vercheck_failed = TRUE; return; } @@ -205,8 +193,7 @@ gld${EMULATION_NAME}_vercheck (s) the file. */ static void -gld${EMULATION_NAME}_stat_needed (s) - lang_input_statement_type *s; +gld${EMULATION_NAME}_stat_needed (lang_input_statement_type *s) { struct stat st; const char *suffix; @@ -261,9 +248,7 @@ gld${EMULATION_NAME}_stat_needed (s) to skip the check for a conflicting version. */ static bfd_boolean -gld${EMULATION_NAME}_try_needed (name, force) - const char *name; - int force; +gld${EMULATION_NAME}_try_needed (const char *name, int force) { bfd *abfd; const char *soname; @@ -310,16 +295,16 @@ gld${EMULATION_NAME}_try_needed (name, force) { bfd_close (abfd); /* Return FALSE to force the caller to move on to try - another file on the search path. */ + another file on the search path. */ return FALSE; } /* But wait! It gets much worse. On Linux, if a shared - library does not use libc at all, we are supposed to skip - it the first time around in case we encounter a shared - library later on with the same name which does use the - version of libc that we want. This is much too horrible - to use on any system other than Linux. */ + library does not use libc at all, we are supposed to skip + it the first time around in case we encounter a shared + library later on with the same name which does use the + version of libc that we want. This is much too horrible + to use on any system other than Linux. */ EOF case ${target} in @@ -369,18 +354,17 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <assign.dst, ".") != 0) { - if (! (bfd_elf${ELFSIZE}_record_link_assignment + if (! (bfd_elf_record_link_assignment (output_bfd, &link_info, exp->assign.dst, exp->type.node_class == etree_provide ? TRUE : FALSE))) einfo ("%P%F: failed to record assignment to %s: %E\n", @@ -855,8 +826,7 @@ gld${EMULATION_NAME}_find_exp_assignment (exp) symbols which are referred to by dynamic objects. */ static void -gld${EMULATION_NAME}_find_statement_assignment (s) - lang_statement_union_type *s; +gld${EMULATION_NAME}_find_statement_assignment (lang_statement_union_type *s) { if (s->header.type == lang_assignment_statement_enum) gld${EMULATION_NAME}_find_exp_assignment (s->assignment_statement.exp); @@ -883,11 +853,14 @@ cat >>e${EMULATION_NAME}.c <type == bfd_link_elf_hash_table) + _bfd_elf_tls_setup (output_bfd, &link_info); + /* If we are going to make any variable assignments, we need to let the ELF backend know about them in case the variables are referred to by dynamic objects. */ @@ -898,8 +871,8 @@ gld${EMULATION_NAME}_before_allocation () rpath = command_line.rpath; if (rpath == NULL) rpath = (const char *) getenv ("LD_RUN_PATH"); - if (! (bfd_elf${ELFSIZE}_size_dynamic_sections - (output_bfd, command_line.soname, rpath, + if (! (bfd_elf_size_dynamic_sections + (output_bfd, command_line.soname, rpath, command_line.filter_shlib, (const char * const *) command_line.auxiliary_filters, &link_info, &sinterp, lang_elf_version_info))) @@ -923,8 +896,10 @@ ${ELF_INTERPRETER_SET_DEFAULT} { asection *s; bfd_size_type sz; + bfd_size_type prefix_len; char *msg; bfd_boolean ret; + const char * gnu_warning_prefix = _("warning: "); if (is->just_syms_flag) continue; @@ -934,11 +909,14 @@ ${ELF_INTERPRETER_SET_DEFAULT} continue; sz = bfd_section_size (is->the_bfd, s); - msg = xmalloc ((size_t) sz + 1); - if (! bfd_get_section_contents (is->the_bfd, s, msg, (file_ptr) 0, sz)) + prefix_len = strlen (gnu_warning_prefix); + msg = xmalloc ((size_t) (prefix_len + sz + 1)); + strcpy (msg, gnu_warning_prefix); + if (! bfd_get_section_contents (is->the_bfd, s, msg + prefix_len, + (file_ptr) 0, sz)) einfo ("%F%B: Can't read contents of section .gnu.warning: %E\n", is->the_bfd); - msg[sz] = '\0'; + msg[prefix_len + sz] = '\0'; ret = link_info.callbacks->warning (&link_info, msg, (const char *) NULL, is->the_bfd, (asection *) NULL, @@ -964,10 +942,8 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name[4] == 'a'; @@ -1058,22 +1034,30 @@ output_rel_find (sec) lookup = &u->output_section_statement; if (strncmp (".rel", lookup->name, 4) == 0) { - /* Don't place after .rel.plt as doing so results in wrong - dynamic tags. Also, place allocated reloc sections before - non-allocated. */ int lookrela = lookup->name[4] == 'a'; - if (strcmp (".plt", lookup->name + 4 + lookrela) == 0 - || (lookup->bfd_section != NULL - && (lookup->bfd_section->flags & SEC_ALLOC) == 0)) + /* .rel.dyn must come before all other reloc sections, to suit + GNU ld.so. */ + if (isdyn) break; - last = lookup; - if (rela == lookrela) + + /* Don't place after .rel.plt as doing so results in wrong + dynamic tags. */ + if (strcmp (".plt", lookup->name + 4 + lookrela) == 0) + break; + + if (rela == lookrela || last_rel == NULL) last_rel = lookup; - if (lookup->bfd_section != NULL + if ((rela == lookrela || last_rel_alloc == NULL) + && lookup->bfd_section != NULL && (lookup->bfd_section->flags & SEC_ALLOC) != 0) last_rel_alloc = lookup; } + + last = lookup; + if (lookup->bfd_section != NULL + && (lookup->bfd_section->flags & SEC_ALLOC) != 0) + last_alloc = lookup; } if (last_rel_alloc) @@ -1082,6 +1066,9 @@ output_rel_find (sec) if (last_rel) return last_rel; + if (last_alloc) + return last_alloc; + return last; } @@ -1089,8 +1076,7 @@ output_rel_find (sec) Used by place_orphan. */ static asection * -output_prev_sec_find (os) - lang_output_section_statement_type *os; +output_prev_sec_find (lang_output_section_statement_type *os) { asection *s = (asection *) NULL; lang_statement_union_type *u; @@ -1122,9 +1108,7 @@ struct orphan_save { }; static bfd_boolean -gld${EMULATION_NAME}_place_orphan (file, s) - lang_input_statement_type *file; - asection *s; +gld${EMULATION_NAME}_place_orphan (lang_input_statement_type *file, asection *s) { static struct orphan_save hold_text; static struct orphan_save hold_rodata; @@ -1146,7 +1130,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) int isdyn = 0; secname = bfd_get_section_name (s->owner, s); - if (! link_info.relocateable + if (! link_info.relocatable && link_info.combreloc && (s->flags & SEC_ALLOC) && strncmp (secname, ".rel", 4) == 0) @@ -1180,8 +1164,8 @@ gld${EMULATION_NAME}_place_orphan (file, s) /* If this is a final link, then always put .gnu.warning.SYMBOL sections into the .text section to get them out of the way. */ - if (! link_info.shared - && ! link_info.relocateable + if (link_info.executable + && ! link_info.relocatable && strncmp (secname, ".gnu.warning.", sizeof ".gnu.warning." - 1) == 0 && hold_text.os != NULL) { @@ -1197,7 +1181,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) #define HAVE_SECTION(hold, name) \ (hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL) - if ((s->flags & SEC_EXCLUDE) != 0 && !link_info.relocateable) + if ((s->flags & SEC_EXCLUDE) != 0 && !link_info.relocatable) { if (s->output_section == NULL) s->output_section = bfd_abs_section_ptr; @@ -1223,7 +1207,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) else if (strncmp (secname, ".rel", 4) == 0 && (s->flags & SEC_LOAD) != 0 && (hold_rel.os != NULL - || (hold_rel.os = output_rel_find (s)) != NULL)) + || (hold_rel.os = output_rel_find (s, isdyn)) != NULL)) place = &hold_rel; else if ((s->flags & (SEC_CODE | SEC_READONLY)) == SEC_READONLY && HAVE_SECTION (hold_rodata, ".rodata")) @@ -1278,7 +1262,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) } address = NULL; - if (link_info.relocateable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) + if (link_info.relocatable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) address = exp_intop ((bfd_vma) 0); load_base = NULL; @@ -1293,7 +1277,6 @@ gld${EMULATION_NAME}_place_orphan (file, s) os_tail = lang_output_section_statement.tail; os = lang_enter_output_section_statement (secname, address, 0, - (bfd_vma) 0, (etree_type *) NULL, (etree_type *) NULL, load_base); @@ -1422,9 +1405,9 @@ if test x"$LDEMUL_FINISH" != xgld"$EMULATION_NAME"_finish; then cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <> e${EMULATION_NAME}.c -echo ' ; else if (link_info.relocateable) return' >> e${EMULATION_NAME}.c +echo ' ; else if (link_info.relocatable) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c @@ -1474,6 +1456,14 @@ if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then : ; echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c fi +if test -n "$GENERATE_PIE_SCRIPT" ; then +if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then +echo ' ; else if (link_info.pie && link_info.combreloc) return' >> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.xdc >> e${EMULATION_NAME}.c +fi +echo ' ; else if (link_info.pie) return' >> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.xd >> e${EMULATION_NAME}.c +fi if test -n "$GENERATE_SHLIB_SCRIPT" ; then if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then echo ' ; else if (link_info.shared && link_info.combreloc) return' >> e${EMULATION_NAME}.c @@ -1497,9 +1487,9 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <"), and EXPRESSION. - -`--demangle[=STYLE]' -`--no-demangle' - These options control whether to demangle symbol names in error - messages and other output. When the linker is told to demangle, - it tries to present symbol names in a readable fashion: it strips - leading underscores if they are used by the object file format, - and converts C++ mangled symbol names into user readable names. - Different compilers have different mangling styles. The optional - demangling style argument can be used to choose an appropriate - demangling style for your compiler. The linker will demangle by - default unless the environment variable `COLLECT_NO_DEMANGLE' is - set. These options may be used to override the default. - -`--dynamic-linker FILE' - Set the name of the dynamic linker. This is only meaningful when - generating dynamically linked ELF executables. The default dynamic - linker is normally correct; don't use this unless you know what - you are doing. - -`--embedded-relocs' - This option is only meaningful when linking MIPS embedded PIC code, - generated by the -membedded-pic option to the GNU compiler and - assembler. It causes the linker to create a table which may be - used at runtime to relocate any data which was statically - initialized to pointer values. See the code in testsuite/ld-empic - for details. - -`--fatal-warnings' - Treat all warnings as errors. - -`--force-exe-suffix' - Make sure that an output file has a .exe suffix. - - If a successfully built fully linked output file does not have a - `.exe' or `.dll' suffix, this option forces the linker to copy the - output file to one of the same name with a `.exe' suffix. This - option is useful when using unmodified Unix makefiles on a - Microsoft Windows host, since some versions of Windows won't run - an image unless it ends in a `.exe' suffix. - -`--no-gc-sections' -`--gc-sections' - Enable garbage collection of unused input sections. It is ignored - on targets that do not support this option. This option is not - compatible with `-r', nor should it be used with dynamic linking. - The default behaviour (of not performing this garbage collection) - can be restored by specifying `--no-gc-sections' on the command - line. - -`--help' - Print a summary of the command-line options on the standard output - and exit. - -`--target-help' - Print a summary of all target specific options on the standard - output and exit. - -`-Map MAPFILE' - Print a link map to the file MAPFILE. See the description of the - `-M' option, above. - -`--no-keep-memory' - `ld' normally optimizes for speed over memory usage by caching the - symbol tables of input files in memory. This option tells `ld' to - instead optimize for memory usage, by rereading the symbol tables - as necessary. This may be required if `ld' runs out of memory - space while linking a large executable. - -`--no-undefined' -`-z defs' - Normally when creating a non-symbolic shared library, undefined - symbols are allowed and left to be resolved by the runtime loader. - This option disallows such undefined symbols if they come from - regular object files. The switch `--no-allow-shlib-undefined' - controls the behaviour for shared objects being linked into the - shared library. - -`--allow-multiple-definition' -`-z muldefs' - Normally when a symbol is defined multiple times, the linker will - report a fatal error. These options allow multiple definitions and - the first definition will be used. - -`--allow-shlib-undefined' -`--no-allow-shlib-undefined' - Allow (the default) or disallow undefined symbols in shared - objects. The setting of this switch overrides `--no-undefined' - where shared objects are concerned. Thus if `--no-undefined' is - set but `--no-allow-shlib-undefined' is not, the net result will be - that undefined symbols in regular object files will trigger an - error, but undefined symbols in shared objects will be ignored. - - The reason that `--allow-shlib-undefined' is the default is that - the shared object being specified at link time may not be the same - one that is available at load time, so the symbols might actually - be resolvable at load time. Plus there are some systems, (eg - BeOS) where undefined symbols in shared libraries is normal since - the kernel patches them at load time to select which function is - most appropriate for the current architecture. eg. to dynamically - select an appropriate memset function. Apparently it is also - normal for HPPA shared libraries to have undefined symbols. - -`--no-undefined-version' - Normally when a symbol has an undefined version, the linker will - ignore it. This option disallows symbols with undefined version - and a fatal error will be issued instead. - -`--no-warn-mismatch' - Normally `ld' will give an error if you try to link together input - files that are mismatched for some reason, perhaps because they - have been compiled for different processors or for different - endiannesses. This option tells `ld' that it should silently - permit such possible errors. This option should only be used with - care, in cases when you have taken some special action that - ensures that the linker errors are inappropriate. - -`--no-whole-archive' - Turn off the effect of the `--whole-archive' option for subsequent - archive files. - -`--noinhibit-exec' - Retain the executable output file whenever it is still usable. - Normally, the linker will not produce an output file if it - encounters errors during the link process; it exits without - writing an output file when it issues any error whatsoever. - -`-nostdlib' - Only search library directories explicitly specified on the - command line. Library directories specified in linker scripts - (including linker scripts specified on the command line) are - ignored. - -`--oformat OUTPUT-FORMAT' - `ld' may be configured to support more than one kind of object - file. If your `ld' is configured this way, you can use the - `--oformat' option to specify the binary format for the output - object file. Even when `ld' is configured to support alternative - object formats, you don't usually need to specify this, as `ld' - should be configured to produce as a default output format the most - usual format on each machine. OUTPUT-FORMAT is a text string, the - name of a particular format supported by the BFD libraries. (You - can list the available binary formats with `objdump -i'.) The - script command `OUTPUT_FORMAT' can also specify the output format, - but this option overrides it. *Note BFD::. - -`-qmagic' - This option is ignored for Linux compatibility. - -`-Qy' - This option is ignored for SVR4 compatibility. - -`--relax' - An option with machine dependent effects. This option is only - supported on a few targets. *Note `ld' and the H8/300: H8/300. - *Note `ld' and the Intel 960 family: i960. *Note `ld' and Xtensa - Processors: Xtensa. - - On some platforms, the `--relax' option performs global - optimizations that become possible when the linker resolves - addressing in the program, such as relaxing address modes and - synthesizing new instructions in the output object file. - - On some platforms these link time global optimizations may make - symbolic debugging of the resulting executable impossible. This - is known to be the case for the Matsushita MN10200 and MN10300 - family of processors. - - On platforms where this is not supported, `--relax' is accepted, - but ignored. - -`--retain-symbols-file FILENAME' - Retain _only_ the symbols listed in the file FILENAME, discarding - all others. FILENAME is simply a flat file, with one symbol name - per line. This option is especially useful in environments (such - as VxWorks) where a large global symbol table is accumulated - gradually, to conserve run-time memory. - - `--retain-symbols-file' does _not_ discard undefined symbols, or - symbols needed for relocations. - - You may only specify `--retain-symbols-file' once in the command - line. It overrides `-s' and `-S'. - -`-rpath DIR' - Add a directory to the runtime library search path. This is used - when linking an ELF executable with shared objects. All `-rpath' - arguments are concatenated and passed to the runtime linker, which - uses them to locate shared objects at runtime. The `-rpath' - option is also used when locating shared objects which are needed - by shared objects explicitly included in the link; see the - description of the `-rpath-link' option. If `-rpath' is not used - when linking an ELF executable, the contents of the environment - variable `LD_RUN_PATH' will be used if it is defined. - - The `-rpath' option may also be used on SunOS. By default, on - SunOS, the linker will form a runtime search patch out of all the - `-L' options it is given. If a `-rpath' option is used, the - runtime search path will be formed exclusively using the `-rpath' - options, ignoring the `-L' options. This can be useful when using - gcc, which adds many `-L' options which may be on NFS mounted - filesystems. - - For compatibility with other ELF linkers, if the `-R' option is - followed by a directory name, rather than a file name, it is - treated as the `-rpath' option. - -`-rpath-link DIR' - When using ELF or SunOS, one shared library may require another. - This happens when an `ld -shared' link includes a shared library - as one of the input files. - - When the linker encounters such a dependency when doing a - non-shared, non-relocatable link, it will automatically try to - locate the required shared library and include it in the link, if - it is not included explicitly. In such a case, the `-rpath-link' - option specifies the first set of directories to search. The - `-rpath-link' option may specify a sequence of directory names - either by specifying a list of names separated by colons, or by - appearing multiple times. - - This option should be used with caution as it overrides the search - path that may have been hard compiled into a shared library. In - such a case it is possible to use unintentionally a different - search path than the runtime linker would do. - - The linker uses the following search paths to locate required - shared libraries. - 1. Any directories specified by `-rpath-link' options. - - 2. Any directories specified by `-rpath' options. The difference - between `-rpath' and `-rpath-link' is that directories - specified by `-rpath' options are included in the executable - and used at runtime, whereas the `-rpath-link' option is only - effective at link time. It is for the native linker only. - - 3. On an ELF system, if the `-rpath' and `rpath-link' options - were not used, search the contents of the environment variable - `LD_RUN_PATH'. It is for the native linker only. - - 4. On SunOS, if the `-rpath' option was not used, search any - directories specified using `-L' options. - - 5. For a native linker, the contents of the environment variable - `LD_LIBRARY_PATH'. - - 6. For a native ELF linker, the directories in `DT_RUNPATH' or - `DT_RPATH' of a shared library are searched for shared - libraries needed by it. The `DT_RPATH' entries are ignored if - `DT_RUNPATH' entries exist. - - 7. The default directories, normally `/lib' and `/usr/lib'. - - 8. For a native linker on an ELF system, if the file - `/etc/ld.so.conf' exists, the list of directories found in - that file. - - If the required shared library is not found, the linker will issue - a warning and continue with the link. - -`-shared' -`-Bshareable' - Create a shared library. This is currently only supported on ELF, - XCOFF and SunOS platforms. On SunOS, the linker will - automatically create a shared library if the `-e' option is not - used and there are undefined symbols in the link. - -`--sort-common' - This option tells `ld' to sort the common symbols by size when it - places them in the appropriate output sections. First come all - the one byte symbols, then all the two byte, then all the four - byte, and then everything else. This is to prevent gaps between - symbols due to alignment constraints. - -`--split-by-file [SIZE]' - Similar to `--split-by-reloc' but creates a new output section for - each input file when SIZE is reached. SIZE defaults to a size of - 1 if not given. - -`--split-by-reloc [COUNT]' - Tries to creates extra sections in the output file so that no - single output section in the file contains more than COUNT - relocations. This is useful when generating huge relocatable - files for downloading into certain real time kernels with the COFF - object file format; since COFF cannot represent more than 65535 - relocations in a single section. Note that this will fail to work - with object file formats which do not support arbitrary sections. - The linker will not split up individual input sections for - redistribution, so if a single input section contains more than - COUNT relocations one output section will contain that many - relocations. COUNT defaults to a value of 32768. - -`--stats' - Compute and display statistics about the operation of the linker, - such as execution time and memory usage. - -`--traditional-format' - For some targets, the output of `ld' is different in some ways from - the output of some existing linker. This switch requests `ld' to - use the traditional format instead. - - For example, on SunOS, `ld' combines duplicate entries in the - symbol string table. This can reduce the size of an output file - with full debugging information by over 30 percent. - Unfortunately, the SunOS `dbx' program can not read the resulting - program (`gdb' has no trouble). The `--traditional-format' switch - tells `ld' to not combine duplicate entries. - -`--section-start SECTIONNAME=ORG' - Locate a section in the output file at the absolute address given - by ORG. You may use this option as many times as necessary to - locate multiple sections in the command line. ORG must be a - single hexadecimal integer; for compatibility with other linkers, - you may omit the leading `0x' usually associated with hexadecimal - values. _Note:_ there should be no white space between - SECTIONNAME, the equals sign ("<=>"), and ORG. - -`-Tbss ORG' -`-Tdata ORG' -`-Ttext ORG' - Same as -section-start, with `.bss', `.data' or `.text' as the - SECTIONNAME. - -`--dll-verbose' -`--verbose' - Display the version number for `ld' and list the linker emulations - supported. Display which input files can and cannot be opened. - Display the linker script being used by the linker. - -`--version-script=VERSION-SCRIPTFILE' - Specify the name of a version script to the linker. This is - typically used when creating shared libraries to specify - additional information about the version hierarchy for the library - being created. This option is only meaningful on ELF platforms - which support shared libraries. *Note VERSION::. - -`--warn-common' - Warn when a common symbol is combined with another common symbol - or with a symbol definition. Unix linkers allow this somewhat - sloppy practice, but linkers on some other operating systems do - not. This option allows you to find potential problems from - combining global symbols. Unfortunately, some C libraries use - this practice, so you may get some warnings about symbols in the - libraries as well as in your programs. - - There are three kinds of global symbols, illustrated here by C - examples: - - `int i = 1;' - A definition, which goes in the initialized data section of - the output file. - - `extern int i;' - An undefined reference, which does not allocate space. There - must be either a definition or a common symbol for the - variable somewhere. - - `int i;' - A common symbol. If there are only (one or more) common - symbols for a variable, it goes in the uninitialized data - area of the output file. The linker merges multiple common - symbols for the same variable into a single symbol. If they - are of different sizes, it picks the largest size. The - linker turns a common symbol into a declaration, if there is - a definition of the same variable. - - The `--warn-common' option can produce five kinds of warnings. - Each warning consists of a pair of lines: the first describes the - symbol just encountered, and the second describes the previous - symbol encountered with the same name. One or both of the two - symbols will be a common symbol. - - 1. Turning a common symbol into a reference, because there is - already a definition for the symbol. - FILE(SECTION): warning: common of `SYMBOL' - overridden by definition - FILE(SECTION): warning: defined here - - 2. Turning a common symbol into a reference, because a later - definition for the symbol is encountered. This is the same - as the previous case, except that the symbols are encountered - in a different order. - FILE(SECTION): warning: definition of `SYMBOL' - overriding common - FILE(SECTION): warning: common is here - - 3. Merging a common symbol with a previous same-sized common - symbol. - FILE(SECTION): warning: multiple common - of `SYMBOL' - FILE(SECTION): warning: previous common is here - - 4. Merging a common symbol with a previous larger common symbol. - FILE(SECTION): warning: common of `SYMBOL' - overridden by larger common - FILE(SECTION): warning: larger common is here - - 5. Merging a common symbol with a previous smaller common - symbol. This is the same as the previous case, except that - the symbols are encountered in a different order. - FILE(SECTION): warning: common of `SYMBOL' - overriding smaller common - FILE(SECTION): warning: smaller common is here - -`--warn-constructors' - Warn if any global constructors are used. This is only useful for - a few object file formats. For formats like COFF or ELF, the - linker can not detect the use of global constructors. - -`--warn-multiple-gp' - Warn if multiple global pointer values are required in the output - file. This is only meaningful for certain processors, such as the - Alpha. Specifically, some processors put large-valued constants - in a special section. A special register (the global pointer) - points into the middle of this section, so that constants can be - loaded efficiently via a base-register relative addressing mode. - Since the offset in base-register relative mode is fixed and - relatively small (e.g., 16 bits), this limits the maximum size of - the constant pool. Thus, in large programs, it is often necessary - to use multiple global pointer values in order to be able to - address all possible constants. This option causes a warning to - be issued whenever this case occurs. - -`--warn-once' - Only warn once for each undefined symbol, rather than once per - module which refers to it. - -`--warn-section-align' - Warn if the address of an output section is changed because of - alignment. Typically, the alignment will be set by an input - section. The address will only be changed if it not explicitly - specified; that is, if the `SECTIONS' command does not specify a - start address for the section (*note SECTIONS::). - -`--whole-archive' - For each archive mentioned on the command line after the - `--whole-archive' option, include every object file in the archive - in the link, rather than searching the archive for the required - object files. This is normally used to turn an archive file into - a shared library, forcing every object to be included in the - resulting shared library. This option may be used more than once. - - Two notes when using this option from gcc: First, gcc doesn't know - about this option, so you have to use `-Wl,-whole-archive'. - Second, don't forget to use `-Wl,-no-whole-archive' after your - list of archives, because gcc will add its own list of archives to - your link and you may not want this flag to affect those as well. - -`--wrap SYMBOL' - Use a wrapper function for SYMBOL. Any undefined reference to - SYMBOL will be resolved to `__wrap_SYMBOL'. Any undefined - reference to `__real_SYMBOL' will be resolved to SYMBOL. - - This can be used to provide a wrapper for a system function. The - wrapper function should be called `__wrap_SYMBOL'. If it wishes - to call the system function, it should call `__real_SYMBOL'. - - Here is a trivial example: - - void * - __wrap_malloc (int c) - { - printf ("malloc called with %ld\n", c); - return __real_malloc (c); - } - - If you link other code with this file using `--wrap malloc', then - all calls to `malloc' will call the function `__wrap_malloc' - instead. The call to `__real_malloc' in `__wrap_malloc' will call - the real `malloc' function. - - You may wish to provide a `__real_malloc' function as well, so that - links without the `--wrap' option will succeed. If you do this, - you should not put the definition of `__real_malloc' in the same - file as `__wrap_malloc'; if you do, the assembler may resolve the - call before the linker has a chance to wrap it to `malloc'. - -`--enable-new-dtags' -`--disable-new-dtags' - This linker can create the new dynamic tags in ELF. But the older - ELF systems may not understand them. If you specify - `--enable-new-dtags', the dynamic tags will be created as needed. - If you specify `--disable-new-dtags', no new dynamic tags will be - created. By default, the new dynamic tags are not created. Note - that those options are only available for ELF systems. - -Options Specific to i386 PE Targets ------------------------------------ - - The i386 PE linker supports the `-shared' option, which causes the -output to be a dynamically linked library (DLL) instead of a normal -executable. You should name the output `*.dll' when you use this -option. In addition, the linker fully supports the standard `*.def' -files, which may be specified on the linker command line like an object -file (in fact, it should precede archives it exports symbols from, to -ensure that they get linked in, just like a normal object file). - - In addition to the options common to all targets, the i386 PE linker -support additional command line options that are specific to the i386 -PE target. Options that take values may be separated from their values -by either a space or an equals sign. - -`--add-stdcall-alias' - If given, symbols with a stdcall suffix (@NN) will be exported - as-is and also with the suffix stripped. [This option is specific - to the i386 PE targeted port of the linker] - -`--base-file FILE' - Use FILE as the name of a file in which to save the base addresses - of all the relocations needed for generating DLLs with `dlltool'. - [This is an i386 PE specific option] - -`--dll' - Create a DLL instead of a regular executable. You may also use - `-shared' or specify a `LIBRARY' in a given `.def' file. [This - option is specific to the i386 PE targeted port of the linker] - -`--enable-stdcall-fixup' -`--disable-stdcall-fixup' - If the link finds a symbol that it cannot resolve, it will attempt - to do "fuzzy linking" by looking for another defined symbol that - differs only in the format of the symbol name (cdecl vs stdcall) - and will resolve that symbol by linking to the match. For - example, the undefined symbol `_foo' might be linked to the - function `_foo@12', or the undefined symbol `_bar@16' might be - linked to the function `_bar'. When the linker does this, it - prints a warning, since it normally should have failed to link, - but sometimes import libraries generated from third-party dlls may - need this feature to be usable. If you specify - `--enable-stdcall-fixup', this feature is fully enabled and - warnings are not printed. If you specify - `--disable-stdcall-fixup', this feature is disabled and such - mismatches are considered to be errors. [This option is specific - to the i386 PE targeted port of the linker] - -`--export-all-symbols' - If given, all global symbols in the objects used to build a DLL - will be exported by the DLL. Note that this is the default if - there otherwise wouldn't be any exported symbols. When symbols are - explicitly exported via DEF files or implicitly exported via - function attributes, the default is to not export anything else - unless this option is given. Note that the symbols `DllMain@12', - `DllEntryPoint@0', `DllMainCRTStartup@12', and `impure_ptr' will - not be automatically exported. Also, symbols imported from other - DLLs will not be re-exported, nor will symbols specifying the - DLL's internal layout such as those beginning with `_head_' or - ending with `_iname'. In addition, no symbols from `libgcc', - `libstd++', `libmingw32', or `crtX.o' will be exported. Symbols - whose names begin with `__rtti_' or `__builtin_' will not be - exported, to help with C++ DLLs. Finally, there is an extensive - list of cygwin-private symbols that are not exported (obviously, - this applies on when building DLLs for cygwin targets). These - cygwin-excludes are: `_cygwin_dll_entry@12', - `_cygwin_crt0_common@8', `_cygwin_noncygwin_dll_entry@12', - `_fmode', `_impure_ptr', `cygwin_attach_dll', `cygwin_premain0', - `cygwin_premain1', `cygwin_premain2', `cygwin_premain3', and - `environ'. [This option is specific to the i386 PE targeted port - of the linker] - -`--exclude-symbols SYMBOL,SYMBOL,...' - Specifies a list of symbols which should not be automatically - exported. The symbol names may be delimited by commas or colons. - [This option is specific to the i386 PE targeted port of the - linker] - -`--exclude-libs LIB,LIB,...' - Specifies a list of archive libraries from which symbols should - not be automatically exported. The library names may be delimited - by commas or colons. Specifying `--exclude-libs ALL' excludes - symbols in all archive libraries from automatic export. Symbols - explicitly listed in a .def file are still exported, regardless of - this option. [This option is specific to the i386 PE targeted - port of the linker] - -`--file-alignment' - Specify the file alignment. Sections in the file will always - begin at file offsets which are multiples of this number. This - defaults to 512. [This option is specific to the i386 PE targeted - port of the linker] - -`--heap RESERVE' -`--heap RESERVE,COMMIT' - Specify the amount of memory to reserve (and optionally commit) to - be used as heap for this program. The default is 1Mb reserved, 4K - committed. [This option is specific to the i386 PE targeted port - of the linker] - -`--image-base VALUE' - Use VALUE as the base address of your program or dll. This is the - lowest memory location that will be used when your program or dll - is loaded. To reduce the need to relocate and improve performance - of your dlls, each should have a unique base address and not - overlap any other dlls. The default is 0x400000 for executables, - and 0x10000000 for dlls. [This option is specific to the i386 PE - targeted port of the linker] - -`--kill-at' - If given, the stdcall suffixes (@NN) will be stripped from symbols - before they are exported. [This option is specific to the i386 PE - targeted port of the linker] - -`--major-image-version VALUE' - Sets the major number of the "image version". Defaults to 1. - [This option is specific to the i386 PE targeted port of the - linker] - -`--major-os-version VALUE' - Sets the major number of the "os version". Defaults to 4. [This - option is specific to the i386 PE targeted port of the linker] - -`--major-subsystem-version VALUE' - Sets the major number of the "subsystem version". Defaults to 4. - [This option is specific to the i386 PE targeted port of the - linker] - -`--minor-image-version VALUE' - Sets the minor number of the "image version". Defaults to 0. - [This option is specific to the i386 PE targeted port of the - linker] - -`--minor-os-version VALUE' - Sets the minor number of the "os version". Defaults to 0. [This - option is specific to the i386 PE targeted port of the linker] - -`--minor-subsystem-version VALUE' - Sets the minor number of the "subsystem version". Defaults to 0. - [This option is specific to the i386 PE targeted port of the - linker] - -`--output-def FILE' - The linker will create the file FILE which will contain a DEF file - corresponding to the DLL the linker is generating. This DEF file - (which should be called `*.def') may be used to create an import - library with `dlltool' or may be used as a reference to - automatically or implicitly exported symbols. [This option is - specific to the i386 PE targeted port of the linker] - -`--out-implib FILE' - The linker will create the file FILE which will contain an import - lib corresponding to the DLL the linker is generating. This import - lib (which should be called `*.dll.a' or `*.a' may be used to link - clients against the generated DLL; this behavior makes it possible - to skip a separate `dlltool' import library creation step. [This - option is specific to the i386 PE targeted port of the linker] - -`--enable-auto-image-base' - Automatically choose the image base for DLLs, unless one is - specified using the `--image-base' argument. By using a hash - generated from the dllname to create unique image bases for each - DLL, in-memory collisions and relocations which can delay program - execution are avoided. [This option is specific to the i386 PE - targeted port of the linker] - -`--disable-auto-image-base' - Do not automatically generate a unique image base. If there is no - user-specified image base (`--image-base') then use the platform - default. [This option is specific to the i386 PE targeted port of - the linker] - -`--dll-search-prefix STRING' - When linking dynamically to a dll without an import library, - search for `.dll' in preference to - `lib.dll'. This behavior allows easy distinction between - DLLs built for the various "subplatforms": native, cygwin, uwin, - pw, etc. For instance, cygwin DLLs typically use - `--dll-search-prefix=cyg'. [This option is specific to the i386 - PE targeted port of the linker] - -`--enable-auto-import' - Do sophisticated linking of `_symbol' to `__imp__symbol' for DATA - imports from DLLs, and create the necessary thunking symbols when - building the import libraries with those DATA exports. This - generally will 'just work' - but sometimes you may see this - message: - - "variable '' can't be auto-imported. Please read the - documentation for ld's `--enable-auto-import' for details." - - This message occurs when some (sub)expression accesses an address - ultimately given by the sum of two constants (Win32 import tables - only allow one). Instances where this may occur include accesses - to member fields of struct variables imported from a DLL, as well - as using a constant index into an array variable imported from a - DLL. Any multiword variable (arrays, structs, long long, etc) may - trigger this error condition. However, regardless of the exact - data type of the offending exported variable, ld will always - detect it, issue the warning, and exit. - - There are several ways to address this difficulty, regardless of - the data type of the exported variable: - - One way is to use -enable-runtime-pseudo-reloc switch. This leaves - the task of adjusting references in your client code for runtime - environment, so this method works only when runtime environtment - supports this feature. - - A second solution is to force one of the 'constants' to be a - variable - that is, unknown and un-optimizable at compile time. - For arrays, there are two possibilities: a) make the indexee (the - array's address) a variable, or b) make the 'constant' index a - variable. Thus: - - extern type extern_array[]; - extern_array[1] --> - { volatile type *t=extern_array; t[1] } - - or - - extern type extern_array[]; - extern_array[1] --> - { volatile int t=1; extern_array[t] } - - For structs (and most other multiword data types) the only option - is to make the struct itself (or the long long, or the ...) - variable: - - extern struct s extern_struct; - extern_struct.field --> - { volatile struct s *t=&extern_struct; t->field } - - or - - extern long long extern_ll; - extern_ll --> - { volatile long long * local_ll=&extern_ll; *local_ll } - - A third method of dealing with this difficulty is to abandon - 'auto-import' for the offending symbol and mark it with - `__declspec(dllimport)'. However, in practice that requires using - compile-time #defines to indicate whether you are building a DLL, - building client code that will link to the DLL, or merely - building/linking to a static library. In making the choice - between the various methods of resolving the 'direct address with - constant offset' problem, you should consider typical real-world - usage: - - Original: - --foo.h - extern int arr[]; - --foo.c - #include "foo.h" - void main(int argc, char **argv){ - printf("%d\n",arr[1]); - } - - Solution 1: - --foo.h - extern int arr[]; - --foo.c - #include "foo.h" - void main(int argc, char **argv){ - /* This workaround is for win32 and cygwin; do not "optimize" */ - volatile int *parr = arr; - printf("%d\n",parr[1]); - } - - Solution 2: - --foo.h - /* Note: auto-export is assumed (no __declspec(dllexport)) */ - #if (defined(_WIN32) || defined(__CYGWIN__)) && \ - !(defined(FOO_BUILD_DLL) || defined(FOO_STATIC)) - #define FOO_IMPORT __declspec(dllimport) - #else - #define FOO_IMPORT - #endif - extern FOO_IMPORT int arr[]; - --foo.c - #include "foo.h" - void main(int argc, char **argv){ - printf("%d\n",arr[1]); - } - - A fourth way to avoid this problem is to re-code your library to - use a functional interface rather than a data interface for the - offending variables (e.g. set_foo() and get_foo() accessor - functions). [This option is specific to the i386 PE targeted port - of the linker] - -`--disable-auto-import' - Do not attempt to do sophisticalted linking of `_symbol' to - `__imp__symbol' for DATA imports from DLLs. [This option is - specific to the i386 PE targeted port of the linker] - -`--enable-runtime-pseudo-reloc' - If your code contains expressions described in -enable-auto-import - section, that is, DATA imports from DLL with non-zero offset, this - switch will create a vector of 'runtime pseudo relocations' which - can be used by runtime environment to adjust references to such - data in your client code. [This option is specific to the i386 PE - targeted port of the linker] - -`--disable-runtime-pseudo-reloc' - Do not create pseudo relocations for non-zero offset DATA imports - from DLLs. This is the default. [This option is specific to the - i386 PE targeted port of the linker] - -`--enable-extra-pe-debug' - Show additional debug info related to auto-import symbol thunking. - [This option is specific to the i386 PE targeted port of the - linker] - -`--section-alignment' - Sets the section alignment. Sections in memory will always begin - at addresses which are a multiple of this number. Defaults to - 0x1000. [This option is specific to the i386 PE targeted port of - the linker] - -`--stack RESERVE' -`--stack RESERVE,COMMIT' - Specify the amount of memory to reserve (and optionally commit) to - be used as stack for this program. The default is 2Mb reserved, 4K - committed. [This option is specific to the i386 PE targeted port - of the linker] - -`--subsystem WHICH' -`--subsystem WHICH:MAJOR' -`--subsystem WHICH:MAJOR.MINOR' - Specifies the subsystem under which your program will execute. The - legal values for WHICH are `native', `windows', `console', and - `posix'. You may optionally set the subsystem version also. - [This option is specific to the i386 PE targeted port of the - linker] - diff --git a/gnu/dist/binutils/ld/ld.info-3 b/gnu/dist/binutils/ld/ld.info-3 deleted file mode 100644 index c902dd4992bf..000000000000 --- a/gnu/dist/binutils/ld/ld.info-3 +++ /dev/null @@ -1,1238 +0,0 @@ -This is ld.info, produced by makeinfo version 4.3 from ./ld.texinfo. - -START-INFO-DIR-ENTRY -* Ld: (ld). The GNU linker. -END-INFO-DIR-ENTRY - - This file documents the GNU linker LD version 2.14. - - Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, -2002, 2003 Free Software Foundation, Inc. - - -File: ld.info, Node: Environment, Prev: Options, Up: Invocation - -Environment Variables -===================== - - You can change the behavior of `ld' with the environment variables -`GNUTARGET', `LDEMULATION' and `COLLECT_NO_DEMANGLE'. - - `GNUTARGET' determines the input-file object format if you don't use -`-b' (or its synonym `--format'). Its value should be one of the BFD -names for an input format (*note BFD::). If there is no `GNUTARGET' in -the environment, `ld' uses the natural format of the target. If -`GNUTARGET' is set to `default' then BFD attempts to discover the input -format by examining binary input files; this method often succeeds, but -there are potential ambiguities, since there is no method of ensuring -that the magic number used to specify object-file formats is unique. -However, the configuration procedure for BFD on each system places the -conventional format for that system first in the search-list, so -ambiguities are resolved in favor of convention. - - `LDEMULATION' determines the default emulation if you don't use the -`-m' option. The emulation can affect various aspects of linker -behaviour, particularly the default linker script. You can list the -available emulations with the `--verbose' or `-V' options. If the `-m' -option is not used, and the `LDEMULATION' environment variable is not -defined, the default emulation depends upon how the linker was -configured. - - Normally, the linker will default to demangling symbols. However, if -`COLLECT_NO_DEMANGLE' is set in the environment, then it will default -to not demangling symbols. This environment variable is used in a -similar fashion by the `gcc' linker wrapper program. The default may -be overridden by the `--demangle' and `--no-demangle' options. - - -File: ld.info, Node: Scripts, Next: Machine Dependent, Prev: Invocation, Up: Top - -Linker Scripts -************** - - Every link is controlled by a "linker script". This script is -written in the linker command language. - - The main purpose of the linker script is to describe how the -sections in the input files should be mapped into the output file, and -to control the memory layout of the output file. Most linker scripts -do nothing more than this. However, when necessary, the linker script -can also direct the linker to perform many other operations, using the -commands described below. - - The linker always uses a linker script. If you do not supply one -yourself, the linker will use a default script that is compiled into the -linker executable. You can use the `--verbose' command line option to -display the default linker script. Certain command line options, such -as `-r' or `-N', will affect the default linker script. - - You may supply your own linker script by using the `-T' command line -option. When you do this, your linker script will replace the default -linker script. - - You may also use linker scripts implicitly by naming them as input -files to the linker, as though they were files to be linked. *Note -Implicit Linker Scripts::. - -* Menu: - -* Basic Script Concepts:: Basic Linker Script Concepts -* Script Format:: Linker Script Format -* Simple Example:: Simple Linker Script Example -* Simple Commands:: Simple Linker Script Commands -* Assignments:: Assigning Values to Symbols -* SECTIONS:: SECTIONS Command -* MEMORY:: MEMORY Command -* PHDRS:: PHDRS Command -* VERSION:: VERSION Command -* Expressions:: Expressions in Linker Scripts -* Implicit Linker Scripts:: Implicit Linker Scripts - - -File: ld.info, Node: Basic Script Concepts, Next: Script Format, Up: Scripts - -Basic Linker Script Concepts -============================ - - We need to define some basic concepts and vocabulary in order to -describe the linker script language. - - The linker combines input files into a single output file. The -output file and each input file are in a special data format known as an -"object file format". Each file is called an "object file". The -output file is often called an "executable", but for our purposes we -will also call it an object file. Each object file has, among other -things, a list of "sections". We sometimes refer to a section in an -input file as an "input section"; similarly, a section in the output -file is an "output section". - - Each section in an object file has a name and a size. Most sections -also have an associated block of data, known as the "section contents". -A section may be marked as "loadable", which mean that the contents -should be loaded into memory when the output file is run. A section -with no contents may be "allocatable", which means that an area in -memory should be set aside, but nothing in particular should be loaded -there (in some cases this memory must be zeroed out). A section which -is neither loadable nor allocatable typically contains some sort of -debugging information. - - Every loadable or allocatable output section has two addresses. The -first is the "VMA", or virtual memory address. This is the address the -section will have when the output file is run. The second is the -"LMA", or load memory address. This is the address at which the -section will be loaded. In most cases the two addresses will be the -same. An example of when they might be different is when a data section -is loaded into ROM, and then copied into RAM when the program starts up -(this technique is often used to initialize global variables in a ROM -based system). In this case the ROM address would be the LMA, and the -RAM address would be the VMA. - - You can see the sections in an object file by using the `objdump' -program with the `-h' option. - - Every object file also has a list of "symbols", known as the "symbol -table". A symbol may be defined or undefined. Each symbol has a name, -and each defined symbol has an address, among other information. If -you compile a C or C++ program into an object file, you will get a -defined symbol for every defined function and global or static -variable. Every undefined function or global variable which is -referenced in the input file will become an undefined symbol. - - You can see the symbols in an object file by using the `nm' program, -or by using the `objdump' program with the `-t' option. - - -File: ld.info, Node: Script Format, Next: Simple Example, Prev: Basic Script Concepts, Up: Scripts - -Linker Script Format -==================== - - Linker scripts are text files. - - You write a linker script as a series of commands. Each command is -either a keyword, possibly followed by arguments, or an assignment to a -symbol. You may separate commands using semicolons. Whitespace is -generally ignored. - - Strings such as file or format names can normally be entered -directly. If the file name contains a character such as a comma which -would otherwise serve to separate file names, you may put the file name -in double quotes. There is no way to use a double quote character in a -file name. - - You may include comments in linker scripts just as in C, delimited by -`/*' and `*/'. As in C, comments are syntactically equivalent to -whitespace. - - -File: ld.info, Node: Simple Example, Next: Simple Commands, Prev: Script Format, Up: Scripts - -Simple Linker Script Example -============================ - - Many linker scripts are fairly simple. - - The simplest possible linker script has just one command: -`SECTIONS'. You use the `SECTIONS' command to describe the memory -layout of the output file. - - The `SECTIONS' command is a powerful command. Here we will describe -a simple use of it. Let's assume your program consists only of code, -initialized data, and uninitialized data. These will be in the -`.text', `.data', and `.bss' sections, respectively. Let's assume -further that these are the only sections which appear in your input -files. - - For this example, let's say that the code should be loaded at address -0x10000, and that the data should start at address 0x8000000. Here is a -linker script which will do that: - SECTIONS - { - . = 0x10000; - .text : { *(.text) } - . = 0x8000000; - .data : { *(.data) } - .bss : { *(.bss) } - } - - You write the `SECTIONS' command as the keyword `SECTIONS', followed -by a series of symbol assignments and output section descriptions -enclosed in curly braces. - - The first line inside the `SECTIONS' command of the above example -sets the value of the special symbol `.', which is the location -counter. If you do not specify the address of an output section in some -other way (other ways are described later), the address is set from the -current value of the location counter. The location counter is then -incremented by the size of the output section. At the start of the -`SECTIONS' command, the location counter has the value `0'. - - The second line defines an output section, `.text'. The colon is -required syntax which may be ignored for now. Within the curly braces -after the output section name, you list the names of the input sections -which should be placed into this output section. The `*' is a wildcard -which matches any file name. The expression `*(.text)' means all -`.text' input sections in all input files. - - Since the location counter is `0x10000' when the output section -`.text' is defined, the linker will set the address of the `.text' -section in the output file to be `0x10000'. - - The remaining lines define the `.data' and `.bss' sections in the -output file. The linker will place the `.data' output section at -address `0x8000000'. After the linker places the `.data' output -section, the value of the location counter will be `0x8000000' plus the -size of the `.data' output section. The effect is that the linker will -place the `.bss' output section immediately after the `.data' output -section in memory - - The linker will ensure that each output section has the required -alignment, by increasing the location counter if necessary. In this -example, the specified addresses for the `.text' and `.data' sections -will probably satisfy any alignment constraints, but the linker may -have to create a small gap between the `.data' and `.bss' sections. - - That's it! That's a simple and complete linker script. - - -File: ld.info, Node: Simple Commands, Next: Assignments, Prev: Simple Example, Up: Scripts - -Simple Linker Script Commands -============================= - - In this section we describe the simple linker script commands. - -* Menu: - -* Entry Point:: Setting the entry point -* File Commands:: Commands dealing with files - -* Format Commands:: Commands dealing with object file formats - -* Miscellaneous Commands:: Other linker script commands - - -File: ld.info, Node: Entry Point, Next: File Commands, Up: Simple Commands - -Setting the Entry Point ------------------------ - - The first instruction to execute in a program is called the "entry -point". You can use the `ENTRY' linker script command to set the entry -point. The argument is a symbol name: - ENTRY(SYMBOL) - - There are several ways to set the entry point. The linker will set -the entry point by trying each of the following methods in order, and -stopping when one of them succeeds: - * the `-e' ENTRY command-line option; - - * the `ENTRY(SYMBOL)' command in a linker script; - - * the value of the symbol `start', if defined; - - * the address of the first byte of the `.text' section, if present; - - * The address `0'. - - -File: ld.info, Node: File Commands, Next: Format Commands, Prev: Entry Point, Up: Simple Commands - -Commands Dealing with Files ---------------------------- - - Several linker script commands deal with files. - -`INCLUDE FILENAME' - Include the linker script FILENAME at this point. The file will - be searched for in the current directory, and in any directory - specified with the `-L' option. You can nest calls to `INCLUDE' - up to 10 levels deep. - -`INPUT(FILE, FILE, ...)' -`INPUT(FILE FILE ...)' - The `INPUT' command directs the linker to include the named files - in the link, as though they were named on the command line. - - For example, if you always want to include `subr.o' any time you do - a link, but you can't be bothered to put it on every link command - line, then you can put `INPUT (subr.o)' in your linker script. - - In fact, if you like, you can list all of your input files in the - linker script, and then invoke the linker with nothing but a `-T' - option. - - In case a "sysroot prefix" is configured, and the filename starts - with the `/' character, and the script being processed was located - inside the "sysroot prefix", the filename will be looked for in - the "sysroot prefix". Otherwise, the linker will try to open the - file in the current directory. If it is not found, the linker - will search through the archive library search path. See the - description of `-L' in *Note Command Line Options: Options. - - If you use `INPUT (-lFILE)', `ld' will transform the name to - `libFILE.a', as with the command line argument `-l'. - - When you use the `INPUT' command in an implicit linker script, the - files will be included in the link at the point at which the linker - script file is included. This can affect archive searching. - -`GROUP(FILE, FILE, ...)' -`GROUP(FILE FILE ...)' - The `GROUP' command is like `INPUT', except that the named files - should all be archives, and they are searched repeatedly until no - new undefined references are created. See the description of `-(' - in *Note Command Line Options: Options. - -`OUTPUT(FILENAME)' - The `OUTPUT' command names the output file. Using - `OUTPUT(FILENAME)' in the linker script is exactly like using `-o - FILENAME' on the command line (*note Command Line Options: - Options.). If both are used, the command line option takes - precedence. - - You can use the `OUTPUT' command to define a default name for the - output file other than the usual default of `a.out'. - -`SEARCH_DIR(PATH)' - The `SEARCH_DIR' command adds PATH to the list of paths where `ld' - looks for archive libraries. Using `SEARCH_DIR(PATH)' is exactly - like using `-L PATH' on the command line (*note Command Line - Options: Options.). If both are used, then the linker will search - both paths. Paths specified using the command line option are - searched first. - -`STARTUP(FILENAME)' - The `STARTUP' command is just like the `INPUT' command, except - that FILENAME will become the first input file to be linked, as - though it were specified first on the command line. This may be - useful when using a system in which the entry point is always the - start of the first file. - - -File: ld.info, Node: Format Commands, Next: Miscellaneous Commands, Prev: File Commands, Up: Simple Commands - -Commands Dealing with Object File Formats ------------------------------------------ - - A couple of linker script commands deal with object file formats. - -`OUTPUT_FORMAT(BFDNAME)' -`OUTPUT_FORMAT(DEFAULT, BIG, LITTLE)' - The `OUTPUT_FORMAT' command names the BFD format to use for the - output file (*note BFD::). Using `OUTPUT_FORMAT(BFDNAME)' is - exactly like using `--oformat BFDNAME' on the command line (*note - Command Line Options: Options.). If both are used, the command - line option takes precedence. - - You can use `OUTPUT_FORMAT' with three arguments to use different - formats based on the `-EB' and `-EL' command line options. This - permits the linker script to set the output format based on the - desired endianness. - - If neither `-EB' nor `-EL' are used, then the output format will - be the first argument, DEFAULT. If `-EB' is used, the output - format will be the second argument, BIG. If `-EL' is used, the - output format will be the third argument, LITTLE. - - For example, the default linker script for the MIPS ELF target - uses this command: - OUTPUT_FORMAT(elf32-bigmips, elf32-bigmips, elf32-littlemips) - This says that the default format for the output file is - `elf32-bigmips', but if the user uses the `-EL' command line - option, the output file will be created in the `elf32-littlemips' - format. - -`TARGET(BFDNAME)' - The `TARGET' command names the BFD format to use when reading input - files. It affects subsequent `INPUT' and `GROUP' commands. This - command is like using `-b BFDNAME' on the command line (*note - Command Line Options: Options.). If the `TARGET' command is used - but `OUTPUT_FORMAT' is not, then the last `TARGET' command is also - used to set the format for the output file. *Note BFD::. - - -File: ld.info, Node: Miscellaneous Commands, Prev: Format Commands, Up: Simple Commands - -Other Linker Script Commands ----------------------------- - - There are a few other linker scripts commands. - -`ASSERT(EXP, MESSAGE)' - Ensure that EXP is non-zero. If it is zero, then exit the linker - with an error code, and print MESSAGE. - -`EXTERN(SYMBOL SYMBOL ...)' - Force SYMBOL to be entered in the output file as an undefined - symbol. Doing this may, for example, trigger linking of additional - modules from standard libraries. You may list several SYMBOLs for - each `EXTERN', and you may use `EXTERN' multiple times. This - command has the same effect as the `-u' command-line option. - -`FORCE_COMMON_ALLOCATION' - This command has the same effect as the `-d' command-line option: - to make `ld' assign space to common symbols even if a relocatable - output file is specified (`-r'). - -`INHIBIT_COMMON_ALLOCATION' - This command has the same effect as the `--no-define-common' - command-line option: to make `ld' omit the assignment of addresses - to common symbols even for a non-relocatable output file. - -`NOCROSSREFS(SECTION SECTION ...)' - This command may be used to tell `ld' to issue an error about any - references among certain output sections. - - In certain types of programs, particularly on embedded systems when - using overlays, when one section is loaded into memory, another - section will not be. Any direct references between the two - sections would be errors. For example, it would be an error if - code in one section called a function defined in the other section. - - The `NOCROSSREFS' command takes a list of output section names. If - `ld' detects any cross references between the sections, it reports - an error and returns a non-zero exit status. Note that the - `NOCROSSREFS' command uses output section names, not input section - names. - -`OUTPUT_ARCH(BFDARCH)' - Specify a particular output machine architecture. The argument is - one of the names used by the BFD library (*note BFD::). You can - see the architecture of an object file by using the `objdump' - program with the `-f' option. - - -File: ld.info, Node: Assignments, Next: SECTIONS, Prev: Simple Commands, Up: Scripts - -Assigning Values to Symbols -=========================== - - You may assign a value to a symbol in a linker script. This will -define the symbol as a global symbol. - -* Menu: - -* Simple Assignments:: Simple Assignments -* PROVIDE:: PROVIDE - - -File: ld.info, Node: Simple Assignments, Next: PROVIDE, Up: Assignments - -Simple Assignments ------------------- - - You may assign to a symbol using any of the C assignment operators: - -`SYMBOL = EXPRESSION ;' -`SYMBOL += EXPRESSION ;' -`SYMBOL -= EXPRESSION ;' -`SYMBOL *= EXPRESSION ;' -`SYMBOL /= EXPRESSION ;' -`SYMBOL <<= EXPRESSION ;' -`SYMBOL >>= EXPRESSION ;' -`SYMBOL &= EXPRESSION ;' -`SYMBOL |= EXPRESSION ;' - The first case will define SYMBOL to the value of EXPRESSION. In -the other cases, SYMBOL must already be defined, and the value will be -adjusted accordingly. - - The special symbol name `.' indicates the location counter. You may -only use this within a `SECTIONS' command. - - The semicolon after EXPRESSION is required. - - Expressions are defined below; see *Note Expressions::. - - You may write symbol assignments as commands in their own right, or -as statements within a `SECTIONS' command, or as part of an output -section description in a `SECTIONS' command. - - The section of the symbol will be set from the section of the -expression; for more information, see *Note Expression Section::. - - Here is an example showing the three different places that symbol -assignments may be used: - - floating_point = 0; - SECTIONS - { - .text : - { - *(.text) - _etext = .; - } - _bdata = (. + 3) & ~ 3; - .data : { *(.data) } - } - -In this example, the symbol `floating_point' will be defined as zero. -The symbol `_etext' will be defined as the address following the last -`.text' input section. The symbol `_bdata' will be defined as the -address following the `.text' output section aligned upward to a 4 byte -boundary. - - -File: ld.info, Node: PROVIDE, Prev: Simple Assignments, Up: Assignments - -PROVIDE -------- - - In some cases, it is desirable for a linker script to define a symbol -only if it is referenced and is not defined by any object included in -the link. For example, traditional linkers defined the symbol `etext'. -However, ANSI C requires that the user be able to use `etext' as a -function name without encountering an error. The `PROVIDE' keyword may -be used to define a symbol, such as `etext', only if it is referenced -but not defined. The syntax is `PROVIDE(SYMBOL = EXPRESSION)'. - - Here is an example of using `PROVIDE' to define `etext': - SECTIONS - { - .text : - { - *(.text) - _etext = .; - PROVIDE(etext = .); - } - } - - In this example, if the program defines `_etext' (with a leading -underscore), the linker will give a multiple definition error. If, on -the other hand, the program defines `etext' (with no leading -underscore), the linker will silently use the definition in the program. -If the program references `etext' but does not define it, the linker -will use the definition in the linker script. - - -File: ld.info, Node: SECTIONS, Next: MEMORY, Prev: Assignments, Up: Scripts - -SECTIONS Command -================ - - The `SECTIONS' command tells the linker how to map input sections -into output sections, and how to place the output sections in memory. - - The format of the `SECTIONS' command is: - SECTIONS - { - SECTIONS-COMMAND - SECTIONS-COMMAND - ... - } - - Each SECTIONS-COMMAND may of be one of the following: - - * an `ENTRY' command (*note Entry command: Entry Point.) - - * a symbol assignment (*note Assignments::) - - * an output section description - - * an overlay description - - The `ENTRY' command and symbol assignments are permitted inside the -`SECTIONS' command for convenience in using the location counter in -those commands. This can also make the linker script easier to -understand because you can use those commands at meaningful points in -the layout of the output file. - - Output section descriptions and overlay descriptions are described -below. - - If you do not use a `SECTIONS' command in your linker script, the -linker will place each input section into an identically named output -section in the order that the sections are first encountered in the -input files. If all input sections are present in the first file, for -example, the order of sections in the output file will match the order -in the first input file. The first section will be at address zero. - -* Menu: - -* Output Section Description:: Output section description -* Output Section Name:: Output section name -* Output Section Address:: Output section address -* Input Section:: Input section description -* Output Section Data:: Output section data -* Output Section Keywords:: Output section keywords -* Output Section Discarding:: Output section discarding -* Output Section Attributes:: Output section attributes -* Overlay Description:: Overlay description - - -File: ld.info, Node: Output Section Description, Next: Output Section Name, Up: SECTIONS - -Output Section Description --------------------------- - - The full description of an output section looks like this: - SECTION [ADDRESS] [(TYPE)] : [AT(LMA)] - { - OUTPUT-SECTION-COMMAND - OUTPUT-SECTION-COMMAND - ... - } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP] - - Most output sections do not use most of the optional section -attributes. - - The whitespace around SECTION is required, so that the section name -is unambiguous. The colon and the curly braces are also required. The -line breaks and other white space are optional. - - Each OUTPUT-SECTION-COMMAND may be one of the following: - - * a symbol assignment (*note Assignments::) - - * an input section description (*note Input Section::) - - * data values to include directly (*note Output Section Data::) - - * a special output section keyword (*note Output Section Keywords::) - - -File: ld.info, Node: Output Section Name, Next: Output Section Address, Prev: Output Section Description, Up: SECTIONS - -Output Section Name -------------------- - - The name of the output section is SECTION. SECTION must meet the -constraints of your output format. In formats which only support a -limited number of sections, such as `a.out', the name must be one of -the names supported by the format (`a.out', for example, allows only -`.text', `.data' or `.bss'). If the output format supports any number -of sections, but with numbers and not names (as is the case for Oasys), -the name should be supplied as a quoted numeric string. A section name -may consist of any sequence of characters, but a name which contains -any unusual characters such as commas must be quoted. - - The output section name `/DISCARD/' is special; *Note Output Section -Discarding::. - - -File: ld.info, Node: Output Section Address, Next: Input Section, Prev: Output Section Name, Up: SECTIONS - -Output Section Description --------------------------- - - The ADDRESS is an expression for the VMA (the virtual memory -address) of the output section. If you do not provide ADDRESS, the -linker will set it based on REGION if present, or otherwise based on -the current value of the location counter. - - If you provide ADDRESS, the address of the output section will be -set to precisely that. If you provide neither ADDRESS nor REGION, then -the address of the output section will be set to the current value of -the location counter aligned to the alignment requirements of the -output section. The alignment requirement of the output section is the -strictest alignment of any input section contained within the output -section. - - For example, - .text . : { *(.text) } - -and - .text : { *(.text) } - -are subtly different. The first will set the address of the `.text' -output section to the current value of the location counter. The -second will set it to the current value of the location counter aligned -to the strictest alignment of a `.text' input section. - - The ADDRESS may be an arbitrary expression; *Note Expressions::. -For example, if you want to align the section on a 0x10 byte boundary, -so that the lowest four bits of the section address are zero, you could -do something like this: - .text ALIGN(0x10) : { *(.text) } - -This works because `ALIGN' returns the current location counter aligned -upward to the specified value. - - Specifying ADDRESS for a section will change the value of the -location counter. - - -File: ld.info, Node: Input Section, Next: Output Section Data, Prev: Output Section Address, Up: SECTIONS - -Input Section Description -------------------------- - - The most common output section command is an input section -description. - - The input section description is the most basic linker script -operation. You use output sections to tell the linker how to lay out -your program in memory. You use input section descriptions to tell the -linker how to map the input files into your memory layout. - -* Menu: - -* Input Section Basics:: Input section basics -* Input Section Wildcards:: Input section wildcard patterns -* Input Section Common:: Input section for common symbols -* Input Section Keep:: Input section and garbage collection -* Input Section Example:: Input section example - - -File: ld.info, Node: Input Section Basics, Next: Input Section Wildcards, Up: Input Section - -Input Section Basics -.................... - - An input section description consists of a file name optionally -followed by a list of section names in parentheses. - - The file name and the section name may be wildcard patterns, which we -describe further below (*note Input Section Wildcards::). - - The most common input section description is to include all input -sections with a particular name in the output section. For example, to -include all input `.text' sections, you would write: - *(.text) - -Here the `*' is a wildcard which matches any file name. To exclude a -list of files from matching the file name wildcard, EXCLUDE_FILE may be -used to match all files except the ones specified in the EXCLUDE_FILE -list. For example: - (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors)) - will cause all .ctors sections from all files except `crtend.o' and -`otherfile.o' to be included. - - There are two ways to include more than one section: - *(.text .rdata) - *(.text) *(.rdata) - -The difference between these is the order in which the `.text' and -`.rdata' input sections will appear in the output section. In the -first example, they will be intermingled, appearing in the same order as -they are found in the linker input. In the second example, all `.text' -input sections will appear first, followed by all `.rdata' input -sections. - - You can specify a file name to include sections from a particular -file. You would do this if one or more of your files contain special -data that needs to be at a particular location in memory. For example: - data.o(.data) - - If you use a file name without a list of sections, then all sections -in the input file will be included in the output section. This is not -commonly done, but it may by useful on occasion. For example: - data.o - - When you use a file name which does not contain any wild card -characters, the linker will first see if you also specified the file -name on the linker command line or in an `INPUT' command. If you did -not, the linker will attempt to open the file as an input file, as -though it appeared on the command line. Note that this differs from an -`INPUT' command, because the linker will not search for the file in the -archive search path. - - -File: ld.info, Node: Input Section Wildcards, Next: Input Section Common, Prev: Input Section Basics, Up: Input Section - -Input Section Wildcard Patterns -............................... - - In an input section description, either the file name or the section -name or both may be wildcard patterns. - - The file name of `*' seen in many examples is a simple wildcard -pattern for the file name. - - The wildcard patterns are like those used by the Unix shell. - -`*' - matches any number of characters - -`?' - matches any single character - -`[CHARS]' - matches a single instance of any of the CHARS; the `-' character - may be used to specify a range of characters, as in `[a-z]' to - match any lower case letter - -`\' - quotes the following character - - When a file name is matched with a wildcard, the wildcard characters -will not match a `/' character (used to separate directory names on -Unix). A pattern consisting of a single `*' character is an exception; -it will always match any file name, whether it contains a `/' or not. -In a section name, the wildcard characters will match a `/' character. - - File name wildcard patterns only match files which are explicitly -specified on the command line or in an `INPUT' command. The linker -does not search directories to expand wildcards. - - If a file name matches more than one wildcard pattern, or if a file -name appears explicitly and is also matched by a wildcard pattern, the -linker will use the first match in the linker script. For example, this -sequence of input section descriptions is probably in error, because the -`data.o' rule will not be used: - .data : { *(.data) } - .data1 : { data.o(.data) } - - Normally, the linker will place files and sections matched by -wildcards in the order in which they are seen during the link. You can -change this by using the `SORT' keyword, which appears before a wildcard -pattern in parentheses (e.g., `SORT(.text*)'). When the `SORT' keyword -is used, the linker will sort the files or sections into ascending -order by name before placing them in the output file. - - If you ever get confused about where input sections are going, use -the `-M' linker option to generate a map file. The map file shows -precisely how input sections are mapped to output sections. - - This example shows how wildcard patterns might be used to partition -files. This linker script directs the linker to place all `.text' -sections in `.text' and all `.bss' sections in `.bss'. The linker will -place the `.data' section from all files beginning with an upper case -character in `.DATA'; for all other files, the linker will place the -`.data' section in `.data'. - SECTIONS { - .text : { *(.text) } - .DATA : { [A-Z]*(.data) } - .data : { *(.data) } - .bss : { *(.bss) } - } - - -File: ld.info, Node: Input Section Common, Next: Input Section Keep, Prev: Input Section Wildcards, Up: Input Section - -Input Section for Common Symbols -................................ - - A special notation is needed for common symbols, because in many -object file formats common symbols do not have a particular input -section. The linker treats common symbols as though they are in an -input section named `COMMON'. - - You may use file names with the `COMMON' section just as with any -other input sections. You can use this to place common symbols from a -particular input file in one section while common symbols from other -input files are placed in another section. - - In most cases, common symbols in input files will be placed in the -`.bss' section in the output file. For example: - .bss { *(.bss) *(COMMON) } - - Some object file formats have more than one type of common symbol. -For example, the MIPS ELF object file format distinguishes standard -common symbols and small common symbols. In this case, the linker will -use a different special section name for other types of common symbols. -In the case of MIPS ELF, the linker uses `COMMON' for standard common -symbols and `.scommon' for small common symbols. This permits you to -map the different types of common symbols into memory at different -locations. - - You will sometimes see `[COMMON]' in old linker scripts. This -notation is now considered obsolete. It is equivalent to `*(COMMON)'. - - -File: ld.info, Node: Input Section Keep, Next: Input Section Example, Prev: Input Section Common, Up: Input Section - -Input Section and Garbage Collection -.................................... - - When link-time garbage collection is in use (`--gc-sections'), it is -often useful to mark sections that should not be eliminated. This is -accomplished by surrounding an input section's wildcard entry with -`KEEP()', as in `KEEP(*(.init))' or `KEEP(SORT(*)(.ctors))'. - - -File: ld.info, Node: Input Section Example, Prev: Input Section Keep, Up: Input Section - -Input Section Example -..................... - - The following example is a complete linker script. It tells the -linker to read all of the sections from file `all.o' and place them at -the start of output section `outputa' which starts at location -`0x10000'. All of section `.input1' from file `foo.o' follows -immediately, in the same output section. All of section `.input2' from -`foo.o' goes into output section `outputb', followed by section -`.input1' from `foo1.o'. All of the remaining `.input1' and `.input2' -sections from any files are written to output section `outputc'. - - SECTIONS { - outputa 0x10000 : - { - all.o - foo.o (.input1) - } - outputb : - { - foo.o (.input2) - foo1.o (.input1) - } - outputc : - { - *(.input1) - *(.input2) - } - } - - -File: ld.info, Node: Output Section Data, Next: Output Section Keywords, Prev: Input Section, Up: SECTIONS - -Output Section Data -------------------- - - You can include explicit bytes of data in an output section by using -`BYTE', `SHORT', `LONG', `QUAD', or `SQUAD' as an output section -command. Each keyword is followed by an expression in parentheses -providing the value to store (*note Expressions::). The value of the -expression is stored at the current value of the location counter. - - The `BYTE', `SHORT', `LONG', and `QUAD' commands store one, two, -four, and eight bytes (respectively). After storing the bytes, the -location counter is incremented by the number of bytes stored. - - For example, this will store the byte 1 followed by the four byte -value of the symbol `addr': - BYTE(1) - LONG(addr) - - When using a 64 bit host or target, `QUAD' and `SQUAD' are the same; -they both store an 8 byte, or 64 bit, value. When both host and target -are 32 bits, an expression is computed as 32 bits. In this case `QUAD' -stores a 32 bit value zero extended to 64 bits, and `SQUAD' stores a 32 -bit value sign extended to 64 bits. - - If the object file format of the output file has an explicit -endianness, which is the normal case, the value will be stored in that -endianness. When the object file format does not have an explicit -endianness, as is true of, for example, S-records, the value will be -stored in the endianness of the first input object file. - - Note--these commands only work inside a section description and not -between them, so the following will produce an error from the linker: - SECTIONS { .text : { *(.text) } LONG(1) .data : { *(.data) } } - whereas this will work: - SECTIONS { .text : { *(.text) ; LONG(1) } .data : { *(.data) } } - - You may use the `FILL' command to set the fill pattern for the -current section. It is followed by an expression in parentheses. Any -otherwise unspecified regions of memory within the section (for example, -gaps left due to the required alignment of input sections) are filled -with the value of the expression, repeated as necessary. A `FILL' -statement covers memory locations after the point at which it occurs in -the section definition; by including more than one `FILL' statement, -you can have different fill patterns in different parts of an output -section. - - This example shows how to fill unspecified regions of memory with the -value `0x90': - FILL(0x90909090) - - The `FILL' command is similar to the `=FILLEXP' output section -attribute, but it only affects the part of the section following the -`FILL' command, rather than the entire section. If both are used, the -`FILL' command takes precedence. *Note Output Section Fill::, for -details on the fill expression. - - -File: ld.info, Node: Output Section Keywords, Next: Output Section Discarding, Prev: Output Section Data, Up: SECTIONS - -Output Section Keywords ------------------------ - - There are a couple of keywords which can appear as output section -commands. - -`CREATE_OBJECT_SYMBOLS' - The command tells the linker to create a symbol for each input - file. The name of each symbol will be the name of the - corresponding input file. The section of each symbol will be the - output section in which the `CREATE_OBJECT_SYMBOLS' command - appears. - - This is conventional for the a.out object file format. It is not - normally used for any other object file format. - -`CONSTRUCTORS' - When linking using the a.out object file format, the linker uses an - unusual set construct to support C++ global constructors and - destructors. When linking object file formats which do not support - arbitrary sections, such as ECOFF and XCOFF, the linker will - automatically recognize C++ global constructors and destructors by - name. For these object file formats, the `CONSTRUCTORS' command - tells the linker to place constructor information in the output - section where the `CONSTRUCTORS' command appears. The - `CONSTRUCTORS' command is ignored for other object file formats. - - The symbol `__CTOR_LIST__' marks the start of the global - constructors, and the symbol `__DTOR_LIST' marks the end. The - first word in the list is the number of entries, followed by the - address of each constructor or destructor, followed by a zero - word. The compiler must arrange to actually run the code. For - these object file formats GNU C++ normally calls constructors from - a subroutine `__main'; a call to `__main' is automatically - inserted into the startup code for `main'. GNU C++ normally runs - destructors either by using `atexit', or directly from the function - `exit'. - - For object file formats such as `COFF' or `ELF' which support - arbitrary section names, GNU C++ will normally arrange to put the - addresses of global constructors and destructors into the `.ctors' - and `.dtors' sections. Placing the following sequence into your - linker script will build the sort of table which the GNU C++ - runtime code expects to see. - - __CTOR_LIST__ = .; - LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) - *(.ctors) - LONG(0) - __CTOR_END__ = .; - __DTOR_LIST__ = .; - LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) - *(.dtors) - LONG(0) - __DTOR_END__ = .; - - If you are using the GNU C++ support for initialization priority, - which provides some control over the order in which global - constructors are run, you must sort the constructors at link time - to ensure that they are executed in the correct order. When using - the `CONSTRUCTORS' command, use `SORT(CONSTRUCTORS)' instead. - When using the `.ctors' and `.dtors' sections, use - `*(SORT(.ctors))' and `*(SORT(.dtors))' instead of just - `*(.ctors)' and `*(.dtors)'. - - Normally the compiler and linker will handle these issues - automatically, and you will not need to concern yourself with - them. However, you may need to consider this if you are using C++ - and writing your own linker scripts. - - -File: ld.info, Node: Output Section Discarding, Next: Output Section Attributes, Prev: Output Section Keywords, Up: SECTIONS - -Output Section Discarding -------------------------- - - The linker will not create output section which do not have any -contents. This is for convenience when referring to input sections that -may or may not be present in any of the input files. For example: - .foo { *(.foo) } - -will only create a `.foo' section in the output file if there is a -`.foo' section in at least one input file. - - If you use anything other than an input section description as an -output section command, such as a symbol assignment, then the output -section will always be created, even if there are no matching input -sections. - - The special output section name `/DISCARD/' may be used to discard -input sections. Any input sections which are assigned to an output -section named `/DISCARD/' are not included in the output file. - - -File: ld.info, Node: Output Section Attributes, Next: Overlay Description, Prev: Output Section Discarding, Up: SECTIONS - -Output Section Attributes -------------------------- - - We showed above that the full description of an output section looked -like this: - SECTION [ADDRESS] [(TYPE)] : [AT(LMA)] - { - OUTPUT-SECTION-COMMAND - OUTPUT-SECTION-COMMAND - ... - } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP] -We've already described SECTION, ADDRESS, and -OUTPUT-SECTION-COMMAND. In this section we will describe the remaining -section attributes. - -* Menu: - -* Output Section Type:: Output section type -* Output Section LMA:: Output section LMA -* Output Section Region:: Output section region -* Output Section Phdr:: Output section phdr -* Output Section Fill:: Output section fill - - -File: ld.info, Node: Output Section Type, Next: Output Section LMA, Up: Output Section Attributes - -Output Section Type -................... - - Each output section may have a type. The type is a keyword in -parentheses. The following types are defined: - -`NOLOAD' - The section should be marked as not loadable, so that it will not - be loaded into memory when the program is run. - -`DSECT' -`COPY' -`INFO' -`OVERLAY' - These type names are supported for backward compatibility, and are - rarely used. They all have the same effect: the section should be - marked as not allocatable, so that no memory is allocated for the - section when the program is run. - - The linker normally sets the attributes of an output section based on -the input sections which map into it. You can override this by using -the section type. For example, in the script sample below, the `ROM' -section is addressed at memory location `0' and does not need to be -loaded when the program is run. The contents of the `ROM' section will -appear in the linker output file as usual. - SECTIONS { - ROM 0 (NOLOAD) : { ... } - ... - } - - -File: ld.info, Node: Output Section LMA, Next: Output Section Region, Prev: Output Section Type, Up: Output Section Attributes - -Output Section LMA -.................. - - Every section has a virtual address (VMA) and a load address (LMA); -see *Note Basic Script Concepts::. The address expression which may -appear in an output section description sets the VMA (*note Output -Section Address::). - - The linker will normally set the LMA equal to the VMA. You can -change that by using the `AT' keyword. The expression LMA that follows -the `AT' keyword specifies the load address of the section. -Alternatively, with `AT>LMA_REGION' expression, you may specify a -memory region for the section's load address. *Note MEMORY::. - - This feature is designed to make it easy to build a ROM image. For -example, the following linker script creates three output sections: one -called `.text', which starts at `0x1000', one called `.mdata', which is -loaded at the end of the `.text' section even though its VMA is -`0x2000', and one called `.bss' to hold uninitialized data at address -`0x3000'. The symbol `_data' is defined with the value `0x2000', which -shows that the location counter holds the VMA value, not the LMA value. - - SECTIONS - { - .text 0x1000 : { *(.text) _etext = . ; } - .mdata 0x2000 : - AT ( ADDR (.text) + SIZEOF (.text) ) - { _data = . ; *(.data); _edata = . ; } - .bss 0x3000 : - { _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;} - } - - The run-time initialization code for use with a program generated -with this linker script would include something like the following, to -copy the initialized data from the ROM image to its runtime address. -Notice how this code takes advantage of the symbols defined by the -linker script. - - extern char _etext, _data, _edata, _bstart, _bend; - char *src = &_etext; - char *dst = &_data; - - /* ROM has data at end of text; copy it. */ - while (dst < &_edata) { - *dst++ = *src++; - } - - /* Zero bss */ - for (dst = &_bstart; dst< &_bend; dst++) - *dst = 0; - - -File: ld.info, Node: Output Section Region, Next: Output Section Phdr, Prev: Output Section LMA, Up: Output Section Attributes - -Output Section Region -..................... - - You can assign a section to a previously defined region of memory by -using `>REGION'. *Note MEMORY::. - - Here is a simple example: - MEMORY { rom : ORIGIN = 0x1000, LENGTH = 0x1000 } - SECTIONS { ROM : { *(.text) } >rom } - - -File: ld.info, Node: Output Section Phdr, Next: Output Section Fill, Prev: Output Section Region, Up: Output Section Attributes - -Output Section Phdr -................... - - You can assign a section to a previously defined program segment by -using `:PHDR'. *Note PHDRS::. If a section is assigned to one or more -segments, then all subsequent allocated sections will be assigned to -those segments as well, unless they use an explicitly `:PHDR' modifier. -You can use `:NONE' to tell the linker to not put the section in any -segment at all. - - Here is a simple example: - PHDRS { text PT_LOAD ; } - SECTIONS { .text : { *(.text) } :text } - - -File: ld.info, Node: Output Section Fill, Prev: Output Section Phdr, Up: Output Section Attributes - -Output Section Fill -................... - - You can set the fill pattern for an entire section by using -`=FILLEXP'. FILLEXP is an expression (*note Expressions::). Any -otherwise unspecified regions of memory within the output section (for -example, gaps left due to the required alignment of input sections) -will be filled with the value, repeated as necessary. If the fill -expression is a simple hex number, ie. a string of hex digit starting -with `0x' and without a trailing `k' or `M', then an arbitrarily long -sequence of hex digits can be used to specify the fill pattern; -Leading zeros become part of the pattern too. For all other cases, -including extra parentheses or a unary `+', the fill pattern is the -four least significant bytes of the value of the expression. In all -cases, the number is big-endian. - - You can also change the fill value with a `FILL' command in the -output section commands; (*note Output Section Data::). - - Here is a simple example: - SECTIONS { .text : { *(.text) } =0x90909090 } - diff --git a/gnu/dist/binutils/ld/ld.info-4 b/gnu/dist/binutils/ld/ld.info-4 deleted file mode 100644 index df9e83f698ef..000000000000 --- a/gnu/dist/binutils/ld/ld.info-4 +++ /dev/null @@ -1,1122 +0,0 @@ -This is ld.info, produced by makeinfo version 4.3 from ./ld.texinfo. - -START-INFO-DIR-ENTRY -* Ld: (ld). The GNU linker. -END-INFO-DIR-ENTRY - - This file documents the GNU linker LD version 2.14. - - Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, -2002, 2003 Free Software Foundation, Inc. - - -File: ld.info, Node: Overlay Description, Prev: Output Section Attributes, Up: SECTIONS - -Overlay Description -------------------- - - An overlay description provides an easy way to describe sections -which are to be loaded as part of a single memory image but are to be -run at the same memory address. At run time, some sort of overlay -manager will copy the overlaid sections in and out of the runtime -memory address as required, perhaps by simply manipulating addressing -bits. This approach can be useful, for example, when a certain region -of memory is faster than another. - - Overlays are described using the `OVERLAY' command. The `OVERLAY' -command is used within a `SECTIONS' command, like an output section -description. The full syntax of the `OVERLAY' command is as follows: - OVERLAY [START] : [NOCROSSREFS] [AT ( LDADDR )] - { - SECNAME1 - { - OUTPUT-SECTION-COMMAND - OUTPUT-SECTION-COMMAND - ... - } [:PHDR...] [=FILL] - SECNAME2 - { - OUTPUT-SECTION-COMMAND - OUTPUT-SECTION-COMMAND - ... - } [:PHDR...] [=FILL] - ... - } [>REGION] [:PHDR...] [=FILL] - - Everything is optional except `OVERLAY' (a keyword), and each -section must have a name (SECNAME1 and SECNAME2 above). The section -definitions within the `OVERLAY' construct are identical to those -within the general `SECTIONS' contruct (*note SECTIONS::), except that -no addresses and no memory regions may be defined for sections within -an `OVERLAY'. - - The sections are all defined with the same starting address. The -load addresses of the sections are arranged such that they are -consecutive in memory starting at the load address used for the -`OVERLAY' as a whole (as with normal section definitions, the load -address is optional, and defaults to the start address; the start -address is also optional, and defaults to the current value of the -location counter). - - If the `NOCROSSREFS' keyword is used, and there any references among -the sections, the linker will report an error. Since the sections all -run at the same address, it normally does not make sense for one -section to refer directly to another. *Note NOCROSSREFS: Miscellaneous -Commands. - - For each section within the `OVERLAY', the linker automatically -defines two symbols. The symbol `__load_start_SECNAME' is defined as -the starting load address of the section. The symbol -`__load_stop_SECNAME' is defined as the final load address of the -section. Any characters within SECNAME which are not legal within C -identifiers are removed. C (or assembler) code may use these symbols -to move the overlaid sections around as necessary. - - At the end of the overlay, the value of the location counter is set -to the start address of the overlay plus the size of the largest -section. - - Here is an example. Remember that this would appear inside a -`SECTIONS' construct. - OVERLAY 0x1000 : AT (0x4000) - { - .text0 { o1/*.o(.text) } - .text1 { o2/*.o(.text) } - } - -This will define both `.text0' and `.text1' to start at address 0x1000. -`.text0' will be loaded at address 0x4000, and `.text1' will be loaded -immediately after `.text0'. The following symbols will be defined: -`__load_start_text0', `__load_stop_text0', `__load_start_text1', -`__load_stop_text1'. - - C code to copy overlay `.text1' into the overlay area might look -like the following. - - extern char __load_start_text1, __load_stop_text1; - memcpy ((char *) 0x1000, &__load_start_text1, - &__load_stop_text1 - &__load_start_text1); - - Note that the `OVERLAY' command is just syntactic sugar, since -everything it does can be done using the more basic commands. The above -example could have been written identically as follows. - - .text0 0x1000 : AT (0x4000) { o1/*.o(.text) } - __load_start_text0 = LOADADDR (.text0); - __load_stop_text0 = LOADADDR (.text0) + SIZEOF (.text0); - .text1 0x1000 : AT (0x4000 + SIZEOF (.text0)) { o2/*.o(.text) } - __load_start_text1 = LOADADDR (.text1); - __load_stop_text1 = LOADADDR (.text1) + SIZEOF (.text1); - . = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1)); - - -File: ld.info, Node: MEMORY, Next: PHDRS, Prev: SECTIONS, Up: Scripts - -MEMORY Command -============== - - The linker's default configuration permits allocation of all -available memory. You can override this by using the `MEMORY' command. - - The `MEMORY' command describes the location and size of blocks of -memory in the target. You can use it to describe which memory regions -may be used by the linker, and which memory regions it must avoid. You -can then assign sections to particular memory regions. The linker will -set section addresses based on the memory regions, and will warn about -regions that become too full. The linker will not shuffle sections -around to fit into the available regions. - - A linker script may contain at most one use of the `MEMORY' command. -However, you can define as many blocks of memory within it as you -wish. The syntax is: - MEMORY - { - NAME [(ATTR)] : ORIGIN = ORIGIN, LENGTH = LEN - ... - } - - The NAME is a name used in the linker script to refer to the region. -The region name has no meaning outside of the linker script. Region -names are stored in a separate name space, and will not conflict with -symbol names, file names, or section names. Each memory region must -have a distinct name. - - The ATTR string is an optional list of attributes that specify -whether to use a particular memory region for an input section which is -not explicitly mapped in the linker script. As described in *Note -SECTIONS::, if you do not specify an output section for some input -section, the linker will create an output section with the same name as -the input section. If you define region attributes, the linker will use -them to select the memory region for the output section that it creates. - - The ATTR string must consist only of the following characters: -`R' - Read-only section - -`W' - Read/write section - -`X' - Executable section - -`A' - Allocatable section - -`I' - Initialized section - -`L' - Same as `I' - -`!' - Invert the sense of any of the preceding attributes - - If a unmapped section matches any of the listed attributes other than -`!', it will be placed in the memory region. The `!' attribute -reverses this test, so that an unmapped section will be placed in the -memory region only if it does not match any of the listed attributes. - - The ORIGIN is an expression for the start address of the memory -region. The expression must evaluate to a constant before memory -allocation is performed, which means that you may not use any section -relative symbols. The keyword `ORIGIN' may be abbreviated to `org' or -`o' (but not, for example, `ORG'). - - The LEN is an expression for the size in bytes of the memory region. -As with the ORIGIN expression, the expression must evaluate to a -constant before memory allocation is performed. The keyword `LENGTH' -may be abbreviated to `len' or `l'. - - In the following example, we specify that there are two memory -regions available for allocation: one starting at `0' for 256 kilobytes, -and the other starting at `0x40000000' for four megabytes. The linker -will place into the `rom' memory region every section which is not -explicitly mapped into a memory region, and is either read-only or -executable. The linker will place other sections which are not -explicitly mapped into a memory region into the `ram' memory region. - - MEMORY - { - rom (rx) : ORIGIN = 0, LENGTH = 256K - ram (!rx) : org = 0x40000000, l = 4M - } - - Once you define a memory region, you can direct the linker to place -specific output sections into that memory region by using the `>REGION' -output section attribute. For example, if you have a memory region -named `mem', you would use `>mem' in the output section definition. -*Note Output Section Region::. If no address was specified for the -output section, the linker will set the address to the next available -address within the memory region. If the combined output sections -directed to a memory region are too large for the region, the linker -will issue an error message. - - -File: ld.info, Node: PHDRS, Next: VERSION, Prev: MEMORY, Up: Scripts - -PHDRS Command -============= - - The ELF object file format uses "program headers", also knows as -"segments". The program headers describe how the program should be -loaded into memory. You can print them out by using the `objdump' -program with the `-p' option. - - When you run an ELF program on a native ELF system, the system loader -reads the program headers in order to figure out how to load the -program. This will only work if the program headers are set correctly. -This manual does not describe the details of how the system loader -interprets program headers; for more information, see the ELF ABI. - - The linker will create reasonable program headers by default. -However, in some cases, you may need to specify the program headers more -precisely. You may use the `PHDRS' command for this purpose. When the -linker sees the `PHDRS' command in the linker script, it will not -create any program headers other than the ones specified. - - The linker only pays attention to the `PHDRS' command when -generating an ELF output file. In other cases, the linker will simply -ignore `PHDRS'. - - This is the syntax of the `PHDRS' command. The words `PHDRS', -`FILEHDR', `AT', and `FLAGS' are keywords. - - PHDRS - { - NAME TYPE [ FILEHDR ] [ PHDRS ] [ AT ( ADDRESS ) ] - [ FLAGS ( FLAGS ) ] ; - } - - The NAME is used only for reference in the `SECTIONS' command of the -linker script. It is not put into the output file. Program header -names are stored in a separate name space, and will not conflict with -symbol names, file names, or section names. Each program header must -have a distinct name. - - Certain program header types describe segments of memory which the -system loader will load from the file. In the linker script, you -specify the contents of these segments by placing allocatable output -sections in the segments. You use the `:PHDR' output section attribute -to place a section in a particular segment. *Note Output Section -Phdr::. - - It is normal to put certain sections in more than one segment. This -merely implies that one segment of memory contains another. You may -repeat `:PHDR', using it once for each segment which should contain the -section. - - If you place a section in one or more segments using `:PHDR', then -the linker will place all subsequent allocatable sections which do not -specify `:PHDR' in the same segments. This is for convenience, since -generally a whole set of contiguous sections will be placed in a single -segment. You can use `:NONE' to override the default segment and tell -the linker to not put the section in any segment at all. - - You may use the `FILEHDR' and `PHDRS' keywords appear after the -program header type to further describe the contents of the segment. -The `FILEHDR' keyword means that the segment should include the ELF -file header. The `PHDRS' keyword means that the segment should include -the ELF program headers themselves. - - The TYPE may be one of the following. The numbers indicate the -value of the keyword. - -`PT_NULL' (0) - Indicates an unused program header. - -`PT_LOAD' (1) - Indicates that this program header describes a segment to be - loaded from the file. - -`PT_DYNAMIC' (2) - Indicates a segment where dynamic linking information can be found. - -`PT_INTERP' (3) - Indicates a segment where the name of the program interpreter may - be found. - -`PT_NOTE' (4) - Indicates a segment holding note information. - -`PT_SHLIB' (5) - A reserved program header type, defined but not specified by the - ELF ABI. - -`PT_PHDR' (6) - Indicates a segment where the program headers may be found. - -EXPRESSION - An expression giving the numeric type of the program header. This - may be used for types not defined above. - - You can specify that a segment should be loaded at a particular -address in memory by using an `AT' expression. This is identical to the -`AT' command used as an output section attribute (*note Output Section -LMA::). The `AT' command for a program header overrides the output -section attribute. - - The linker will normally set the segment flags based on the sections -which comprise the segment. You may use the `FLAGS' keyword to -explicitly specify the segment flags. The value of FLAGS must be an -integer. It is used to set the `p_flags' field of the program header. - - Here is an example of `PHDRS'. This shows a typical set of program -headers used on a native ELF system. - - PHDRS - { - headers PT_PHDR PHDRS ; - interp PT_INTERP ; - text PT_LOAD FILEHDR PHDRS ; - data PT_LOAD ; - dynamic PT_DYNAMIC ; - } - - SECTIONS - { - . = SIZEOF_HEADERS; - .interp : { *(.interp) } :text :interp - .text : { *(.text) } :text - .rodata : { *(.rodata) } /* defaults to :text */ - ... - . = . + 0x1000; /* move to a new page in memory */ - .data : { *(.data) } :data - .dynamic : { *(.dynamic) } :data :dynamic - ... - } - - -File: ld.info, Node: VERSION, Next: Expressions, Prev: PHDRS, Up: Scripts - -VERSION Command -=============== - - The linker supports symbol versions when using ELF. Symbol versions -are only useful when using shared libraries. The dynamic linker can use -symbol versions to select a specific version of a function when it runs -a program that may have been linked against an earlier version of the -shared library. - - You can include a version script directly in the main linker script, -or you can supply the version script as an implicit linker script. You -can also use the `--version-script' linker option. - - The syntax of the `VERSION' command is simply - VERSION { version-script-commands } - - The format of the version script commands is identical to that used -by Sun's linker in Solaris 2.5. The version script defines a tree of -version nodes. You specify the node names and interdependencies in the -version script. You can specify which symbols are bound to which -version nodes, and you can reduce a specified set of symbols to local -scope so that they are not globally visible outside of the shared -library. - - The easiest way to demonstrate the version script language is with a -few examples. - - VERS_1.1 { - global: - foo1; - local: - old*; - original*; - new*; - }; - - VERS_1.2 { - foo2; - } VERS_1.1; - - VERS_2.0 { - bar1; bar2; - } VERS_1.2; - - This example version script defines three version nodes. The first -version node defined is `VERS_1.1'; it has no other dependencies. The -script binds the symbol `foo1' to `VERS_1.1'. It reduces a number of -symbols to local scope so that they are not visible outside of the -shared library; this is done using wildcard patterns, so that any -symbol whose name begins with `old', `original', or `new' is matched. -The wildcard patterns available are the same as those used in the shell -when matching filenames (also known as "globbing"). - - Next, the version script defines node `VERS_1.2'. This node depends -upon `VERS_1.1'. The script binds the symbol `foo2' to the version -node `VERS_1.2'. - - Finally, the version script defines node `VERS_2.0'. This node -depends upon `VERS_1.2'. The scripts binds the symbols `bar1' and -`bar2' are bound to the version node `VERS_2.0'. - - When the linker finds a symbol defined in a library which is not -specifically bound to a version node, it will effectively bind it to an -unspecified base version of the library. You can bind all otherwise -unspecified symbols to a given version node by using `global: *;' -somewhere in the version script. - - The names of the version nodes have no specific meaning other than -what they might suggest to the person reading them. The `2.0' version -could just as well have appeared in between `1.1' and `1.2'. However, -this would be a confusing way to write a version script. - - Node name can be omited, provided it is the only version node in the -version script. Such version script doesn't assign any versions to -symbols, only selects which symbols will be globally visible out and -which won't. - - { global: foo; bar; local: *; }; - - When you link an application against a shared library that has -versioned symbols, the application itself knows which version of each -symbol it requires, and it also knows which version nodes it needs from -each shared library it is linked against. Thus at runtime, the dynamic -loader can make a quick check to make sure that the libraries you have -linked against do in fact supply all of the version nodes that the -application will need to resolve all of the dynamic symbols. In this -way it is possible for the dynamic linker to know with certainty that -all external symbols that it needs will be resolvable without having to -search for each symbol reference. - - The symbol versioning is in effect a much more sophisticated way of -doing minor version checking that SunOS does. The fundamental problem -that is being addressed here is that typically references to external -functions are bound on an as-needed basis, and are not all bound when -the application starts up. If a shared library is out of date, a -required interface may be missing; when the application tries to use -that interface, it may suddenly and unexpectedly fail. With symbol -versioning, the user will get a warning when they start their program if -the libraries being used with the application are too old. - - There are several GNU extensions to Sun's versioning approach. The -first of these is the ability to bind a symbol to a version node in the -source file where the symbol is defined instead of in the versioning -script. This was done mainly to reduce the burden on the library -maintainer. You can do this by putting something like: - __asm__(".symver original_foo,foo@VERS_1.1"); - -in the C source file. This renames the function `original_foo' to be -an alias for `foo' bound to the version node `VERS_1.1'. The `local:' -directive can be used to prevent the symbol `original_foo' from being -exported. A `.symver' directive takes precedence over a version script. - - The second GNU extension is to allow multiple versions of the same -function to appear in a given shared library. In this way you can make -an incompatible change to an interface without increasing the major -version number of the shared library, while still allowing applications -linked against the old interface to continue to function. - - To do this, you must use multiple `.symver' directives in the source -file. Here is an example: - - __asm__(".symver original_foo,foo@"); - __asm__(".symver old_foo,foo@VERS_1.1"); - __asm__(".symver old_foo1,foo@VERS_1.2"); - __asm__(".symver new_foo,foo@@VERS_2.0"); - - In this example, `foo@' represents the symbol `foo' bound to the -unspecified base version of the symbol. The source file that contains -this example would define 4 C functions: `original_foo', `old_foo', -`old_foo1', and `new_foo'. - - When you have multiple definitions of a given symbol, there needs to -be some way to specify a default version to which external references to -this symbol will be bound. You can do this with the `foo@@VERS_2.0' -type of `.symver' directive. You can only declare one version of a -symbol as the default in this manner; otherwise you would effectively -have multiple definitions of the same symbol. - - If you wish to bind a reference to a specific version of the symbol -within the shared library, you can use the aliases of convenience -(i.e., `old_foo'), or you can use the `.symver' directive to -specifically bind to an external version of the function in question. - - You can also specify the language in the version script: - - VERSION extern "lang" { version-script-commands } - - The supported `lang's are `C', `C++', and `Java'. The linker will -iterate over the list of symbols at the link time and demangle them -according to `lang' before matching them to the patterns specified in -`version-script-commands'. - - -File: ld.info, Node: Expressions, Next: Implicit Linker Scripts, Prev: VERSION, Up: Scripts - -Expressions in Linker Scripts -============================= - - The syntax for expressions in the linker script language is -identical to that of C expressions. All expressions are evaluated as -integers. All expressions are evaluated in the same size, which is 32 -bits if both the host and target are 32 bits, and is otherwise 64 bits. - - You can use and set symbol values in expressions. - - The linker defines several special purpose builtin functions for use -in expressions. - -* Menu: - -* Constants:: Constants -* Symbols:: Symbol Names -* Location Counter:: The Location Counter -* Operators:: Operators -* Evaluation:: Evaluation -* Expression Section:: The Section of an Expression -* Builtin Functions:: Builtin Functions - - -File: ld.info, Node: Constants, Next: Symbols, Up: Expressions - -Constants ---------- - - All constants are integers. - - As in C, the linker considers an integer beginning with `0' to be -octal, and an integer beginning with `0x' or `0X' to be hexadecimal. -The linker considers other integers to be decimal. - - In addition, you can use the suffixes `K' and `M' to scale a -constant by `1024' or `1024*1024' respectively. For example, the -following all refer to the same quantity: - _fourk_1 = 4K; - _fourk_2 = 4096; - _fourk_3 = 0x1000; - - -File: ld.info, Node: Symbols, Next: Location Counter, Prev: Constants, Up: Expressions - -Symbol Names ------------- - - Unless quoted, symbol names start with a letter, underscore, or -period and may include letters, digits, underscores, periods, and -hyphens. Unquoted symbol names must not conflict with any keywords. -You can specify a symbol which contains odd characters or has the same -name as a keyword by surrounding the symbol name in double quotes: - "SECTION" = 9; - "with a space" = "also with a space" + 10; - - Since symbols can contain many non-alphabetic characters, it is -safest to delimit symbols with spaces. For example, `A-B' is one -symbol, whereas `A - B' is an expression involving subtraction. - - -File: ld.info, Node: Location Counter, Next: Operators, Prev: Symbols, Up: Expressions - -The Location Counter --------------------- - - The special linker variable "dot" `.' always contains the current -output location counter. Since the `.' always refers to a location in -an output section, it may only appear in an expression within a -`SECTIONS' command. The `.' symbol may appear anywhere that an -ordinary symbol is allowed in an expression. - - Assigning a value to `.' will cause the location counter to be -moved. This may be used to create holes in the output section. The -location counter may never be moved backwards. - - SECTIONS - { - output : - { - file1(.text) - . = . + 1000; - file2(.text) - . += 1000; - file3(.text) - } = 0x12345678; - } - -In the previous example, the `.text' section from `file1' is located at -the beginning of the output section `output'. It is followed by a 1000 -byte gap. Then the `.text' section from `file2' appears, also with a -1000 byte gap following before the `.text' section from `file3'. The -notation `= 0x12345678' specifies what data to write in the gaps (*note -Output Section Fill::). - - Note: `.' actually refers to the byte offset from the start of the -current containing object. Normally this is the `SECTIONS' statement, -whose start address is 0, hence `.' can be used as an absolute address. -If `.' is used inside a section description however, it refers to the -byte offset from the start of that section, not an absolute address. -Thus in a script like this: - - SECTIONS - { - . = 0x100 - .text: { - *(.text) - . = 0x200 - } - . = 0x500 - .data: { - *(.data) - . += 0x600 - } - } - - The `.text' section will be assigned a starting address of 0x100 and -a size of exactly 0x200 bytes, even if there is not enough data in the -`.text' input sections to fill this area. (If there is too much data, -an error will be produced because this would be an attempt to move `.' -backwards). The `.data' section will start at 0x500 and it will have -an extra 0x600 bytes worth of space after the end of the values from -the `.data' input sections and before the end of the `.data' output -section itself. - - -File: ld.info, Node: Operators, Next: Evaluation, Prev: Location Counter, Up: Expressions - -Operators ---------- - - The linker recognizes the standard C set of arithmetic operators, -with the standard bindings and precedence levels: - precedence associativity Operators Notes - (highest) - 1 left ! - ~ (1) - 2 left * / % - 3 left + - - 4 left >> << - 5 left == != > < <= >= - 6 left & - 7 left | - 8 left && - 9 left || - 10 right ? : - 11 right &= += -= *= /= (2) - (lowest) - Notes: (1) Prefix operators (2) *Note Assignments::. - - -File: ld.info, Node: Evaluation, Next: Expression Section, Prev: Operators, Up: Expressions - -Evaluation ----------- - - The linker evaluates expressions lazily. It only computes the value -of an expression when absolutely necessary. - - The linker needs some information, such as the value of the start -address of the first section, and the origins and lengths of memory -regions, in order to do any linking at all. These values are computed -as soon as possible when the linker reads in the linker script. - - However, other values (such as symbol values) are not known or needed -until after storage allocation. Such values are evaluated later, when -other information (such as the sizes of output sections) is available -for use in the symbol assignment expression. - - The sizes of sections cannot be known until after allocation, so -assignments dependent upon these are not performed until after -allocation. - - Some expressions, such as those depending upon the location counter -`.', must be evaluated during section allocation. - - If the result of an expression is required, but the value is not -available, then an error results. For example, a script like the -following - SECTIONS - { - .text 9+this_isnt_constant : - { *(.text) } - } - -will cause the error message `non constant expression for initial -address'. - - -File: ld.info, Node: Expression Section, Next: Builtin Functions, Prev: Evaluation, Up: Expressions - -The Section of an Expression ----------------------------- - - When the linker evaluates an expression, the result is either -absolute or relative to some section. A relative expression is -expressed as a fixed offset from the base of a section. - - The position of the expression within the linker script determines -whether it is absolute or relative. An expression which appears within -an output section definition is relative to the base of the output -section. An expression which appears elsewhere will be absolute. - - A symbol set to a relative expression will be relocatable if you -request relocatable output using the `-r' option. That means that a -further link operation may change the value of the symbol. The symbol's -section will be the section of the relative expression. - - A symbol set to an absolute expression will retain the same value -through any further link operation. The symbol will be absolute, and -will not have any particular associated section. - - You can use the builtin function `ABSOLUTE' to force an expression -to be absolute when it would otherwise be relative. For example, to -create an absolute symbol set to the address of the end of the output -section `.data': - SECTIONS - { - .data : { *(.data) _edata = ABSOLUTE(.); } - } - -If `ABSOLUTE' were not used, `_edata' would be relative to the `.data' -section. - - -File: ld.info, Node: Builtin Functions, Prev: Expression Section, Up: Expressions - -Builtin Functions ------------------ - - The linker script language includes a number of builtin functions for -use in linker script expressions. - -`ABSOLUTE(EXP)' - Return the absolute (non-relocatable, as opposed to non-negative) - value of the expression EXP. Primarily useful to assign an - absolute value to a symbol within a section definition, where - symbol values are normally section relative. *Note Expression - Section::. - -`ADDR(SECTION)' - Return the absolute address (the VMA) of the named SECTION. Your - script must previously have defined the location of that section. - In the following example, `symbol_1' and `symbol_2' are assigned - identical values: - SECTIONS { ... - .output1 : - { - start_of_output_1 = ABSOLUTE(.); - ... - } - .output : - { - symbol_1 = ADDR(.output1); - symbol_2 = start_of_output_1; - } - ... } - -`ALIGN(EXP)' - Return the location counter (`.') aligned to the next EXP boundary. - `ALIGN' doesn't change the value of the location counter--it just - does arithmetic on it. Here is an example which aligns the output - `.data' section to the next `0x2000' byte boundary after the - preceding section and sets a variable within the section to the - next `0x8000' boundary after the input sections: - SECTIONS { ... - .data ALIGN(0x2000): { - *(.data) - variable = ALIGN(0x8000); - } - ... } - - The first use of `ALIGN' in this example specifies the location of - a section because it is used as the optional ADDRESS attribute of - a section definition (*note Output Section Address::). The second - use of `ALIGN' is used to defines the value of a symbol. - - The builtin function `NEXT' is closely related to `ALIGN'. - -`BLOCK(EXP)' - This is a synonym for `ALIGN', for compatibility with older linker - scripts. It is most often seen when setting the address of an - output section. - -`DATA_SEGMENT_ALIGN(MAXPAGESIZE, COMMONPAGESIZE)' - This is equivalent to either - (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - 1))) - or - (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - COMMONPAGESIZE))) - - depending on whether the latter uses fewer COMMONPAGESIZE sized - pages for the data segment (area between the result of this - expression and `DATA_SEGMENT_END') than the former or not. If the - latter form is used, it means COMMONPAGESIZE bytes of runtime - memory will be saved at the expense of up to COMMONPAGESIZE wasted - bytes in the on-disk file. - - This expression can only be used directly in `SECTIONS' commands, - not in any output section descriptions and only once in the linker - script. COMMONPAGESIZE should be less or equal to MAXPAGESIZE and - should be the system page size the object wants to be optimized - for (while still working on system page sizes up to MAXPAGESIZE). - - Example: - . = DATA_SEGMENT_ALIGN(0x10000, 0x2000); - -`DATA_SEGMENT_END(EXP)' - This defines the end of data segment for `DATA_SEGMENT_ALIGN' - evaluation purposes. - - . = DATA_SEGMENT_END(.); - -`DEFINED(SYMBOL)' - Return 1 if SYMBOL is in the linker global symbol table and is - defined, otherwise return 0. You can use this function to provide - default values for symbols. For example, the following script - fragment shows how to set a global symbol `begin' to the first - location in the `.text' section--but if a symbol called `begin' - already existed, its value is preserved: - - SECTIONS { ... - .text : { - begin = DEFINED(begin) ? begin : . ; - ... - } - ... - } - -`LOADADDR(SECTION)' - Return the absolute LMA of the named SECTION. This is normally - the same as `ADDR', but it may be different if the `AT' attribute - is used in the output section definition (*note Output Section - LMA::). - -`MAX(EXP1, EXP2)' - Returns the maximum of EXP1 and EXP2. - -`MIN(EXP1, EXP2)' - Returns the minimum of EXP1 and EXP2. - -`NEXT(EXP)' - Return the next unallocated address that is a multiple of EXP. - This function is closely related to `ALIGN(EXP)'; unless you use - the `MEMORY' command to define discontinuous memory for the output - file, the two functions are equivalent. - -`SIZEOF(SECTION)' - Return the size in bytes of the named SECTION, if that section has - been allocated. If the section has not been allocated when this is - evaluated, the linker will report an error. In the following - example, `symbol_1' and `symbol_2' are assigned identical values: - SECTIONS{ ... - .output { - .start = . ; - ... - .end = . ; - } - symbol_1 = .end - .start ; - symbol_2 = SIZEOF(.output); - ... } - -`SIZEOF_HEADERS' -`sizeof_headers' - Return the size in bytes of the output file's headers. This is - information which appears at the start of the output file. You - can use this number when setting the start address of the first - section, if you choose, to facilitate paging. - - When producing an ELF output file, if the linker script uses the - `SIZEOF_HEADERS' builtin function, the linker must compute the - number of program headers before it has determined all the section - addresses and sizes. If the linker later discovers that it needs - additional program headers, it will report an error `not enough - room for program headers'. To avoid this error, you must avoid - using the `SIZEOF_HEADERS' function, or you must rework your linker - script to avoid forcing the linker to use additional program - headers, or you must define the program headers yourself using the - `PHDRS' command (*note PHDRS::). - - -File: ld.info, Node: Implicit Linker Scripts, Prev: Expressions, Up: Scripts - -Implicit Linker Scripts -======================= - - If you specify a linker input file which the linker can not -recognize as an object file or an archive file, it will try to read the -file as a linker script. If the file can not be parsed as a linker -script, the linker will report an error. - - An implicit linker script will not replace the default linker script. - - Typically an implicit linker script would contain only symbol -assignments, or the `INPUT', `GROUP', or `VERSION' commands. - - Any input files read because of an implicit linker script will be -read at the position in the command line where the implicit linker -script was read. This can affect archive searching. - - -File: ld.info, Node: Machine Dependent, Next: BFD, Prev: Scripts, Up: Top - -Machine Dependent Features -************************** - - `ld' has additional features on some platforms; the following -sections describe them. Machines where `ld' has no additional -functionality are not listed. - -* Menu: - - -* H8/300:: `ld' and the H8/300 - -* i960:: `ld' and the Intel 960 family - -* ARM:: `ld' and the ARM family - -* HPPA ELF32:: `ld' and HPPA 32-bit ELF - -* MMIX:: `ld' and MMIX - -* MSP430:: `ld' and MSP430 - -* TI COFF:: `ld' and TI COFF - -* WIN32:: `ld' and WIN32 (cygwin/mingw) - -* Xtensa:: `ld' and Xtensa Processors - - -File: ld.info, Node: H8/300, Next: i960, Up: Machine Dependent - -`ld' and the H8/300 -=================== - - For the H8/300, `ld' can perform these global optimizations when you -specify the `--relax' command-line option. - -_relaxing address modes_ - `ld' finds all `jsr' and `jmp' instructions whose targets are - within eight bits, and turns them into eight-bit program-counter - relative `bsr' and `bra' instructions, respectively. - -_synthesizing instructions_ - `ld' finds all `mov.b' instructions which use the sixteen-bit - absolute address form, but refer to the top page of memory, and - changes them to use the eight-bit address form. (That is: the - linker turns `mov.b `@'AA:16' into `mov.b `@'AA:8' whenever the - address AA is in the top page of memory). - - -File: ld.info, Node: i960, Next: ARM, Prev: H8/300, Up: Machine Dependent - -`ld' and the Intel 960 Family -============================= - - You can use the `-AARCHITECTURE' command line option to specify one -of the two-letter names identifying members of the 960 family; the -option specifies the desired output target, and warns of any -incompatible instructions in the input files. It also modifies the -linker's search strategy for archive libraries, to support the use of -libraries specific to each particular architecture, by including in the -search loop names suffixed with the string identifying the architecture. - - For example, if your `ld' command line included `-ACA' as well as -`-ltry', the linker would look (in its built-in search paths, and in -any paths you specify with `-L') for a library with the names - - try - libtry.a - tryca - libtryca.a - -The first two possibilities would be considered in any event; the last -two are due to the use of `-ACA'. - - You can meaningfully use `-A' more than once on a command line, since -the 960 architecture family allows combination of target architectures; -each use will add another pair of name variants to search for when `-l' -specifies a library. - - `ld' supports the `--relax' option for the i960 family. If you -specify `--relax', `ld' finds all `balx' and `calx' instructions whose -targets are within 24 bits, and turns them into 24-bit program-counter -relative `bal' and `cal' instructions, respectively. `ld' also turns -`cal' instructions into `bal' instructions when it determines that the -target subroutine is a leaf routine (that is, the target subroutine does -not itself call any subroutines). - - -File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent - -`ld''s Support for Interworking Between ARM and Thumb Code -========================================================== - - For the ARM, `ld' will generate code stubs to allow functions calls -betweem ARM and Thumb code. These stubs only work with code that has -been compiled and assembled with the `-mthumb-interwork' command line -option. If it is necessary to link with old ARM object files or -libraries, which have not been compiled with the -mthumb-interwork -option then the `--support-old-code' command line switch should be -given to the linker. This will make it generate larger stub functions -which will work with non-interworking aware ARM code. Note, however, -the linker does not support generating stubs for function calls to -non-interworking aware Thumb code. - - The `--thumb-entry' switch is a duplicate of the generic `--entry' -switch, in that it sets the program's starting address. But it also -sets the bottom bit of the address, so that it can be branched to using -a BX instruction, and the program will start executing in Thumb mode -straight away. - - -File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent - -`ld' and HPPA 32-bit ELF Support -================================ - - When generating a shared library, `ld' will by default generate -import stubs suitable for use with a single sub-space application. The -`--multi-subspace' switch causes `ld' to generate export stubs, and -different (larger) import stubs suitable for use with multiple -sub-spaces. - - Long branch stubs and import/export stubs are placed by `ld' in stub -sections located between groups of input sections. `--stub-group-size' -specifies the maximum size of a group of input sections handled by one -stub section. Since branch offsets are signed, a stub section may -serve two groups of input sections, one group before the stub section, -and one group after it. However, when using conditional branches that -require stubs, it may be better (for branch prediction) that stub -sections only serve one group of input sections. A negative value for -`N' chooses this scheme, ensuring that branches to stubs always use a -negative offset. Two special values of `N' are recognized, `1' and -`-1'. These both instruct `ld' to automatically size input section -groups for the branch types detected, with the same behaviour regarding -stub placement as other positive or negative values of `N' respectively. - - Note that `--stub-group-size' does not split input sections. A -single input section larger than the group size specified will of course -create a larger group (of one section). If input sections are too -large, it may not be possible for a branch to reach its stub. - - -File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent - -`ld' and MMIX -============= - - For MMIX, there is a choice of generating `ELF' object files or -`mmo' object files when linking. The simulator `mmix' understands the -`mmo' format. The binutils `objcopy' utility can translate between the -two formats. - - There is one special section, the `.MMIX.reg_contents' section. -Contents in this section is assumed to correspond to that of global -registers, and symbols referring to it are translated to special -symbols, equal to registers. In a final link, the start address of the -`.MMIX.reg_contents' section corresponds to the first allocated global -register multiplied by 8. Register `$255' is not included in this -section; it is always set to the program entry, which is at the symbol -`Main' for `mmo' files. - - Symbols with the prefix `__.MMIX.start.', for example -`__.MMIX.start..text' and `__.MMIX.start..data' are special; there must -be only one each, even if they are local. The default linker script -uses these to set the default start address of a section. - - Initial and trailing multiples of zero-valued 32-bit words in a -section, are left out from an mmo file. - - -File: ld.info, Node: MSP430, Next: TI COFF, Prev: MMIX, Up: Machine Dependent - -`ld' and MSP430 -=============== - - For the MSP430 it is possible to select the MPU architecture. The -flag `-m [mpu type]' will select an appropriate linker script for -selected MPU type. (To get a list of known MPUs just pass `-m help' -option to the linker). - - The linker will recognize some extra sections which are MSP430 -specific: - -``.vectors'' - Defines a portion of ROM where interrupt vectors located. - -``.bootloader'' - Defines the bootloader portion of the ROM (if applicable). Any - code in this section will be uploaded to the MPU. - -``.infomem'' - Defines an information memory section (if applicable). Any code in - this section will be uploaded to the MPU. - -``.infomemnobits'' - This is the same as the `.infomem' section except that any code in - this section will not be uploaded to the MPU. - -``.noinit'' - Denotes a portion of RAM located above `.bss' section. - - The last two sections are used by gcc. - - -File: ld.info, Node: TI COFF, Next: WIN32, Prev: MSP430, Up: Machine Dependent - -`ld''s Support for Various TI COFF Versions -=========================================== - - The `--format' switch allows selection of one of the various TI COFF -versions. The latest of this writing is 2; versions 0 and 1 are also -supported. The TI COFF versions also vary in header byte-order format; -`ld' will read any version or byte order, but the output header format -depends on the default specified by the specific target. - diff --git a/gnu/dist/binutils/ld/ld.info-5 b/gnu/dist/binutils/ld/ld.info-5 deleted file mode 100644 index 8869b3668368..000000000000 --- a/gnu/dist/binutils/ld/ld.info-5 +++ /dev/null @@ -1,873 +0,0 @@ -This is ld.info, produced by makeinfo version 4.3 from ./ld.texinfo. - -START-INFO-DIR-ENTRY -* Ld: (ld). The GNU linker. -END-INFO-DIR-ENTRY - - This file documents the GNU linker LD version 2.14. - - Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, -2002, 2003 Free Software Foundation, Inc. - - -File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent - -`ld' and WIN32 (cygwin/mingw) -============================= - - This section describes some of the win32 specific `ld' issues. See -*Note Command Line Options: Options for detailed decription of the -command line options mentioned here. - -_import libraries_ - The standard Windows linker creates and uses so-called import - libraries, which contains information for linking to dll's. They - are regular static archives and are handled as any other static - archive. The cygwin and mingw ports of `ld' have specific support - for creating such libraries provided with the `--out-implib' - command line option. - -_exporting DLL symbols_ - The cygwin/mingw `ld' has several ways to export symbols for dll's. - - _using auto-export functionality_ - By default `ld' exports symbols with the auto-export - functionality, which is controlled by the following command - line options: - - * -export-all-symbols [This is the default] - - * -exclude-symbols - - * -exclude-libs - - If, however, `--export-all-symbols' is not given explicitly - on the command line, then the default auto-export behavior - will be _disabled_ if either of the following are true: - - * A DEF file is used. - - * Any symbol in any object file was marked with the - __declspec(dllexport) attribute. - - _using a DEF file_ - Another way of exporting symbols is using a DEF file. A DEF - file is an ASCII file containing definitions of symbols which - should be exported when a dll is created. Usually it is - named `.def' and is added as any other object file - to the linker's command line. The file's name must end in - `.def' or `.DEF'. - - gcc -o .def - - Using a DEF file turns off the normal auto-export behavior, - unless the `--export-all-symbols' option is also used. - - Here is an example of a DEF file for a shared library called - `xyz.dll': - - LIBRARY "xyz.dll" BASE=0x10000000 - - EXPORTS - foo - bar - _bar = bar - - This example defines a base address and three symbols. The - third symbol is an alias for the second. For the complete - format specification see ld/deffilep.y in the binutils - sources. - - While linking a shared dll, `ld' is able to create a DEF file - with the `--output-def ' command line option. - - _Using decorations_ - Another way of marking symbols for export is to modify the - source code itself, so that when building the DLL each symbol - to be exported is declared as: - - __declspec(dllexport) int a_variable - __declspec(dllexport) void a_function(int with_args) - - All such symbols will be exported from the DLL. If, however, - any of the object files in the DLL contain symbols decorated - in this way, then the normal auto-export behavior is - disabled, unless the `--export-all-symbols' option is also - used. - - Note that object files that wish to access these symbols must - _not_ decorate them with dllexport. Instead, they should use - dllimport, instead: - - __declspec(dllimport) int a_variable - __declspec(dllimport) void a_function(int with_args) - - This complicates the structure of library header files, - because when included by the library itself the header must - declare the variables and functions as dllexport, but when - included by client code the header must declare them as - dllimport. There are a number of idioms that are typically - used to do this; often client code can omit the __declspec() - declaration completely. See `--enable-auto-import' and - `automatic data imports' for more imformation. - -_automatic data imports_ - The standard Windows dll format supports data imports from dlls - only by adding special decorations (dllimport/dllexport), which - let the compiler produce specific assembler instructions to deal - with this issue. This increases the effort necessary to port - existing Un*x code to these platforms, especially for large c++ - libraries and applications. The auto-import feature, which was - initially provided by Paul Sokolovsky, allows one to omit the - decorations to archieve a behavior that conforms to that on - POSIX/Un*x platforms. This feature is enabled with the - `--enable-auto-import' command-line option, although it is enabled - by default on cygwin/mingw. The `--enable-auto-import' option - itself now serves mainly to suppress any warnings that are - ordinarily emitted when linked objects trigger the feature's use. - - auto-import of variables does not always work flawlessly without - additional assistance. Sometimes, you will see this message - - "variable '' can't be auto-imported. Please read the - documentation for ld's `--enable-auto-import' for details." - - The `--enable-auto-import' documentation explains why this error - occurs, and several methods that can be used to overcome this - difficulty. One of these methods is the _runtime pseudo-relocs_ - feature, described below. - - For complex variables imported from DLLs (such as structs or - classes), object files typically contain a base address for the - variable and an offset (_addend_) within the variable-to specify a - particular field or public member, for instance. Unfortunately, - the runtime loader used in win32 environments is incapable of - fixing these references at runtime without the additional - information supplied by dllimport/dllexport decorations. The - standard auto-import feature described above is unable to resolve - these references. - - The `--enable-runtime-pseudo-relocs' switch allows these - references to be resolved without error, while leaving the task of - adjusting the references themselves (with their non-zero addends) - to specialized code provided by the runtime environment. Recent - versions of the cygwin and mingw environments and compilers - provide this runtime support; older versions do not. However, the - support is only necessary on the developer's platform; the - compiled result will run without error on an older system. - - `--enable-runtime-pseudo-relocs' is not the default; it must be - explicitly enabled as needed. - -_direct linking to a dll_ - The cygwin/mingw ports of `ld' support the direct linking, - including data symbols, to a dll without the usage of any import - libraries. This is much faster and uses much less memory than - does the traditional import library method, expecially when - linking large libraries or applications. When `ld' creates an - import lib, each function or variable exported from the dll is - stored in its own bfd, even though a single bfd could contain many - exports. The overhead involved in storing, loading, and - processing so many bfd's is quite large, and explains the - tremendous time, memory, and storage needed to link against - particularly large or complex libraries when using import libs. - - Linking directly to a dll uses no extra command-line switches - other than `-L' and `-l', because `ld' already searches for a - number of names to match each library. All that is needed from - the developer's perspective is an understanding of this search, in - order to force ld to select the dll instead of an import library. - - For instance, when ld is called with the argument `-lxxx' it will - attempt to find, in the first directory of its search path, - - libxxx.dll.a - xxx.dll.a - libxxx.a - cygxxx.dll (*) - libxxx.dll - xxx.dll - - before moving on to the next directory in the search path. - - (*) Actually, this is not `cygxxx.dll' but in fact is - `xxx.dll', where `' is set by the `ld' option - `--dll-search-prefix='. In the case of cygwin, the - standard gcc spec file includes `--dll-search-prefix=cyg', so in - effect we actually search for `cygxxx.dll'. - - Other win32-based unix environments, such as mingw or pw32, may - use other `'es, although at present only cygwin makes use - of this feature. It was originally intended to help avoid name - conflicts among dll's built for the various win32/un*x - environments, so that (for example) two versions of a zlib dll - could coexist on the same machine. - - The generic cygwin/mingw path layout uses a `bin' directory for - applications and dll's and a `lib' directory for the import - libraries (using cygwin nomenclature): - - bin/ - cygxxx.dll - lib/ - libxxx.dll.a (in case of dll's) - libxxx.a (in case of static archive) - - Linking directly to a dll without using the import library can be - done two ways: - - 1. Use the dll directly by adding the `bin' path to the link line - gcc -Wl,-verbose -o a.exe -L../bin/ -lxxx - - However, as the dll's often have version numbers appended to their - names (`cygncurses-5.dll') this will often fail, unless one - specifies `-L../bin -lncurses-5' to include the version. Import - libs are generally not versioned, and do not have this difficulty. - - 2. Create a symbolic link from the dll to a file in the `lib' - directory according to the above mentioned search pattern. This - should be used to avoid unwanted changes in the tools needed for - making the app/dll. - - ln -s bin/cygxxx.dll lib/[cyg|lib|]xxx.dll[.a] - - Then you can link without any make environment changes. - - gcc -Wl,-verbose -o a.exe -L../lib/ -lxxx - - This technique also avoids the version number problems, because - the following is perfectly legal - - bin/ - cygxxx-5.dll - lib/ - libxxx.dll.a -> ../bin/cygxxx-5.dll - - Linking directly to a dll without using an import lib will work - even when auto-import features are exercised, and even when - `--enable-runtime-pseudo-relocs' is used. - - Given the improvements in speed and memory usage, one might - justifiably wonder why import libraries are used at all. There - are two reasons: - - 1. Until recently, the link-directly-to-dll functionality did _not_ - work with auto-imported data. - - 2. Sometimes it is necessary to include pure static objects within - the import library (which otherwise contains only bfd's for - indirection symbols that point to the exports of a dll). Again, - the import lib for the cygwin kernel makes use of this ability, - and it is not possible to do this without an import lib. - - So, import libs are not going away. But the ability to replace - true import libs with a simple symbolic link to (or a copy of) a - dll, in most cases, is a useful addition to the suite of tools - binutils makes available to the win32 developer. Given the - massive improvements in memory requirements during linking, storage - requirements, and linking speed, we expect that many developers - will soon begin to use this feature whenever possible. - -_symbol aliasing_ - - _adding additional names_ - Sometimes, it is useful to export symbols with additional - names. A symbol `foo' will be exported as `foo', but it can - also be exported as `_foo' by using special directives in the - DEF file when creating the dll. This will affect also the - optional created import library. Consider the following DEF - file: - - LIBRARY "xyz.dll" BASE=0x61000000 - - EXPORTS - foo - _foo = foo - - The line `_foo = foo' maps the symbol `foo' to `_foo'. - - Another method for creating a symbol alias is to create it in - the source code using the "weak" attribute: - - void foo () { /* Do something. */; } - void _foo () __attribute__ ((weak, alias ("foo"))); - - See the gcc manual for more information about attributes and - weak symbols. - - _renaming symbols_ - Sometimes it is useful to rename exports. For instance, the - cygwin kernel does this regularly. A symbol `_foo' can be - exported as `foo' but not as `_foo' by using special - directives in the DEF file. (This will also affect the import - library, if it is created). In the following example: - - LIBRARY "xyz.dll" BASE=0x61000000 - - EXPORTS - _foo = foo - - The line `_foo = foo' maps the exported symbol `foo' to - `_foo'. - - Note: using a DEF file disables the default auto-export behavior, - unless the `--export-all-symbols' command line option is used. - If, however, you are trying to rename symbols, then you should list - _all_ desired exports in the DEF file, including the symbols that - are not being renamed, and do _not_ use the `--export-all-symbols' - option. If you list only the renamed symbols in the DEF file, and - use `--export-all-symbols' to handle the other symbols, then the - both the new names _and_ the original names for the the renamed - symbols will be exported. In effect, you'd be aliasing those - symbols, not renaming them, which is probably not what you wanted. - - -File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent - -`ld' and Xtensa Processors -========================== - - The default `ld' behavior for Xtensa processors is to interpret -`SECTIONS' commands so that lists of explicitly named sections in a -specification with a wildcard file will be interleaved when necessary to -keep literal pools within the range of PC-relative load offsets. For -example, with the command: - - SECTIONS - { - .text : { - *(.literal .text) - } - } - -`ld' may interleave some of the `.literal' and `.text' sections from -different object files to ensure that the literal pools are within the -range of PC-relative load offsets. A valid interleaving might place -the `.literal' sections from an initial group of files followed by the -`.text' sections of that group of files. Then, the `.literal' sections -from the rest of the files and the `.text' sections from the rest of -the files would follow. The non-interleaved order can still be -specified as: - - SECTIONS - { - .text : { - *(.literal) *(.text) - } - } - - The Xtensa version of `ld' enables the `--relax' option by default -to attempt to reduce space in the output image by combining literals -with identical values. It also provides the `--no-relax' option to -disable this optimization. When enabled, the relaxation algorithm -ensures that a literal will only be merged with another literal when -the new merged literal location is within the offset range of all of -its uses. - - The relaxation mechanism will also attempt to optimize -assembler-generated "longcall" sequences of `L32R'/`CALLXN' when the -target is known to fit into a `CALLN' instruction encoding. The -current optimization converts the sequence into `NOP'/`CALLN' and -removes the literal referenced by the `L32R' instruction. - - -File: ld.info, Node: BFD, Next: Reporting Bugs, Prev: Machine Dependent, Up: Top - -BFD -*** - - The linker accesses object and archive files using the BFD libraries. -These libraries allow the linker to use the same routines to operate on -object files whatever the object file format. A different object file -format can be supported simply by creating a new BFD back end and adding -it to the library. To conserve runtime memory, however, the linker and -associated tools are usually configured to support only a subset of the -object file formats available. You can use `objdump -i' (*note -objdump: (binutils.info)objdump.) to list all the formats available for -your configuration. - - As with most implementations, BFD is a compromise between several -conflicting requirements. The major factor influencing BFD design was -efficiency: any time used converting between formats is time which -would not have been spent had BFD not been involved. This is partly -offset by abstraction payback; since BFD simplifies applications and -back ends, more time and care may be spent optimizing algorithms for a -greater speed. - - One minor artifact of the BFD solution which you should bear in mind -is the potential for information loss. There are two places where -useful information can be lost using the BFD mechanism: during -conversion and during output. *Note BFD information loss::. - -* Menu: - -* BFD outline:: How it works: an outline of BFD - - -File: ld.info, Node: BFD outline, Up: BFD - -How It Works: An Outline of BFD -=============================== - - When an object file is opened, BFD subroutines automatically -determine the format of the input object file. They then build a -descriptor in memory with pointers to routines that will be used to -access elements of the object file's data structures. - - As different information from the object files is required, BFD -reads from different sections of the file and processes them. For -example, a very common operation for the linker is processing symbol -tables. Each BFD back end provides a routine for converting between -the object file's representation of symbols and an internal canonical -format. When the linker asks for the symbol table of an object file, it -calls through a memory pointer to the routine from the relevant BFD -back end which reads and converts the table into a canonical form. The -linker then operates upon the canonical form. When the link is finished -and the linker writes the output file's symbol table, another BFD back -end routine is called to take the newly created symbol table and -convert it into the chosen output format. - -* Menu: - -* BFD information loss:: Information Loss -* Canonical format:: The BFD canonical object-file format - - -File: ld.info, Node: BFD information loss, Next: Canonical format, Up: BFD outline - -Information Loss ----------------- - - _Information can be lost during output._ The output formats -supported by BFD do not provide identical facilities, and information -which can be described in one form has nowhere to go in another format. -One example of this is alignment information in `b.out'. There is -nowhere in an `a.out' format file to store alignment information on the -contained data, so when a file is linked from `b.out' and an `a.out' -image is produced, alignment information will not propagate to the -output file. (The linker will still use the alignment information -internally, so the link is performed correctly). - - Another example is COFF section names. COFF files may contain an -unlimited number of sections, each one with a textual section name. If -the target of the link is a format which does not have many sections -(e.g., `a.out') or has sections without names (e.g., the Oasys format), -the link cannot be done simply. You can circumvent this problem by -describing the desired input-to-output section mapping with the linker -command language. - - _Information can be lost during canonicalization._ The BFD internal -canonical form of the external formats is not exhaustive; there are -structures in input formats for which there is no direct representation -internally. This means that the BFD back ends cannot maintain all -possible data richness through the transformation between external to -internal and back to external formats. - - This limitation is only a problem when an application reads one -format and writes another. Each BFD back end is responsible for -maintaining as much data as possible, and the internal BFD canonical -form has structures which are opaque to the BFD core, and exported only -to the back ends. When a file is read in one format, the canonical form -is generated for BFD and the application. At the same time, the back -end saves away any information which may otherwise be lost. If the data -is then written back in the same format, the back end routine will be -able to use the canonical form provided by the BFD core as well as the -information it prepared earlier. Since there is a great deal of -commonality between back ends, there is no information lost when -linking or copying big endian COFF to little endian COFF, or `a.out' to -`b.out'. When a mixture of formats is linked, the information is only -lost from the files whose format differs from the destination. - - -File: ld.info, Node: Canonical format, Prev: BFD information loss, Up: BFD outline - -The BFD canonical object-file format ------------------------------------- - - The greatest potential for loss of information occurs when there is -the least overlap between the information provided by the source -format, that stored by the canonical format, and that needed by the -destination format. A brief description of the canonical form may help -you understand which kinds of data you can count on preserving across -conversions. - -_files_ - Information stored on a per-file basis includes target machine - architecture, particular implementation format type, a demand - pageable bit, and a write protected bit. Information like Unix - magic numbers is not stored here--only the magic numbers' meaning, - so a `ZMAGIC' file would have both the demand pageable bit and the - write protected text bit set. The byte order of the target is - stored on a per-file basis, so that big- and little-endian object - files may be used with one another. - -_sections_ - Each section in the input file contains the name of the section, - the section's original address in the object file, size and - alignment information, various flags, and pointers into other BFD - data structures. - -_symbols_ - Each symbol contains a pointer to the information for the object - file which originally defined it, its name, its value, and various - flag bits. When a BFD back end reads in a symbol table, it - relocates all symbols to make them relative to the base of the - section where they were defined. Doing this ensures that each - symbol points to its containing section. Each symbol also has a - varying amount of hidden private data for the BFD back end. Since - the symbol points to the original file, the private data format - for that symbol is accessible. `ld' can operate on a collection - of symbols of wildly different formats without problems. - - Normal global and simple local symbols are maintained on output, - so an output file (no matter its format) will retain symbols - pointing to functions and to global, static, and common variables. - Some symbol information is not worth retaining; in `a.out', type - information is stored in the symbol table as long symbol names. - This information would be useless to most COFF debuggers; the - linker has command line switches to allow users to throw it away. - - There is one word of type information within the symbol, so if the - format supports symbol type information within symbols (for - example, COFF, IEEE, Oasys) and the type is simple enough to fit - within one word (nearly everything but aggregates), the - information will be preserved. - -_relocation level_ - Each canonical BFD relocation record contains a pointer to the - symbol to relocate to, the offset of the data to relocate, the - section the data is in, and a pointer to a relocation type - descriptor. Relocation is performed by passing messages through - the relocation type descriptor and the symbol pointer. Therefore, - relocations can be performed on output data using a relocation - method that is only available in one of the input formats. For - instance, Oasys provides a byte relocation format. A relocation - record requesting this relocation type would point indirectly to a - routine to perform this, so the relocation may be performed on a - byte being written to a 68k COFF file, even though 68k COFF has no - such relocation type. - -_line numbers_ - Object formats can contain, for debugging purposes, some form of - mapping between symbols, source line numbers, and addresses in the - output file. These addresses have to be relocated along with the - symbol information. Each symbol with an associated list of line - number records points to the first record of the list. The head - of a line number list consists of a pointer to the symbol, which - allows finding out the address of the function whose line number - is being described. The rest of the list is made up of pairs: - offsets into the section and line numbers. Any format which can - simply derive this information can pass it successfully between - formats (COFF, IEEE and Oasys). - - -File: ld.info, Node: Reporting Bugs, Next: MRI, Prev: BFD, Up: Top - -Reporting Bugs -************** - - Your bug reports play an essential role in making `ld' reliable. - - Reporting a bug may help you by bringing a solution to your problem, -or it may not. But in any case the principal function of a bug report -is to help the entire community by making the next version of `ld' work -better. Bug reports are your contribution to the maintenance of `ld'. - - In order for a bug report to serve its purpose, you must include the -information that enables us to fix the bug. - -* Menu: - -* Bug Criteria:: Have you found a bug? -* Bug Reporting:: How to report bugs - - -File: ld.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs - -Have You Found a Bug? -===================== - - If you are not sure whether you have found a bug, here are some -guidelines: - - * If the linker gets a fatal signal, for any input whatever, that is - a `ld' bug. Reliable linkers never crash. - - * If `ld' produces an error message for valid input, that is a bug. - - * If `ld' does not produce an error message for invalid input, that - may be a bug. In the general case, the linker can not verify that - object files are correct. - - * If you are an experienced user of linkers, your suggestions for - improvement of `ld' are welcome in any case. - - -File: ld.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs - -How to Report Bugs -================== - - A number of companies and individuals offer support for GNU -products. If you obtained `ld' from a support organization, we -recommend you contact that organization first. - - You can find contact information for many support companies and -individuals in the file `etc/SERVICE' in the GNU Emacs distribution. - - Otherwise, send bug reports for `ld' to `bug-binutils@gnu.org'. - - The fundamental principle of reporting bugs usefully is this: -*report all the facts*. If you are not sure whether to state a fact or -leave it out, state it! - - Often people omit facts because they think they know what causes the -problem and assume that some details do not matter. Thus, you might -assume that the name of a symbol you use in an example does not matter. -Well, probably it does not, but one cannot be sure. Perhaps the bug -is a stray memory reference which happens to fetch from the location -where that name is stored in memory; perhaps, if the name were -different, the contents of that location would fool the linker into -doing the right thing despite the bug. Play it safe and give a -specific, complete example. That is the easiest thing for you to do, -and the most helpful. - - Keep in mind that the purpose of a bug report is to enable us to fix -the bug if it is new to us. Therefore, always write your bug reports -on the assumption that the bug has not been reported previously. - - Sometimes people give a few sketchy facts and ask, "Does this ring a -bell?" This cannot help us fix a bug, so it is basically useless. We -respond by asking for enough details to enable us to investigate. You -might as well expedite matters by sending them to begin with. - - To enable us to fix the bug, you should include all these things: - - * The version of `ld'. `ld' announces it if you start it with the - `--version' argument. - - Without this, we will not know whether there is any point in - looking for the bug in the current version of `ld'. - - * Any patches you may have applied to the `ld' source, including any - patches made to the `BFD' library. - - * The type of machine you are using, and the operating system name - and version number. - - * What compiler (and its version) was used to compile `ld'--e.g. - "`gcc-2.7'". - - * The command arguments you gave the linker to link your example and - observe the bug. To guarantee you will not omit something - important, list them all. A copy of the Makefile (or the output - from make) is sufficient. - - If we were to try to guess the arguments, we would probably guess - wrong and then we might not encounter the bug. - - * A complete input file, or set of input files, that will reproduce - the bug. It is generally most helpful to send the actual object - files provided that they are reasonably small. Say no more than - 10K. For bigger files you can either make them available by FTP - or HTTP or else state that you are willing to send the object - file(s) to whomever requests them. (Note - your email will be - going to a mailing list, so we do not want to clog it up with - large attachments). But small attachments are best. - - If the source files were assembled using `gas' or compiled using - `gcc', then it may be OK to send the source files rather than the - object files. In this case, be sure to say exactly what version of - `gas' or `gcc' was used to produce the object files. Also say how - `gas' or `gcc' were configured. - - * A description of what behavior you observe that you believe is - incorrect. For example, "It gets a fatal signal." - - Of course, if the bug is that `ld' gets a fatal signal, then we - will certainly notice it. But if the bug is incorrect output, we - might not notice unless it is glaringly wrong. You might as well - not give us a chance to make a mistake. - - Even if the problem you experience is a fatal signal, you should - still say so explicitly. Suppose something strange is going on, - such as, your copy of `ld' is out of synch, or you have - encountered a bug in the C library on your system. (This has - happened!) Your copy might crash and ours would not. If you told - us to expect a crash, then when ours fails to crash, we would know - that the bug was not happening for us. If you had not told us to - expect a crash, then we would not be able to draw any conclusion - from our observations. - - * If you wish to suggest changes to the `ld' source, send us context - diffs, as generated by `diff' with the `-u', `-c', or `-p' option. - Always send diffs from the old file to the new file. If you even - discuss something in the `ld' source, refer to it by context, not - by line number. - - The line numbers in our development sources will not match those - in your sources. Your line numbers would convey no useful - information to us. - - Here are some things that are not necessary: - - * A description of the envelope of the bug. - - Often people who encounter a bug spend a lot of time investigating - which changes to the input file will make the bug go away and which - changes will not affect it. - - This is often time consuming and not very useful, because the way - we will find the bug is by running a single example under the - debugger with breakpoints, not by pure deduction from a series of - examples. We recommend that you save your time for something else. - - Of course, if you can find a simpler example to report _instead_ - of the original one, that is a convenience for us. Errors in the - output will be easier to spot, running under the debugger will take - less time, and so on. - - However, simplification is not vital; if you do not want to do - this, report the bug anyway and send us the entire test case you - used. - - * A patch for the bug. - - A patch for the bug does help us if it is a good one. But do not - omit the necessary information, such as the test case, on the - assumption that a patch is all we need. We might see problems - with your patch and decide to fix the problem another way, or we - might not understand it at all. - - Sometimes with a program as complicated as `ld' it is very hard to - construct an example that will make the program follow a certain - path through the code. If you do not send us the example, we will - not be able to construct one, so we will not be able to verify - that the bug is fixed. - - And if we cannot understand what bug you are trying to fix, or why - your patch should be an improvement, we will not install it. A - test case will help us to understand. - - * A guess about what the bug is or what it depends on. - - Such guesses are usually wrong. Even we cannot guess right about - such things without first using the debugger to find the facts. - - -File: ld.info, Node: MRI, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top - -MRI Compatible Script Files -*************************** - - To aid users making the transition to GNU `ld' from the MRI linker, -`ld' can use MRI compatible linker scripts as an alternative to the -more general-purpose linker scripting language described in *Note -Scripts::. MRI compatible linker scripts have a much simpler command -set than the scripting language otherwise used with `ld'. GNU `ld' -supports the most commonly used MRI linker commands; these commands are -described here. - - In general, MRI scripts aren't of much use with the `a.out' object -file format, since it only has three sections and MRI scripts lack some -features to make use of them. - - You can specify a file containing an MRI-compatible script using the -`-c' command-line option. - - Each command in an MRI-compatible script occupies its own line; each -command line starts with the keyword that identifies the command (though -blank lines are also allowed for punctuation). If a line of an -MRI-compatible script begins with an unrecognized keyword, `ld' issues -a warning message, but continues processing the script. - - Lines beginning with `*' are comments. - - You can write these commands using all upper-case letters, or all -lower case; for example, `chip' is the same as `CHIP'. The following -list shows only the upper-case form of each command. - -`ABSOLUTE SECNAME' -`ABSOLUTE SECNAME, SECNAME, ... SECNAME' - Normally, `ld' includes in the output file all sections from all - the input files. However, in an MRI-compatible script, you can - use the `ABSOLUTE' command to restrict the sections that will be - present in your output program. If the `ABSOLUTE' command is used - at all in a script, then only the sections named explicitly in - `ABSOLUTE' commands will appear in the linker output. You can - still use other input sections (whatever you select on the command - line, or using `LOAD') to resolve addresses in the output file. - -`ALIAS OUT-SECNAME, IN-SECNAME' - Use this command to place the data from input section IN-SECNAME - in a section called OUT-SECNAME in the linker output file. - - IN-SECNAME may be an integer. - -`ALIGN SECNAME = EXPRESSION' - Align the section called SECNAME to EXPRESSION. The EXPRESSION - should be a power of two. - -`BASE EXPRESSION' - Use the value of EXPRESSION as the lowest address (other than - absolute addresses) in the output file. - -`CHIP EXPRESSION' -`CHIP EXPRESSION, EXPRESSION' - This command does nothing; it is accepted only for compatibility. - -`END' - This command does nothing whatever; it's only accepted for - compatibility. - -`FORMAT OUTPUT-FORMAT' - Similar to the `OUTPUT_FORMAT' command in the more general linker - language, but restricted to one of these output formats: - - 1. S-records, if OUTPUT-FORMAT is `S' - - 2. IEEE, if OUTPUT-FORMAT is `IEEE' - - 3. COFF (the `coff-m68k' variant in BFD), if OUTPUT-FORMAT is - `COFF' - -`LIST ANYTHING...' - Print (to the standard output file) a link map, as produced by the - `ld' command-line option `-M'. - - The keyword `LIST' may be followed by anything on the same line, - with no change in its effect. - -`LOAD FILENAME' -`LOAD FILENAME, FILENAME, ... FILENAME' - Include one or more object file FILENAME in the link; this has the - same effect as specifying FILENAME directly on the `ld' command - line. - -`NAME OUTPUT-NAME' - OUTPUT-NAME is the name for the program produced by `ld'; the - MRI-compatible command `NAME' is equivalent to the command-line - option `-o' or the general script language command `OUTPUT'. - -`ORDER SECNAME, SECNAME, ... SECNAME' -`ORDER SECNAME SECNAME SECNAME' - Normally, `ld' orders the sections in its output file in the order - in which they first appear in the input files. In an - MRI-compatible script, you can override this ordering with the - `ORDER' command. The sections you list with `ORDER' will appear - first in your output file, in the order specified. - -`PUBLIC NAME=EXPRESSION' -`PUBLIC NAME,EXPRESSION' -`PUBLIC NAME EXPRESSION' - Supply a value (EXPRESSION) for external symbol NAME used in the - linker input files. - -`SECT SECNAME, EXPRESSION' -`SECT SECNAME=EXPRESSION' -`SECT SECNAME EXPRESSION' - You can use any of these three forms of the `SECT' command to - specify the start address (EXPRESSION) for section SECNAME. If - you have more than one `SECT' statement for the same SECNAME, only - the _first_ sets the start address. - diff --git a/gnu/dist/binutils/ld/ld.info-6 b/gnu/dist/binutils/ld/ld.info-6 deleted file mode 100644 index 5d45a2032d2e..000000000000 --- a/gnu/dist/binutils/ld/ld.info-6 +++ /dev/null @@ -1,912 +0,0 @@ -This is ld.info, produced by makeinfo version 4.3 from ./ld.texinfo. - -START-INFO-DIR-ENTRY -* Ld: (ld). The GNU linker. -END-INFO-DIR-ENTRY - - This file documents the GNU linker LD version 2.14. - - Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, -2002, 2003 Free Software Foundation, Inc. - - -File: ld.info, Node: GNU Free Documentation License, Next: Index, Prev: MRI, Up: Top - -GNU Free Documentation License -****************************** - - Version 1.1, March 2000 - Copyright (C) 2000, Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - 0. PREAMBLE - - The purpose of this License is to make a manual, textbook, or other - written document "free" in the sense of freedom: to assure everyone - the effective freedom to copy and redistribute it, with or without - modifying it, either commercially or noncommercially. Secondarily, - this License preserves for the author and publisher a way to get - credit for their work, while not being considered responsible for - modifications made by others. - - This License is a kind of "copyleft", which means that derivative - works of the document must themselves be free in the same sense. - It complements the GNU General Public License, which is a copyleft - license designed for free software. - - We have designed this License in order to use it for manuals for - free software, because free software needs free documentation: a - free program should come with manuals providing the same freedoms - that the software does. But this License is not limited to - software manuals; it can be used for any textual work, regardless - of subject matter or whether it is published as a printed book. - We recommend this License principally for works whose purpose is - instruction or reference. - - - 1. APPLICABILITY AND DEFINITIONS - - This License applies to any manual or other work that contains a - notice placed by the copyright holder saying it can be distributed - under the terms of this License. The "Document", below, refers to - any such manual or work. Any member of the public is a licensee, - and is addressed as "you." - - A "Modified Version" of the Document means any work containing the - Document or a portion of it, either copied verbatim, or with - modifications and/or translated into another language. - - A "Secondary Section" is a named appendix or a front-matter - section of the Document that deals exclusively with the - relationship of the publishers or authors of the Document to the - Document's overall subject (or to related matters) and contains - nothing that could fall directly within that overall subject. - (For example, if the Document is in part a textbook of - mathematics, a Secondary Section may not explain any mathematics.) - The relationship could be a matter of historical connection with - the subject or with related matters, or of legal, commercial, - philosophical, ethical or political position regarding them. - - The "Invariant Sections" are certain Secondary Sections whose - titles are designated, as being those of Invariant Sections, in - the notice that says that the Document is released under this - License. - - The "Cover Texts" are certain short passages of text that are - listed, as Front-Cover Texts or Back-Cover Texts, in the notice - that says that the Document is released under this License. - - A "Transparent" copy of the Document means a machine-readable copy, - represented in a format whose specification is available to the - general public, whose contents can be viewed and edited directly - and straightforwardly with generic text editors or (for images - composed of pixels) generic paint programs or (for drawings) some - widely available drawing editor, and that is suitable for input to - text formatters or for automatic translation to a variety of - formats suitable for input to text formatters. A copy made in an - otherwise Transparent file format whose markup has been designed - to thwart or discourage subsequent modification by readers is not - Transparent. A copy that is not "Transparent" is called "Opaque." - - Examples of suitable formats for Transparent copies include plain - ASCII without markup, Texinfo input format, LaTeX input format, - SGML or XML using a publicly available DTD, and - standard-conforming simple HTML designed for human modification. - Opaque formats include PostScript, PDF, proprietary formats that - can be read and edited only by proprietary word processors, SGML - or XML for which the DTD and/or processing tools are not generally - available, and the machine-generated HTML produced by some word - processors for output purposes only. - - The "Title Page" means, for a printed book, the title page itself, - plus such following pages as are needed to hold, legibly, the - material this License requires to appear in the title page. For - works in formats which do not have any title page as such, "Title - Page" means the text near the most prominent appearance of the - work's title, preceding the beginning of the body of the text. - - 2. VERBATIM COPYING - - You may copy and distribute the Document in any medium, either - commercially or noncommercially, provided that this License, the - copyright notices, and the license notice saying this License - applies to the Document are reproduced in all copies, and that you - add no other conditions whatsoever to those of this License. You - may not use technical measures to obstruct or control the reading - or further copying of the copies you make or distribute. However, - you may accept compensation in exchange for copies. If you - distribute a large enough number of copies you must also follow - the conditions in section 3. - - You may also lend copies, under the same conditions stated above, - and you may publicly display copies. - - 3. COPYING IN QUANTITY - - If you publish printed copies of the Document numbering more than - 100, and the Document's license notice requires Cover Texts, you - must enclose the copies in covers that carry, clearly and legibly, - all these Cover Texts: Front-Cover Texts on the front cover, and - Back-Cover Texts on the back cover. Both covers must also clearly - and legibly identify you as the publisher of these copies. The - front cover must present the full title with all words of the - title equally prominent and visible. You may add other material - on the covers in addition. Copying with changes limited to the - covers, as long as they preserve the title of the Document and - satisfy these conditions, can be treated as verbatim copying in - other respects. - - If the required texts for either cover are too voluminous to fit - legibly, you should put the first ones listed (as many as fit - reasonably) on the actual cover, and continue the rest onto - adjacent pages. - - If you publish or distribute Opaque copies of the Document - numbering more than 100, you must either include a - machine-readable Transparent copy along with each Opaque copy, or - state in or with each Opaque copy a publicly-accessible - computer-network location containing a complete Transparent copy - of the Document, free of added material, which the general - network-using public has access to download anonymously at no - charge using public-standard network protocols. If you use the - latter option, you must take reasonably prudent steps, when you - begin distribution of Opaque copies in quantity, to ensure that - this Transparent copy will remain thus accessible at the stated - location until at least one year after the last time you - distribute an Opaque copy (directly or through your agents or - retailers) of that edition to the public. - - It is requested, but not required, that you contact the authors of - the Document well before redistributing any large number of - copies, to give them a chance to provide you with an updated - version of the Document. - - 4. MODIFICATIONS - - You may copy and distribute a Modified Version of the Document - under the conditions of sections 2 and 3 above, provided that you - release the Modified Version under precisely this License, with - the Modified Version filling the role of the Document, thus - licensing distribution and modification of the Modified Version to - whoever possesses a copy of it. In addition, you must do these - things in the Modified Version: - - A. Use in the Title Page (and on the covers, if any) a title - distinct from that of the Document, and from those of previous - versions (which should, if there were any, be listed in the - History section of the Document). You may use the same title - as a previous version if the original publisher of that version - gives permission. - B. List on the Title Page, as authors, one or more persons or - entities responsible for authorship of the modifications in the - Modified Version, together with at least five of the principal - authors of the Document (all of its principal authors, if it - has less than five). - C. State on the Title page the name of the publisher of the - Modified Version, as the publisher. - D. Preserve all the copyright notices of the Document. - E. Add an appropriate copyright notice for your modifications - adjacent to the other copyright notices. - F. Include, immediately after the copyright notices, a license - notice giving the public permission to use the Modified Version - under the terms of this License, in the form shown in the - Addendum below. - G. Preserve in that license notice the full lists of Invariant - Sections and required Cover Texts given in the Document's - license notice. - H. Include an unaltered copy of this License. - I. Preserve the section entitled "History", and its title, and add - to it an item stating at least the title, year, new authors, and - publisher of the Modified Version as given on the Title Page. - If there is no section entitled "History" in the Document, - create one stating the title, year, authors, and publisher of - the Document as given on its Title Page, then add an item - describing the Modified Version as stated in the previous - sentence. - J. Preserve the network location, if any, given in the Document for - public access to a Transparent copy of the Document, and - likewise the network locations given in the Document for - previous versions it was based on. These may be placed in the - "History" section. You may omit a network location for a work - that was published at least four years before the Document - itself, or if the original publisher of the version it refers - to gives permission. - K. In any section entitled "Acknowledgements" or "Dedications", - preserve the section's title, and preserve in the section all the - substance and tone of each of the contributor acknowledgements - and/or dedications given therein. - L. Preserve all the Invariant Sections of the Document, - unaltered in their text and in their titles. Section numbers - or the equivalent are not considered part of the section titles. - M. Delete any section entitled "Endorsements." Such a section - may not be included in the Modified Version. - N. Do not retitle any existing section as "Endorsements" or to - conflict in title with any Invariant Section. - - If the Modified Version includes new front-matter sections or - appendices that qualify as Secondary Sections and contain no - material copied from the Document, you may at your option - designate some or all of these sections as invariant. To do this, - add their titles to the list of Invariant Sections in the Modified - Version's license notice. These titles must be distinct from any - other section titles. - - You may add a section entitled "Endorsements", provided it contains - nothing but endorsements of your Modified Version by various - parties-for example, statements of peer review or that the text has - been approved by an organization as the authoritative definition - of a standard. - - You may add a passage of up to five words as a Front-Cover Text, - and a passage of up to 25 words as a Back-Cover Text, to the end - of the list of Cover Texts in the Modified Version. Only one - passage of Front-Cover Text and one of Back-Cover Text may be - added by (or through arrangements made by) any one entity. If the - Document already includes a cover text for the same cover, - previously added by you or by arrangement made by the same entity - you are acting on behalf of, you may not add another; but you may - replace the old one, on explicit permission from the previous - publisher that added the old one. - - The author(s) and publisher(s) of the Document do not by this - License give permission to use their names for publicity for or to - assert or imply endorsement of any Modified Version. - - 5. COMBINING DOCUMENTS - - You may combine the Document with other documents released under - this License, under the terms defined in section 4 above for - modified versions, provided that you include in the combination - all of the Invariant Sections of all of the original documents, - unmodified, and list them all as Invariant Sections of your - combined work in its license notice. - - The combined work need only contain one copy of this License, and - multiple identical Invariant Sections may be replaced with a single - copy. If there are multiple Invariant Sections with the same name - but different contents, make the title of each such section unique - by adding at the end of it, in parentheses, the name of the - original author or publisher of that section if known, or else a - unique number. Make the same adjustment to the section titles in - the list of Invariant Sections in the license notice of the - combined work. - - In the combination, you must combine any sections entitled - "History" in the various original documents, forming one section - entitled "History"; likewise combine any sections entitled - "Acknowledgements", and any sections entitled "Dedications." You - must delete all sections entitled "Endorsements." - - 6. COLLECTIONS OF DOCUMENTS - - You may make a collection consisting of the Document and other - documents released under this License, and replace the individual - copies of this License in the various documents with a single copy - that is included in the collection, provided that you follow the - rules of this License for verbatim copying of each of the - documents in all other respects. - - You may extract a single document from such a collection, and - distribute it individually under this License, provided you insert - a copy of this License into the extracted document, and follow - this License in all other respects regarding verbatim copying of - that document. - - 7. AGGREGATION WITH INDEPENDENT WORKS - - A compilation of the Document or its derivatives with other - separate and independent documents or works, in or on a volume of - a storage or distribution medium, does not as a whole count as a - Modified Version of the Document, provided no compilation - copyright is claimed for the compilation. Such a compilation is - called an "aggregate", and this License does not apply to the - other self-contained works thus compiled with the Document, on - account of their being thus compiled, if they are not themselves - derivative works of the Document. - - If the Cover Text requirement of section 3 is applicable to these - copies of the Document, then if the Document is less than one - quarter of the entire aggregate, the Document's Cover Texts may be - placed on covers that surround only the Document within the - aggregate. Otherwise they must appear on covers around the whole - aggregate. - - 8. TRANSLATION - - Translation is considered a kind of modification, so you may - distribute translations of the Document under the terms of section - 4. Replacing Invariant Sections with translations requires special - permission from their copyright holders, but you may include - translations of some or all Invariant Sections in addition to the - original versions of these Invariant Sections. You may include a - translation of this License provided that you also include the - original English version of this License. In case of a - disagreement between the translation and the original English - version of this License, the original English version will prevail. - - 9. TERMINATION - - You may not copy, modify, sublicense, or distribute the Document - except as expressly provided for under this License. Any other - attempt to copy, modify, sublicense or distribute the Document is - void, and will automatically terminate your rights under this - License. However, parties who have received copies, or rights, - from you under this License will not have their licenses - terminated so long as such parties remain in full compliance. - - 10. FUTURE REVISIONS OF THIS LICENSE - - The Free Software Foundation may publish new, revised versions of - the GNU Free Documentation License from time to time. Such new - versions will be similar in spirit to the present version, but may - differ in detail to address new problems or concerns. See - http://www.gnu.org/copyleft/. - - Each version of the License is given a distinguishing version - number. If the Document specifies that a particular numbered - version of this License "or any later version" applies to it, you - have the option of following the terms and conditions either of - that specified version or of any later version that has been - published (not as a draft) by the Free Software Foundation. If - the Document does not specify a version number of this License, - you may choose any version ever published (not as a draft) by the - Free Software Foundation. - - -ADDENDUM: How to use this License for your documents -==================================================== - - To use this License in a document you have written, include a copy of -the License in the document and put the following copyright and license -notices just after the title page: - - Copyright (C) YEAR YOUR NAME. - Permission is granted to copy, distribute and/or modify this document - under the terms of the GNU Free Documentation License, Version 1.1 - or any later version published by the Free Software Foundation; - with the Invariant Sections being LIST THEIR TITLES, with the - Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. - A copy of the license is included in the section entitled "GNU - Free Documentation License." - - If you have no Invariant Sections, write "with no Invariant Sections" -instead of saying which ones are invariant. If you have no Front-Cover -Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being -LIST"; likewise for Back-Cover Texts. - - If your document contains nontrivial examples of program code, we -recommend releasing these examples in parallel under your choice of -free software license, such as the GNU General Public License, to -permit their use in free software. - - -File: ld.info, Node: Index, Prev: GNU Free Documentation License, Up: Top - -Index -***** - -* Menu: - -* ": Symbols. -* -(: Options. -* --accept-unknown-input-arch: Options. -* --add-stdcall-alias: Options. -* --allow-multiple-definition: Options. -* --allow-shlib-undefined: Options. -* --architecture=ARCH: Options. -* --auxiliary: Options. -* --base-file: Options. -* --check-sections: Options. -* --cref: Options. -* --defsym SYMBOL=EXP: Options. -* --demangle[=STYLE]: Options. -* --disable-auto-image-base: Options. -* --disable-auto-import: Options. -* --disable-new-dtags: Options. -* --disable-runtime-pseudo-reloc: Options. -* --disable-stdcall-fixup: Options. -* --discard-all: Options. -* --discard-locals: Options. -* --dll: Options. -* --dll-search-prefix: Options. -* --dynamic-linker FILE: Options. -* --embedded-relocs: Options. -* --emit-relocs: Options. -* --enable-auto-image-base: Options. -* --enable-auto-import: Options. -* --enable-extra-pe-debug: Options. -* --enable-new-dtags: Options. -* --enable-runtime-pseudo-reloc: Options. -* --enable-stdcall-fixup: Options. -* --entry=ENTRY: Options. -* --exclude-libs: Options. -* --exclude-symbols: Options. -* --export-all-symbols: Options. -* --export-dynamic: Options. -* --fatal-warnings: Options. -* --file-alignment: Options. -* --filter: Options. -* --force-exe-suffix: Options. -* --format=FORMAT: Options. -* --format=VERSION: TI COFF. -* --gc-sections: Options. -* --gpsize: Options. -* --heap: Options. -* --help: Options. -* --image-base: Options. -* --just-symbols=FILE: Options. -* --kill-at: Options. -* --library-path=DIR: Options. -* --library=ARCHIVE: Options. -* --major-image-version: Options. -* --major-os-version: Options. -* --major-subsystem-version: Options. -* --minor-image-version: Options. -* --minor-os-version: Options. -* --minor-subsystem-version: Options. -* --mri-script=MRI-CMDFILE: Options. -* --multi-subspace: HPPA ELF32. -* --nmagic: Options. -* --no-accept-unknown-input-arch: Options. -* --no-allow-shlib-undefined: Options. -* --no-check-sections: Options. -* --no-define-common: Options. -* --no-demangle: Options. -* --no-gc-sections: Options. -* --no-keep-memory: Options. -* --no-omagic: Options. -* --no-relax: Xtensa. -* --no-undefined: Options. -* --no-undefined-version: Options. -* --no-warn-mismatch: Options. -* --no-whole-archive: Options. -* --noinhibit-exec: Options. -* --oformat: Options. -* --omagic: Options. -* --out-implib: Options. -* --output-def: Options. -* --output=OUTPUT: Options. -* --print-map: Options. -* --relax: Options. -* --relax on i960: i960. -* --relax on Xtensa: Xtensa. -* --relocateable: Options. -* --script=SCRIPT: Options. -* --section-alignment: Options. -* --section-start SECTIONNAME=ORG: Options. -* --sort-common: Options. -* --split-by-file: Options. -* --split-by-reloc: Options. -* --stack: Options. -* --stats: Options. -* --strip-all: Options. -* --strip-debug: Options. -* --stub-group-size=N: HPPA ELF32. -* --subsystem: Options. -* --support-old-code: ARM. -* --target-help: Options. -* --thumb-entry=ENTRY: ARM. -* --trace: Options. -* --trace-symbol=SYMBOL: Options. -* --traditional-format: Options. -* --undefined=SYMBOL: Options. -* --unique[=SECTION]: Options. -* --verbose: Options. -* --version: Options. -* --version-script=VERSION-SCRIPTFILE: Options. -* --warn-common: Options. -* --warn-constructors: Options. -* --warn-multiple-gp: Options. -* --warn-once: Options. -* --warn-section-align: Options. -* --whole-archive: Options. -* --wrap: Options. -* -AARCH: Options. -* -aKEYWORD: Options. -* -assert KEYWORD: Options. -* -b FORMAT: Options. -* -Bdynamic: Options. -* -Bgroup: Options. -* -Bshareable: Options. -* -Bstatic: Options. -* -Bsymbolic: Options. -* -c MRI-CMDFILE: Options. -* -call_shared: Options. -* -d: Options. -* -dc: Options. -* -dn: Options. -* -dp: Options. -* -dy: Options. -* -E: Options. -* -e ENTRY: Options. -* -EB: Options. -* -EL: Options. -* -F: Options. -* -f: Options. -* -fini: Options. -* -G: Options. -* -g: Options. -* -hNAME: Options. -* -i: Options. -* -IFILE: Options. -* -init: Options. -* -lARCHIVE: Options. -* -LDIR: Options. -* -M: Options. -* -m EMULATION: Options. -* -Map: Options. -* -N: Options. -* -n: Options. -* -non_shared: Options. -* -nostdlib: Options. -* -O LEVEL: Options. -* -o OUTPUT: Options. -* -q: Options. -* -qmagic: Options. -* -Qy: Options. -* -r: Options. -* -R FILE: Options. -* -rpath: Options. -* -rpath-link: Options. -* -S: Options. -* -s: Options. -* -shared: Options. -* -soname=NAME: Options. -* -static: Options. -* -t: Options. -* -T SCRIPT: Options. -* -Tbss ORG: Options. -* -Tdata ORG: Options. -* -Ttext ORG: Options. -* -u SYMBOL: Options. -* -Ur: Options. -* -V: Options. -* -v: Options. -* -X: Options. -* -x: Options. -* -Y PATH: Options. -* -y SYMBOL: Options. -* -z defs: Options. -* -z KEYWORD: Options. -* -z muldefs: Options. -* .: Location Counter. -* /DISCARD/: Output Section Discarding. -* :PHDR: Output Section Phdr. -* =FILLEXP: Output Section Fill. -* >REGION: Output Section Region. -* [COMMON]: Input Section Common. -* ABSOLUTE (MRI): MRI. -* absolute and relocatable symbols: Expression Section. -* absolute expressions: Expression Section. -* ABSOLUTE(EXP): Builtin Functions. -* ADDR(SECTION): Builtin Functions. -* address, section: Output Section Address. -* ALIAS (MRI): MRI. -* ALIGN (MRI): MRI. -* align location counter: Builtin Functions. -* ALIGN(EXP): Builtin Functions. -* allocating memory: MEMORY. -* architecture: Miscellaneous Commands. -* architectures: Options. -* archive files, from cmd line: Options. -* archive search path in linker script: File Commands. -* arithmetic: Expressions. -* arithmetic operators: Operators. -* ARM interworking support: ARM. -* ASSERT: Miscellaneous Commands. -* assertion in linker script: Miscellaneous Commands. -* assignment in scripts: Assignments. -* AT(LMA): Output Section LMA. -* AT>LMA_REGION: Output Section LMA. -* automatic data imports: WIN32. -* back end: BFD. -* BASE (MRI): MRI. -* BFD canonical format: Canonical format. -* BFD requirements: BFD. -* big-endian objects: Options. -* binary input format: Options. -* BLOCK(EXP): Builtin Functions. -* bug criteria: Bug Criteria. -* bug reports: Bug Reporting. -* bugs in ld: Reporting Bugs. -* BYTE(EXPRESSION): Output Section Data. -* C++ constructors, arranging in link: Output Section Keywords. -* CHIP (MRI): MRI. -* COLLECT_NO_DEMANGLE: Environment. -* combining symbols, warnings on: Options. -* command files: Scripts. -* command line: Options. -* common allocation: Options. -* common allocation in linker script: Miscellaneous Commands. -* common symbol placement: Input Section Common. -* compatibility, MRI: Options. -* constants in linker scripts: Constants. -* CONSTRUCTORS: Output Section Keywords. -* constructors: Options. -* constructors, arranging in link: Output Section Keywords. -* crash of linker: Bug Criteria. -* CREATE_OBJECT_SYMBOLS: Output Section Keywords. -* creating a DEF file: WIN32. -* cross reference table: Options. -* cross references: Miscellaneous Commands. -* current output location: Location Counter. -* data: Output Section Data. -* DATA_SEGMENT_ALIGN(MAXPAGESIZE, COMMONPAGESIZE): Builtin Functions. -* DATA_SEGMENT_END(EXP): Builtin Functions. -* dbx: Options. -* DEF files, creating: Options. -* default emulation: Environment. -* default input format: Environment. -* DEFINED(SYMBOL): Builtin Functions. -* deleting local symbols: Options. -* demangling, default: Environment. -* demangling, from command line: Options. -* direct linking to a dll: WIN32. -* discarding sections: Output Section Discarding. -* discontinuous memory: MEMORY. -* DLLs, creating: Options. -* DLLs, linking to: Options. -* dot: Location Counter. -* dot inside sections: Location Counter. -* dynamic linker, from command line: Options. -* dynamic symbol table: Options. -* ELF program headers: PHDRS. -* emulation: Options. -* emulation, default: Environment. -* END (MRI): MRI. -* endianness: Options. -* entry point: Entry Point. -* entry point, from command line: Options. -* entry point, thumb: ARM. -* ENTRY(SYMBOL): Entry Point. -* error on valid input: Bug Criteria. -* example of linker script: Simple Example. -* exporting DLL symbols: WIN32. -* expression evaluation order: Evaluation. -* expression sections: Expression Section. -* expression, absolute: Builtin Functions. -* expressions: Expressions. -* EXTERN: Miscellaneous Commands. -* fatal signal: Bug Criteria. -* file name wildcard patterns: Input Section Wildcards. -* FILEHDR: PHDRS. -* filename symbols: Output Section Keywords. -* fill pattern, entire section: Output Section Fill. -* FILL(EXPRESSION): Output Section Data. -* finalization function: Options. -* first input file: File Commands. -* first instruction: Entry Point. -* FORCE_COMMON_ALLOCATION: Miscellaneous Commands. -* FORMAT (MRI): MRI. -* functions in expressions: Builtin Functions. -* garbage collection <1>: Input Section Keep. -* garbage collection: Options. -* generating optimized output: Options. -* GNU linker: Overview. -* GNUTARGET: Environment. -* GROUP(FILES): File Commands. -* grouping input files: File Commands. -* groups of archives: Options. -* H8/300 support: H8/300. -* header size: Builtin Functions. -* heap size: Options. -* help: Options. -* holes: Location Counter. -* holes, filling: Output Section Data. -* HPPA multiple sub-space stubs: HPPA ELF32. -* HPPA stub grouping: HPPA ELF32. -* i960 support: i960. -* image base: Options. -* implicit linker scripts: Implicit Linker Scripts. -* import libraries: WIN32. -* INCLUDE FILENAME: File Commands. -* including a linker script: File Commands. -* including an entire archive: Options. -* incremental link: Options. -* INHIBIT_COMMON_ALLOCATION: Miscellaneous Commands. -* initialization function: Options. -* initialized data in ROM: Output Section LMA. -* input file format in linker script: Format Commands. -* input filename symbols: Output Section Keywords. -* input files in linker scripts: File Commands. -* input files, displaying: Options. -* input format: Options. -* input object files in linker scripts: File Commands. -* input section basics: Input Section Basics. -* input section wildcards: Input Section Wildcards. -* input sections: Input Section. -* INPUT(FILES): File Commands. -* integer notation: Constants. -* integer suffixes: Constants. -* internal object-file format: Canonical format. -* invalid input: Bug Criteria. -* K and M integer suffixes: Constants. -* KEEP: Input Section Keep. -* l =: MEMORY. -* L, deleting symbols beginning: Options. -* lazy evaluation: Evaluation. -* ld bugs, reporting: Bug Reporting. -* LDEMULATION: Environment. -* len =: MEMORY. -* LENGTH =: MEMORY. -* library search path in linker script: File Commands. -* link map: Options. -* link-time runtime library search path: Options. -* linker crash: Bug Criteria. -* linker script concepts: Basic Script Concepts. -* linker script example: Simple Example. -* linker script file commands: File Commands. -* linker script format: Script Format. -* linker script input object files: File Commands. -* linker script simple commands: Simple Commands. -* linker scripts: Scripts. -* LIST (MRI): MRI. -* little-endian objects: Options. -* LOAD (MRI): MRI. -* load address: Output Section LMA. -* LOADADDR(SECTION): Builtin Functions. -* loading, preventing: Output Section Type. -* local symbols, deleting: Options. -* location counter: Location Counter. -* LONG(EXPRESSION): Output Section Data. -* M and K integer suffixes: Constants. -* machine architecture: Miscellaneous Commands. -* machine dependencies: Machine Dependent. -* mapping input sections to output sections: Input Section. -* MAX: Builtin Functions. -* MEMORY: MEMORY. -* memory region attributes: MEMORY. -* memory regions: MEMORY. -* memory regions and sections: Output Section Region. -* memory usage: Options. -* MIN: Builtin Functions. -* MIPS embedded PIC code: Options. -* MRI compatibility: MRI. -* MSP430 extra sections: MSP430. -* NAME (MRI): MRI. -* name, section: Output Section Name. -* names: Symbols. -* naming the output file: Options. -* NEXT(EXP): Builtin Functions. -* NMAGIC: Options. -* NOCROSSREFS(SECTIONS): Miscellaneous Commands. -* NOLOAD: Output Section Type. -* not enough room for program headers: Builtin Functions. -* o =: MEMORY. -* objdump -i: BFD. -* object file management: BFD. -* object files: Options. -* object formats available: BFD. -* object size: Options. -* OMAGIC: Options. -* opening object files: BFD outline. -* operators for arithmetic: Operators. -* options: Options. -* ORDER (MRI): MRI. -* org =: MEMORY. -* ORIGIN =: MEMORY. -* output file after errors: Options. -* output file format in linker script: Format Commands. -* output file name in linker scripot: File Commands. -* output section attributes: Output Section Attributes. -* output section data: Output Section Data. -* OUTPUT(FILENAME): File Commands. -* OUTPUT_ARCH(BFDARCH): Miscellaneous Commands. -* OUTPUT_FORMAT(BFDNAME): Format Commands. -* OVERLAY: Overlay Description. -* overlays: Overlay Description. -* partial link: Options. -* PHDRS: PHDRS. -* precedence in expressions: Operators. -* prevent unnecessary loading: Output Section Type. -* program headers: PHDRS. -* program headers and sections: Output Section Phdr. -* program headers, not enough room: Builtin Functions. -* program segments: PHDRS. -* PROVIDE: PROVIDE. -* PUBLIC (MRI): MRI. -* QUAD(EXPRESSION): Output Section Data. -* quoted symbol names: Symbols. -* read-only text: Options. -* read/write from cmd line: Options. -* regions of memory: MEMORY. -* relative expressions: Expression Section. -* relaxing addressing modes: Options. -* relaxing on H8/300: H8/300. -* relaxing on i960: i960. -* relaxing on Xtensa: Xtensa. -* relocatable and absolute symbols: Expression Section. -* relocatable output: Options. -* removing sections: Output Section Discarding. -* reporting bugs in ld: Reporting Bugs. -* requirements for BFD: BFD. -* retain relocations in final executable: Options. -* retaining specified symbols: Options. -* ROM initialized data: Output Section LMA. -* round up location counter: Builtin Functions. -* runtime library name: Options. -* runtime library search path: Options. -* runtime pseudo-relocation: WIN32. -* scaled integers: Constants. -* scommon section: Input Section Common. -* script files: Options. -* scripts: Scripts. -* search directory, from cmd line: Options. -* search path in linker script: File Commands. -* SEARCH_DIR(PATH): File Commands. -* SECT (MRI): MRI. -* section address: Output Section Address. -* section address in expression: Builtin Functions. -* section alignment, warnings on: Options. -* section data: Output Section Data. -* section fill pattern: Output Section Fill. -* section load address: Output Section LMA. -* section load address in expression: Builtin Functions. -* section name: Output Section Name. -* section name wildcard patterns: Input Section Wildcards. -* section size: Builtin Functions. -* section, assigning to memory region: Output Section Region. -* section, assigning to program header: Output Section Phdr. -* SECTIONS: SECTIONS. -* sections, discarding: Output Section Discarding. -* segment origins, cmd line: Options. -* segments, ELF: PHDRS. -* shared libraries: Options. -* SHORT(EXPRESSION): Output Section Data. -* SIZEOF(SECTION): Builtin Functions. -* SIZEOF_HEADERS: Builtin Functions. -* small common symbols: Input Section Common. -* SORT: Input Section Wildcards. -* SQUAD(EXPRESSION): Output Section Data. -* stack size: Options. -* standard Unix system: Options. -* start of execution: Entry Point. -* STARTUP(FILENAME): File Commands. -* strip all symbols: Options. -* strip debugger symbols: Options. -* stripping all but some symbols: Options. -* suffixes for integers: Constants. -* symbol defaults: Builtin Functions. -* symbol definition, scripts: Assignments. -* symbol names: Symbols. -* symbol tracing: Options. -* symbol versions: VERSION. -* symbol-only input: Options. -* symbols, from command line: Options. -* symbols, relocatable and absolute: Expression Section. -* symbols, retaining selectively: Options. -* synthesizing linker: Options. -* synthesizing on H8/300: H8/300. -* TARGET(BFDNAME): Format Commands. -* thumb entry point: ARM. -* TI COFF versions: TI COFF. -* traditional format: Options. -* unallocated address, next: Builtin Functions. -* undefined symbol: Options. -* undefined symbol in linker script: Miscellaneous Commands. -* undefined symbols, warnings on: Options. -* uninitialized data placement: Input Section Common. -* unspecified memory: Output Section Data. -* usage: Options. -* using a DEF file: WIN32. -* using auto-export functionality: WIN32. -* Using decorations: WIN32. -* variables, defining: Assignments. -* verbose: Options. -* version: Options. -* version script: VERSION. -* version script, symbol versions: Options. -* VERSION {script text}: VERSION. -* versions of symbols: VERSION. -* warnings, on combining symbols: Options. -* warnings, on section alignment: Options. -* warnings, on undefined symbols: Options. -* what is this?: Overview. -* wildcard file name patterns: Input Section Wildcards. -* Xtensa processors: Xtensa. - - diff --git a/gnu/dist/binutils/ld/ldemul.h b/gnu/dist/binutils/ld/ldemul.h index da5febfade6c..22ce4075aaef 100644 --- a/gnu/dist/binutils/ld/ldemul.h +++ b/gnu/dist/binutils/ld/ldemul.h @@ -1,5 +1,5 @@ /* ld-emul.h - Linker emulation header file - Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002 + Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -20,104 +20,103 @@ #include "getopt.h" extern void ldemul_hll - PARAMS ((char *)); + (char *); extern void ldemul_syslib - PARAMS ((char *)); + (char *); extern void ldemul_after_parse - PARAMS ((void)); + (void); extern void ldemul_before_parse - PARAMS ((void)); + (void); extern void ldemul_after_open - PARAMS ((void)); + (void); extern void ldemul_after_allocation - PARAMS ((void)); + (void); extern void ldemul_before_allocation - PARAMS ((void)); + (void); extern void ldemul_set_output_arch - PARAMS ((void)); + (void); extern char *ldemul_choose_target - PARAMS ((int, char**)); + (int, char**); extern void ldemul_choose_mode - PARAMS ((char *)); + (char *); extern void ldemul_list_emulations - PARAMS ((FILE *)); + (FILE *); extern void ldemul_list_emulation_options - PARAMS ((FILE *)); + (FILE *); extern char *ldemul_get_script - PARAMS ((int *isfile)); + (int *isfile); extern void ldemul_finish - PARAMS ((void)); + (void); extern void ldemul_set_symbols - PARAMS ((void)); + (void); extern void ldemul_create_output_section_statements - PARAMS ((void)); + (void); extern bfd_boolean ldemul_place_orphan - PARAMS ((struct lang_input_statement_struct *, asection *)); + (struct lang_input_statement_struct *, asection *); extern bfd_boolean ldemul_parse_args - PARAMS ((int, char **)); + (int, char **); extern void ldemul_add_options - PARAMS ((int, char **, int, struct option **, int, struct option **)); + (int, char **, int, struct option **, int, struct option **); extern bfd_boolean ldemul_handle_option - PARAMS ((int)); + (int); extern bfd_boolean ldemul_unrecognized_file - PARAMS ((struct lang_input_statement_struct *)); + (struct lang_input_statement_struct *); extern bfd_boolean ldemul_recognized_file - PARAMS ((struct lang_input_statement_struct *)); + (struct lang_input_statement_struct *); extern bfd_boolean ldemul_open_dynamic_archive - PARAMS ((const char *, struct search_dirs *, - struct lang_input_statement_struct *)); + (const char *, struct search_dirs *, struct lang_input_statement_struct *); extern char *ldemul_default_target - PARAMS ((int, char**)); + (int, char**); extern void after_parse_default - PARAMS ((void)); + (void); extern void after_open_default - PARAMS ((void)); + (void); extern void after_allocation_default - PARAMS ((void)); + (void); extern void before_allocation_default - PARAMS ((void)); + (void); extern void set_output_arch_default - PARAMS ((void)); + (void); extern void syslib_default - PARAMS ((char*)); + (char*); extern void hll_default - PARAMS ((char*)); + (char*); extern int ldemul_find_potential_libraries - PARAMS ((char *, struct lang_input_statement_struct *)); + (char *, struct lang_input_statement_struct *); extern struct bfd_elf_version_expr *ldemul_new_vers_pattern - PARAMS ((struct bfd_elf_version_expr *)); + (struct bfd_elf_version_expr *); typedef struct ld_emulation_xfer_struct { /* Run before parsing the command line and script file. Set the architecture, maybe other things. */ - void (*before_parse) PARAMS ((void)); + void (*before_parse) (void); /* Handle the SYSLIB (low level library) script command. */ - void (*syslib) PARAMS ((char *)); + void (*syslib) (char *); /* Handle the HLL (high level library) script command. */ - void (*hll) PARAMS ((char *)); + void (*hll) (char *); /* Run after parsing the command line and script file. */ - void (*after_parse) PARAMS ((void)); + void (*after_parse) (void); /* Run after opening all input files, and loading the symbols. */ - void (*after_open) PARAMS ((void)); + void (*after_open) (void); /* Run after allocating output sections. */ - void (*after_allocation) PARAMS ( (void)); + void (*after_allocation) (void); /* Set the output architecture and machine if possible. */ - void (*set_output_arch) PARAMS ((void)); + void (*set_output_arch) (void); /* Decide which target name to use. */ - char * (*choose_target) PARAMS ((int, char**)); + char * (*choose_target) (int, char**); /* Run before allocating output sections. */ - void (*before_allocation) PARAMS ((void)); + void (*before_allocation) (void); /* Return the appropriate linker script. */ - char * (*get_script) PARAMS ((int *isfile)); + char * (*get_script) (int *isfile); /* The name of this emulation. */ char *emulation_name; @@ -126,65 +125,65 @@ typedef struct ld_emulation_xfer_struct { char *target_name; /* Run after assigning values from the script. */ - void (*finish) PARAMS ((void)); + void (*finish) (void); /* Create any output sections needed by the target. */ - void (*create_output_section_statements) PARAMS ((void)); + void (*create_output_section_statements) (void); /* Try to open a dynamic library. ARCH is an architecture name, and is normally the empty string. ENTRY is the lang_input_statement that should be opened. */ bfd_boolean (*open_dynamic_archive) - PARAMS ((const char *arch, struct search_dirs *, - struct lang_input_statement_struct *entry)); + (const char *arch, struct search_dirs *, + struct lang_input_statement_struct *entry); /* Place an orphan section. Return TRUE if it was placed, FALSE if the default action should be taken. This field may be NULL, in which case the default action will always be taken. */ bfd_boolean (*place_orphan) - PARAMS ((struct lang_input_statement_struct *, asection *)); + (struct lang_input_statement_struct *, asection *); /* Run after assigning parsing with the args, but before reading the script. Used to initialize symbols used in the script. */ - void (*set_symbols) PARAMS ((void)); + void (*set_symbols) (void); /* Parse args which the base linker doesn't understand. Return TRUE if the arg needs no further processing. */ - bfd_boolean (*parse_args) PARAMS ((int, char **)); + bfd_boolean (*parse_args) (int, char **); /* Hook to add options to parameters passed by the base linker to getopt_long and getopt_long_only calls. */ void (*add_options) - PARAMS ((int, char **, int, struct option **, int, struct option **)); + (int, char **, int, struct option **, int, struct option **); /* Companion to the above to handle an option. Returns TRUE if it is one of our options. */ - bfd_boolean (*handle_option) PARAMS ((int)); + bfd_boolean (*handle_option) (int); /* Run to handle files which are not recognized as object files or archives. Return TRUE if the file was handled. */ bfd_boolean (*unrecognized_file) - PARAMS ((struct lang_input_statement_struct *)); + (struct lang_input_statement_struct *); /* Run to list the command line options which parse_args handles. */ - void (* list_options) PARAMS ((FILE *)); + void (* list_options) (FILE *); /* Run to specially handle files which *are* recognized as object files or archives. Return TRUE if the file was handled. */ bfd_boolean (*recognized_file) - PARAMS ((struct lang_input_statement_struct *)); + (struct lang_input_statement_struct *); /* Called when looking for libraries in a directory specified via a linker command line option or linker script option. Files that match the pattern "lib*.a" have already been scanned. (For VMS files matching ":lib*.a" have also been scanned). */ int (* find_potential_libraries) - PARAMS ((char *, struct lang_input_statement_struct *)); + (char *, struct lang_input_statement_struct *); /* Called when adding a new version pattern. PowerPC64-ELF uses this hook to add a pattern matching ".foo" for every "foo". */ struct bfd_elf_version_expr * (*new_vers_pattern) - PARAMS ((struct bfd_elf_version_expr *)); + (struct bfd_elf_version_expr *); } ld_emulation_xfer_type; diff --git a/gnu/dist/binutils/ld/ldlex.c b/gnu/dist/binutils/ld/ldlex.c index ede0776d91b6..1b5350b4c6c6 100644 --- a/gnu/dist/binutils/ld/ldlex.c +++ b/gnu/dist/binutils/ld/ldlex.c @@ -1,91 +1,34 @@ - -#line 3 "lex.yy.c" - -#define YY_INT_ALIGNED short int - /* A lexical scanner generated by flex */ +/* Scanner skeleton version: + * $Header: /cvsroot/src/gnu/dist/binutils/ld/Attic/ldlex.c,v 1.3 2004/12/08 13:38:11 mrg Exp $ + */ + #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 31 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ #include -#include #include -#include -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* XXX NetBSD 1.6 has . */ -#ifdef __NetBSD__ -#include +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif #endif -/* C99 systems have . Non-C99 systems may or may not. */ - -#if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \ - || __NetBSD_Version__ > 106000000 -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ #ifdef __cplusplus +#include +#ifndef _WIN32 +#include +#endif + +/* Use prototypes in function declarations. */ +#define YY_USE_PROTOS + /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST @@ -93,17 +36,35 @@ typedef unsigned int flex_uint32_t; #if __STDC__ +#define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ +#ifdef __TURBOC__ + #pragma warn -rch + #pragma warn -use +#include +#include +#define YY_USE_CONST +#define YY_USE_PROTOS +#endif + #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif + + /* Returned upon end-of-file. */ #define YY_NULL 0 @@ -118,71 +79,71 @@ typedef unsigned int flex_uint32_t; * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ -#define BEGIN (yy_start) = 1 + 2 * +#define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ -#define YY_START (((yy_start) - 1) / 2) +#define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin ) +#define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ -#ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 -#endif -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif extern int yyleng; - extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - #define YY_LESS_LINENO(n) - -/* Return all but the first "n" matched characters back to the input stream. */ +/* The funky do-while in the following #define is used to turn the definition + * int a single C statement (which needs a semi-colon terminator). This + * avoids problems with code like: + * + * if ( condition_holds ) + * yyless( 5 ); + * else + * do_something_else(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the yyless() call. + */ + +/* Return all but the first 'n' matched characters back to the input stream. */ + #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = (yy_hold_char); \ + *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ - (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) -#define unput(c) yyunput( c, (yytext_ptr) ) +#define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T typedef unsigned int yy_size_t; -#endif -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE + struct yy_buffer_state { FILE *yy_input_file; @@ -219,16 +180,12 @@ struct yy_buffer_state */ int yy_at_bol; - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; - #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process @@ -242,33 +199,23 @@ struct yy_buffer_state * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ -/* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ +static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". - * - * Returns the top of the stack, or NULL. */ -#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ - ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ - : NULL) +#define YY_CURRENT_BUFFER yy_current_buffer -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; + static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + int yyleng; /* Points to current character in buffer. */ @@ -281,222 +228,198 @@ static int yy_start = 0; /* start state number */ */ static int yy_did_buffer_switch_on_eof; -void yyrestart (FILE *input_file ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); -void yy_delete_buffer (YY_BUFFER_STATE b ); -void yy_flush_buffer (YY_BUFFER_STATE b ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); -void yypop_buffer_state (void ); +void yyrestart YY_PROTO(( FILE *input_file )); -static void yyensure_buffer_stack (void ); -static void yy_load_buffer_state (void ); -static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); - -void *yyalloc (yy_size_t ); -void *yyrealloc (void *,yy_size_t ); -void yyfree (void * ); +static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_at_bol = at_bol; \ } -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) typedef unsigned char YY_CHAR; - FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; - typedef int yy_state_type; - -extern int yylineno; - -int yylineno = 1; - extern char *yytext; #define yytext_ptr yytext -static yy_state_type yy_get_previous_state (void ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); -static int yy_get_next_buffer (void ); -static void yy_fatal_error (yyconst char msg[] ); +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ + yytext_ptr = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; + yy_c_buf_p = yy_cp; -#define YY_NUM_RULES 172 -#define YY_END_OF_BUFFER 173 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[1151] = +#define YY_NUM_RULES 173 +#define YY_END_OF_BUFFER 174 +static yyconst short int yy_accept[1165] = { 0, - 0, 0, 152, 152, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 173, 172, - 170, 155, 154, 32, 170, 152, 38, 29, 44, 43, - 34, 35, 28, 36, 152, 37, 8, 8, 45, 46, - 39, 40, 27, 33, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 10, 9, 152, 102, 100, 152, 42, - 30, 41, 31, 171, 155, 32, 171, 150, 38, 29, - 44, 43, 34, 35, 28, 36, 150, 37, 8, 8, - 45, 46, 39, 40, 27, 33, 150, 150, 150, 150, + 0, 0, 153, 153, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 174, 173, + 171, 156, 155, 32, 171, 153, 38, 29, 44, 43, + 34, 35, 28, 36, 153, 37, 8, 8, 45, 46, + 39, 40, 27, 33, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 10, 9, 153, 102, 100, 153, 42, + 30, 41, 31, 172, 156, 32, 172, 151, 38, 29, + 44, 43, 34, 35, 28, 36, 151, 37, 8, 8, + 45, 46, 39, 40, 27, 33, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 10, 9, 151, 151, 42, 30, 41, 31, 151, + 8, 8, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 102, 100, 4, 3, 2, 4, 5, 112, 111, 150, + 34, 35, 28, 36, 150, 37, 8, 8, 45, 46, + 40, 33, 150, 150, 150, 150, 150, 150, 150, 150, + 150, 150, 150, 150, 10, 9, 150, 150, 150, 150, + 150, 150, 150, 150, 150, 150, 150, 31, 170, 168, + 169, 171, 163, 162, 157, 164, 165, 161, 161, 161, + + 161, 166, 167, 156, 15, 0, 154, 153, 8, 26, + 24, 22, 20, 21, 1, 23, 8, 8, 153, 18, + 17, 14, 16, 19, 153, 153, 153, 106, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 25, 13, 151, 6, 22, 20, 21, 0, 1, + 23, 8, 0, 7, 7, 8, 7, 14, 151, 7, + 7, 7, 151, 151, 106, 7, 151, 151, 7, 151, + + 151, 151, 7, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 7, 151, 8, 8, 0, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 4, 4, 111, 111, 150, + 6, 113, 22, 23, 114, 150, 7, 7, 7, 150, + 150, 150, 7, 150, 7, 7, 150, 150, 150, 150, + 150, 150, 150, 150, 7, 150, 150, 150, 7, 150, + 7, 7, 150, 150, 150, 150, 150, 150, 150, 150, + + 170, 169, 162, 161, 0, 161, 161, 161, 11, 12, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 83, + 153, 153, 153, 153, 153, 153, 153, 153, 66, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 103, 101, 153, 8, 152, 8, 151, 7, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 58, 59, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, + + 151, 151, 151, 151, 83, 151, 151, 151, 151, 151, + 66, 151, 151, 151, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 103, 101, 4, + 8, 150, 150, 150, 150, 150, 115, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 10, 9, 150, 150, 42, 30, 41, 31, 150, - 8, 8, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 102, 100, 4, 3, 2, 4, 5, 111, 110, 149, - 34, 35, 28, 36, 149, 37, 8, 8, 45, 46, - 40, 33, 149, 149, 149, 149, 149, 149, 149, 149, - 149, 149, 149, 149, 10, 9, 149, 149, 149, 149, - 149, 149, 149, 149, 149, 149, 149, 31, 169, 167, - 168, 170, 162, 161, 156, 163, 164, 160, 160, 160, + 150, 150, 132, 150, 150, 150, 150, 150, 150, 150, + 150, 150, 150, 161, 161, 161, 153, 56, 153, 51, + 153, 90, 153, 97, 153, 153, 153, 153, 153, 153, + 153, 79, 153, 153, 153, 153, 98, 153, 153, 109, + 153, 153, 88, 153, 63, 153, 153, 153, 153, 153, - 160, 165, 166, 155, 15, 0, 153, 152, 8, 26, - 24, 22, 20, 21, 1, 23, 8, 8, 152, 18, - 17, 14, 16, 19, 152, 152, 152, 106, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 25, 13, 150, 6, 22, 20, 21, 0, 1, 23, - 8, 0, 7, 7, 8, 7, 14, 150, 7, 7, - 7, 150, 150, 106, 7, 150, 150, 7, 150, 150, + 153, 153, 153, 86, 153, 153, 153, 153, 94, 153, + 153, 153, 153, 153, 153, 153, 153, 151, 56, 151, + 151, 51, 151, 97, 151, 151, 151, 151, 151, 98, + 109, 151, 63, 151, 151, 151, 151, 151, 151, 151, + 151, 90, 151, 151, 151, 151, 79, 151, 151, 151, + 151, 151, 151, 88, 151, 151, 151, 151, 151, 151, + 86, 151, 151, 151, 94, 151, 151, 151, 151, 151, + 150, 150, 150, 119, 127, 118, 150, 150, 129, 122, + 125, 150, 150, 130, 150, 150, 150, 150, 150, 136, + 144, 135, 150, 150, 147, 139, 142, 150, 150, 148, - 150, 7, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 7, 150, 8, 8, 0, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 4, 4, 110, 110, 149, 6, 112, - 22, 23, 113, 149, 7, 7, 7, 149, 149, 149, - 7, 149, 7, 7, 149, 149, 149, 149, 149, 149, - 149, 149, 7, 149, 149, 149, 7, 149, 7, 7, - 149, 149, 149, 149, 149, 149, 149, 149, 169, 168, + 150, 150, 161, 161, 161, 153, 53, 50, 153, 153, + 153, 153, 96, 61, 153, 153, 85, 153, 72, 153, + 153, 71, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 105, 153, 153, 153, 89, 153, 87, 153, 153, + 153, 153, 153, 153, 153, 151, 53, 151, 50, 151, + 151, 96, 151, 72, 151, 151, 151, 151, 151, 151, + 151, 151, 151, 151, 151, 61, 151, 85, 151, 151, + 151, 71, 151, 151, 151, 151, 151, 151, 105, 151, + 151, 89, 87, 151, 151, 151, 151, 150, 120, 117, + 150, 150, 129, 129, 124, 150, 128, 150, 150, 137, - 161, 160, 0, 160, 160, 160, 11, 12, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 83, 152, 152, - 152, 152, 152, 152, 152, 152, 66, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 103, - 101, 152, 8, 151, 8, 150, 7, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 58, 59, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, + 134, 150, 150, 147, 147, 141, 150, 146, 150, 161, + 161, 159, 153, 153, 153, 153, 153, 153, 62, 153, + 153, 153, 52, 153, 47, 153, 153, 95, 48, 70, + 153, 153, 153, 153, 67, 153, 153, 84, 68, 153, + 153, 153, 151, 60, 151, 151, 151, 151, 151, 95, + 151, 151, 67, 151, 151, 151, 151, 151, 62, 151, + 151, 151, 52, 47, 151, 48, 70, 151, 151, 151, + 151, 84, 68, 151, 150, 150, 62, 126, 123, 150, + 150, 150, 145, 143, 140, 150, 160, 158, 153, 153, + 153, 153, 73, 153, 153, 104, 153, 153, 153, 91, - 83, 150, 150, 150, 150, 150, 66, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 103, 101, 4, 8, 149, 149, 149, - 149, 149, 114, 149, 149, 149, 149, 149, 149, 149, - 149, 149, 149, 149, 149, 149, 149, 149, 131, 149, - 149, 149, 149, 149, 149, 149, 149, 149, 149, 160, - 160, 160, 152, 56, 152, 51, 152, 90, 152, 97, - 152, 152, 152, 152, 152, 152, 152, 79, 152, 152, - 152, 152, 98, 152, 152, 108, 152, 152, 88, 152, - 63, 152, 152, 152, 152, 152, 152, 152, 152, 86, + 153, 93, 108, 153, 153, 153, 80, 153, 49, 153, + 153, 151, 151, 73, 151, 151, 151, 99, 108, 151, + 151, 151, 151, 151, 151, 151, 104, 151, 91, 151, + 93, 151, 151, 80, 49, 150, 150, 150, 150, 150, + 150, 131, 153, 153, 153, 153, 153, 153, 57, 153, + 153, 153, 153, 78, 153, 107, 149, 153, 131, 151, + 151, 57, 151, 151, 107, 149, 151, 151, 151, 151, + 151, 151, 151, 151, 78, 131, 116, 121, 149, 133, + 138, 153, 153, 153, 153, 153, 153, 153, 153, 153, + 153, 153, 153, 151, 151, 151, 151, 151, 151, 151, - 152, 152, 152, 152, 94, 152, 152, 152, 152, 152, - 152, 152, 150, 56, 150, 150, 51, 150, 97, 150, - 150, 150, 150, 150, 98, 108, 150, 63, 150, 150, - 150, 150, 150, 150, 150, 90, 150, 150, 150, 150, - 79, 150, 150, 150, 150, 150, 150, 88, 150, 150, - 150, 150, 150, 150, 86, 150, 150, 150, 94, 150, - 150, 150, 150, 150, 149, 149, 149, 118, 126, 117, - 149, 149, 128, 121, 124, 149, 149, 129, 149, 149, - 149, 149, 149, 135, 143, 134, 149, 149, 146, 138, - 141, 149, 149, 147, 149, 149, 160, 160, 160, 152, + 151, 151, 151, 151, 151, 153, 153, 153, 153, 153, + 153, 153, 153, 153, 69, 153, 153, 151, 151, 151, + 151, 151, 151, 151, 151, 151, 151, 151, 69, 153, + 153, 153, 153, 153, 153, 92, 82, 153, 153, 153, + 151, 151, 92, 151, 151, 151, 151, 151, 151, 82, + 151, 75, 153, 153, 110, 153, 153, 153, 153, 153, + 151, 110, 151, 151, 75, 151, 151, 151, 151, 153, + 153, 153, 153, 81, 153, 153, 151, 151, 151, 151, + 151, 151, 81, 153, 153, 153, 153, 153, 65, 64, + 151, 151, 65, 64, 151, 151, 151, 153, 153, 153, - 53, 50, 152, 152, 152, 152, 96, 61, 152, 152, - 85, 152, 72, 152, 152, 71, 152, 152, 152, 152, - 152, 152, 152, 152, 152, 105, 152, 152, 152, 89, - 152, 87, 152, 152, 152, 152, 152, 152, 150, 53, - 150, 50, 150, 150, 96, 150, 72, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 61, 150, 85, - 150, 150, 150, 71, 150, 150, 150, 150, 150, 150, - 105, 150, 150, 89, 87, 150, 150, 150, 150, 149, - 119, 116, 149, 149, 128, 128, 123, 149, 127, 149, - 149, 136, 133, 149, 149, 146, 146, 140, 149, 145, - - 149, 160, 160, 158, 152, 152, 152, 152, 152, 152, - 62, 152, 152, 152, 52, 152, 47, 152, 152, 95, - 48, 70, 152, 152, 152, 152, 67, 152, 84, 68, - 152, 152, 152, 150, 60, 150, 150, 150, 150, 150, - 95, 150, 150, 67, 150, 150, 150, 150, 62, 150, - 150, 150, 52, 47, 150, 48, 70, 150, 150, 150, - 150, 84, 68, 150, 149, 149, 62, 125, 122, 149, - 149, 149, 144, 142, 139, 149, 159, 157, 152, 152, - 152, 152, 73, 152, 152, 104, 152, 152, 152, 91, - 152, 93, 107, 152, 152, 152, 80, 49, 152, 152, - - 150, 150, 73, 150, 150, 150, 99, 107, 150, 150, - 150, 150, 150, 150, 104, 150, 91, 150, 93, 150, - 150, 80, 49, 149, 149, 149, 149, 149, 149, 130, - 152, 152, 152, 152, 152, 152, 57, 152, 152, 152, - 152, 78, 152, 148, 152, 130, 150, 150, 57, 150, - 150, 148, 150, 150, 150, 150, 150, 150, 150, 150, - 78, 130, 115, 120, 148, 132, 137, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 152, 152, 150, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 152, 152, 152, 152, 152, 152, 152, 152, 152, - - 69, 152, 152, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 69, 152, 152, 152, 152, 152, - 152, 92, 82, 152, 152, 152, 150, 150, 92, 150, - 150, 150, 150, 150, 150, 82, 150, 75, 152, 152, - 109, 152, 152, 152, 152, 152, 150, 109, 150, 150, - 75, 150, 150, 150, 150, 152, 152, 152, 152, 81, - 152, 152, 150, 150, 150, 150, 150, 150, 81, 152, - 152, 152, 152, 152, 65, 64, 150, 150, 65, 64, - 150, 150, 150, 152, 152, 152, 152, 152, 150, 150, - 150, 150, 150, 152, 152, 55, 152, 152, 150, 55, - - 150, 150, 150, 152, 152, 152, 152, 150, 150, 150, - 150, 152, 54, 152, 152, 54, 150, 150, 150, 152, - 152, 152, 150, 150, 150, 152, 152, 152, 150, 150, - 150, 74, 152, 152, 74, 150, 150, 152, 152, 150, - 150, 76, 152, 76, 150, 152, 150, 77, 77, 0 + 153, 153, 151, 151, 151, 151, 151, 153, 153, 55, + 153, 153, 151, 55, 151, 151, 151, 153, 153, 153, + 153, 151, 151, 151, 151, 153, 54, 153, 153, 54, + 151, 151, 151, 153, 153, 153, 151, 151, 151, 153, + 153, 153, 151, 151, 151, 74, 153, 153, 74, 151, + 151, 153, 153, 151, 151, 76, 153, 76, 151, 153, + 151, 77, 77, 0 } ; -static yyconst flex_int32_t yy_ec[256] = +static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, @@ -528,285 +451,287 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst flex_int32_t yy_meta[81] = +static yyconst int yy_meta[81] = { 0, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 5, 6, 7, 8, 9, 10, 11, 11, 8, 1, 1, 7, 1, 5, 11, 11, 11, 11, 11, 11, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 8, 10, 8, 3, 9, 11, 11, 11, 11, 11, + 8, 4, 8, 3, 9, 11, 11, 11, 11, 11, 11, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 1, 10 } ; -static yyconst flex_int16_t yy_base[1173] = +static yyconst short int yy_base[1187] = { 0, 0, 0, 0, 0, 80, 0, 154, 0, 223, 302, - 381, 0, 162, 172, 461, 541, 621, 701, 2060, 2061, - 2061, 2057, 2061, 2035, 2052, 764, 2061, 153, 2061, 2061, - 2033, 2032, 0, 2031, 0, 154, 300, 232, 0, 2061, - 147, 2030, 179, 0, 226, 170, 157, 228, 169, 222, - 2009, 2014, 2011, 2019, 176, 137, 227, 175, 232, 2002, - 249, 2021, 2016, 0, 0, 1988, 1984, 1972, 1978, 2061, - 182, 2061, 0, 2061, 2039, 2017, 2034, 808, 2061, 243, - 2061, 2061, 2015, 2014, 2061, 262, 0, 257, 852, 213, - 2061, 2061, 264, 2013, 269, 2061, 910, 305, 314, 461, + 381, 0, 162, 172, 461, 541, 621, 701, 2073, 2074, + 2074, 2070, 2074, 2048, 2065, 764, 2074, 153, 2074, 2074, + 2046, 2045, 0, 2044, 0, 154, 300, 232, 0, 2074, + 147, 2043, 179, 0, 226, 170, 157, 228, 169, 222, + 2022, 2027, 2024, 2032, 176, 137, 227, 175, 232, 2015, + 249, 2034, 2029, 0, 0, 2001, 1997, 1985, 1991, 2074, + 182, 2074, 0, 2074, 2052, 2030, 2047, 808, 2074, 243, + 2074, 2074, 2028, 2027, 2074, 262, 0, 257, 852, 213, + 2074, 2074, 264, 2026, 269, 2074, 910, 305, 314, 461, - 472, 333, 1992, 1995, 2003, 1992, 247, 300, 1984, 1987, - 1995, 2061, 2061, 466, 1964, 2061, 186, 2061, 0, 968, - 550, 628, 492, 327, 304, 474, 298, 329, 1990, 1987, - 305, 496, 462, 325, 464, 1979, 540, 1998, 1993, 1965, - 1961, 1949, 1012, 2061, 2061, 0, 2061, 2061, 2016, 1056, - 1995, 1994, 2061, 1993, 0, 1992, 0, 460, 2061, 0, - 1991, 2061, 1100, 550, 564, 497, 621, 544, 244, 1987, - 1969, 1965, 141, 1967, 2061, 2061, 622, 572, 626, 659, - 625, 226, 1953, 1937, 1933, 523, 1935, 0, 2003, 2061, - 0, 1992, 2061, 0, 2061, 2061, 2061, 1983, 457, 513, + 472, 333, 2005, 2008, 2016, 2005, 247, 300, 1997, 2000, + 244, 2074, 2074, 466, 1978, 2074, 186, 2074, 0, 968, + 550, 628, 492, 327, 304, 474, 298, 329, 2004, 2001, + 305, 496, 462, 325, 464, 1993, 557, 2012, 2007, 1979, + 1975, 1963, 1012, 2074, 2074, 0, 2074, 2074, 2030, 1056, + 2009, 2008, 2074, 2007, 0, 2006, 0, 460, 2074, 0, + 2005, 2074, 1100, 544, 546, 497, 621, 540, 491, 2001, + 1983, 1979, 141, 1981, 2074, 2074, 547, 622, 626, 659, + 625, 288, 1967, 1951, 1947, 516, 1949, 0, 2017, 2074, + 0, 2006, 2074, 0, 2074, 2074, 2074, 1997, 457, 562, - 537, 2061, 2061, 2000, 2061, 1996, 2061, 0, 1158, 2061, - 2061, 0, 0, 0, 0, 0, 710, 0, 695, 1977, - 2061, 0, 2061, 1976, 1954, 1968, 1962, 0, 1956, 1954, - 1948, 290, 1962, 1946, 1959, 1959, 1943, 329, 1950, 1946, - 1942, 1944, 1946, 572, 1952, 1942, 611, 1939, 1941, 1930, - 579, 1943, 1931, 1945, 1945, 1933, 1946, 468, 1931, 1920, - 1926, 1922, 1941, 1922, 1922, 1921, 1891, 1894, 1899, 1884, - 2061, 2061, 0, 1208, 2061, 2061, 2061, 0, 2061, 0, - 500, 721, 0, 2061, 2061, 0, 2061, 647, 727, 760, - 0, 1925, 1914, 0, 771, 1918, 1916, 1914, 774, 813, + 264, 2074, 2074, 2014, 2074, 2010, 2074, 0, 1158, 2074, + 2074, 0, 0, 0, 0, 0, 710, 0, 695, 1991, + 2074, 0, 2074, 1990, 1968, 1982, 1976, 0, 1970, 1968, + 1962, 290, 1976, 1960, 1973, 1973, 1957, 588, 1964, 1960, + 1956, 1958, 1960, 639, 1966, 1956, 570, 1953, 1955, 1944, + 577, 1957, 1945, 1959, 1959, 1947, 1960, 468, 1945, 1934, + 1940, 1936, 1955, 1953, 1935, 1935, 1934, 1904, 1907, 1912, + 1897, 2074, 2074, 0, 1208, 2074, 2074, 2074, 0, 2074, + 0, 500, 721, 0, 2074, 2074, 0, 2074, 647, 708, + 727, 0, 1938, 1927, 0, 760, 1931, 1929, 1927, 771, - 1924, 1925, 1912, 1920, 1920, 1923, 1900, 1908, 1898, 574, - 1915, 1904, 1893, 804, 1866, 709, 794, 0, 1897, 1911, - 1894, 486, 1908, 1892, 1905, 1890, 623, 1897, 1893, 1889, - 1894, 639, 1891, 639, 613, 1891, 704, 1894, 1882, 1896, - 1896, 1898, 586, 1883, 1879, 1875, 1894, 1875, 1875, 1874, - 1844, 1847, 1852, 0, 1258, 1910, 2061, 0, 1308, 0, - 0, 2061, 0, 648, 699, 715, 0, 1878, 816, 818, - 1877, 1881, 1864, 1865, 1863, 1880, 1867, 1875, 1876, 1874, - 1875, 1854, 780, 1835, 819, 850, 1834, 1829, 1804, 1795, - 1783, 1791, 1777, 1782, 1783, 1777, 1768, 1739, 1800, 0, + 813, 1937, 1938, 1925, 1933, 1933, 1936, 1913, 1921, 1911, + 573, 1928, 1917, 1906, 1928, 774, 1878, 776, 836, 0, + 1909, 1923, 1906, 615, 1920, 1904, 1917, 1902, 623, 1909, + 1905, 1901, 1906, 710, 1903, 611, 537, 1903, 737, 1906, + 1894, 1908, 1908, 1910, 629, 1895, 1891, 1887, 1906, 1887, + 1887, 1886, 1856, 1859, 1864, 0, 1258, 1922, 2074, 0, + 1308, 0, 0, 2074, 0, 634, 705, 638, 0, 1890, + 849, 850, 1889, 1893, 1876, 1877, 1875, 1892, 1879, 1887, + 1888, 1886, 1887, 1866, 780, 1847, 824, 826, 1846, 1850, + 1835, 1836, 1834, 1849, 1837, 1844, 1845, 1843, 1844, 1825, - 0, 1776, 1774, 584, 636, 613, 2061, 2061, 1738, 1734, - 1744, 1746, 1739, 1658, 1643, 1637, 1659, 1658, 1649, 1654, - 1638, 1643, 1649, 1641, 1651, 1648, 1629, 0, 1637, 1633, - 1638, 1625, 1629, 1637, 1639, 1635, 0, 1625, 1619, 1620, - 1625, 1621, 1628, 1618, 1615, 1614, 1609, 1626, 1611, 1608, - 1609, 1621, 1605, 1623, 1605, 1610, 1614, 1601, 1575, 0, - 0, 1583, 0, 0, 836, 1602, 887, 1609, 1610, 1610, - 1610, 1583, 1605, 915, 1602, 1592, 1582, 1587, 1584, 1590, - 0, 0, 1570, 1566, 1568, 1564, 1559, 1575, 1535, 1543, - 1559, 1571, 1556, 1573, 1564, 1554, 1566, 1558, 1568, 1565, + 1896, 0, 0, 1868, 1857, 653, 616, 469, 2074, 2074, + 1826, 1812, 1815, 1815, 1813, 1810, 1791, 1775, 1787, 1776, + 1762, 1766, 1735, 1740, 1746, 1738, 1741, 1660, 1641, 0, + 1649, 1645, 1650, 1637, 1641, 1649, 1651, 1647, 0, 1638, + 1632, 1633, 1638, 1634, 1641, 1631, 1628, 1627, 1622, 1639, + 1624, 1620, 1621, 1633, 1617, 1635, 1617, 1633, 1621, 1625, + 1612, 1586, 0, 0, 1594, 0, 0, 795, 1613, 862, + 1620, 1621, 1621, 1621, 1599, 1621, 889, 1618, 1608, 1598, + 1603, 1601, 1612, 0, 0, 1595, 1596, 1598, 1589, 1584, + 1600, 1603, 1559, 1567, 1582, 1589, 1571, 1583, 1574, 1564, - 0, 1555, 1557, 1544, 1557, 1556, 0, 1546, 1548, 1552, - 1542, 1539, 1538, 1551, 1536, 1533, 1534, 1531, 1549, 1531, - 1536, 1540, 1527, 0, 0, 0, 0, 1530, 546, 1539, - 1538, 1526, 0, 1536, 1527, 1519, 1534, 1532, 1531, 1523, - 1514, 1510, 1513, 1482, 682, 1490, 1489, 1478, 0, 1486, - 1473, 1463, 1471, 1469, 1468, 1461, 1453, 1454, 1456, 313, - 693, 511, 1486, 0, 1483, 0, 1485, 0, 1475, 0, - 1474, 1463, 1478, 1471, 1466, 1468, 1470, 0, 1467, 1481, - 1469, 1463, 0, 1480, 1461, 0, 1460, 1478, 0, 1460, - 0, 1462, 1461, 1474, 1465, 1452, 1460, 1452, 1461, 0, + 1576, 1568, 1578, 1575, 0, 1565, 1567, 1554, 1567, 1566, + 0, 1557, 1559, 1563, 1553, 1550, 1549, 1562, 1547, 1544, + 1545, 1541, 1559, 1541, 1546, 1550, 1537, 0, 0, 0, + 0, 1540, 704, 1549, 1548, 1536, 0, 1546, 1537, 1529, + 1544, 1542, 1541, 1533, 1524, 1525, 1528, 1497, 688, 1505, + 1504, 1493, 0, 1502, 1494, 1487, 1500, 1493, 1492, 1485, + 1477, 1478, 1480, 657, 659, 746, 1509, 0, 1501, 0, + 1500, 0, 1485, 0, 1484, 1473, 1488, 1481, 1476, 1478, + 1480, 0, 1477, 1491, 1479, 1473, 0, 1491, 1472, 0, + 1471, 1489, 0, 1471, 0, 1473, 1472, 1485, 1476, 1463, - 1466, 1459, 1447, 1451, 0, 1461, 1444, 1454, 1457, 1452, - 1419, 1415, 1446, 0, 1443, 1438, 0, 1444, 0, 1419, - 1434, 1427, 1425, 1429, 0, 0, 1443, 0, 1427, 1435, - 1420, 1417, 1410, 1383, 1379, 0, 1402, 1401, 1396, 1401, - 0, 1398, 1412, 1395, 1413, 1394, 1393, 0, 1394, 1396, - 1401, 1388, 1396, 1388, 0, 1403, 1396, 1383, 0, 1398, - 1381, 1391, 1394, 1389, 1385, 1377, 1381, 0, 0, 0, - 1376, 1392, 1375, 0, 0, 1374, 1382, 0, 1370, 1386, - 1347, 1340, 1343, 0, 0, 0, 1339, 1353, 1454, 0, - 0, 1337, 1343, 0, 1333, 1347, 697, 710, 809, 1358, + 1470, 1462, 1471, 0, 1476, 1469, 1457, 1461, 0, 1471, + 1454, 1461, 1463, 1466, 1461, 1428, 1424, 1455, 0, 1452, + 1447, 0, 1453, 0, 1433, 1448, 1441, 1439, 1443, 0, + 0, 1457, 0, 1442, 1455, 1443, 1440, 1433, 1435, 1405, + 1401, 0, 1424, 1422, 1412, 1414, 0, 1406, 1420, 1403, + 1421, 1402, 1401, 0, 1402, 1404, 1409, 1396, 1404, 1396, + 0, 1411, 1404, 1392, 0, 1407, 1390, 1400, 1403, 1398, + 1394, 1386, 1389, 0, 0, 0, 1384, 1400, 1375, 0, + 0, 1382, 1390, 0, 1378, 1394, 1355, 1348, 1351, 0, + 0, 0, 1347, 1361, 1454, 0, 0, 1345, 1351, 0, - 0, 0, 1360, 1372, 1357, 1365, 0, 0, 1365, 1354, - 0, 1337, 0, 1362, 1356, 0, 1355, 1353, 1329, 1330, - 1346, 1342, 1331, 1318, 1336, 0, 1332, 1327, 1319, 0, - 1327, 0, 1311, 1329, 1310, 1314, 1279, 1291, 1305, 0, - 1305, 0, 1305, 1318, 0, 1318, 0, 1316, 1299, 1313, - 1315, 1311, 1302, 1258, 1270, 1287, 1299, 0, 1289, 0, - 1269, 1293, 1287, 0, 1287, 1264, 1286, 1272, 1265, 1283, - 0, 1275, 1267, 0, 0, 1260, 1278, 1259, 1263, 1256, - 0, 1263, 1261, 1254, 0, 1533, 0, 1270, 0, 1271, - 1221, 0, 1226, 1224, 1218, 0, 1612, 0, 1232, 0, + 1341, 1355, 735, 753, 764, 1366, 0, 0, 1368, 1380, + 1365, 1378, 0, 0, 1378, 1367, 0, 1350, 0, 1375, + 1369, 0, 1369, 1372, 1346, 1350, 1367, 1363, 1352, 1345, + 1362, 0, 1353, 1345, 1334, 0, 1341, 0, 1325, 1336, + 1336, 1317, 1321, 1286, 1298, 1312, 0, 1312, 0, 1312, + 1325, 0, 1325, 0, 1324, 1308, 1322, 1324, 1320, 1317, + 1313, 1271, 1282, 1299, 1311, 0, 1301, 0, 1278, 1303, + 1297, 0, 1297, 1280, 1302, 1285, 1277, 1295, 0, 1287, + 1273, 0, 0, 1266, 1284, 1265, 1269, 1262, 0, 1269, + 1267, 1260, 0, 1533, 0, 1276, 0, 1277, 1228, 0, - 1227, 717, 827, 1262, 1236, 1234, 1224, 1248, 1245, 1242, - 0, 1243, 1240, 1218, 0, 1233, 0, 1217, 1215, 0, - 0, 1204, 1209, 1227, 1201, 1216, 1199, 1212, 0, 0, - 1213, 1178, 135, 195, 0, 266, 323, 438, 460, 484, - 0, 559, 606, 600, 604, 635, 651, 653, 0, 688, - 719, 706, 0, 0, 710, 0, 703, 716, 715, 734, - 743, 0, 0, 760, 757, 766, 0, 0, 0, 764, - 737, 745, 0, 0, 0, 755, 831, 834, 833, 845, - 844, 854, 0, 834, 854, 0, 840, 853, 854, 0, - 873, 0, 0, 869, 858, 872, 0, 0, 846, 844, + 1234, 1232, 1226, 0, 1612, 0, 1240, 0, 1241, 779, + 790, 1275, 1248, 1246, 1236, 1260, 1254, 1252, 0, 1253, + 1250, 1234, 0, 1249, 0, 1230, 1227, 0, 0, 1216, + 1221, 160, 185, 257, 318, 333, 436, 0, 0, 489, + 460, 502, 555, 0, 577, 582, 582, 659, 646, 0, + 648, 675, 653, 681, 674, 703, 724, 721, 0, 757, + 783, 783, 0, 0, 784, 0, 777, 796, 793, 810, + 818, 0, 0, 834, 830, 844, 0, 0, 0, 850, + 824, 833, 0, 0, 0, 831, 894, 900, 892, 896, + 885, 898, 0, 876, 892, 0, 880, 899, 901, 0, - 888, 888, 0, 868, 882, 883, 0, 0, 900, 874, - 872, 917, 906, 908, 0, 896, 0, 930, 0, 924, - 913, 0, 0, 932, 934, 934, 905, 913, 914, 0, - 930, 949, 939, 947, 942, 953, 0, 952, 940, 944, - 954, 0, 959, 0, 930, 0, 953, 961, 0, 963, - 970, 0, 941, 957, 976, 966, 977, 963, 967, 974, - 0, 0, 0, 0, 0, 0, 0, 969, 975, 981, - 978, 975, 974, 984, 988, 974, 975, 993, 964, 991, - 988, 992, 1006, 977, 994, 1000, 998, 997, 1016, 1002, - 1003, 1004, 1018, 1010, 1013, 1011, 1014, 1009, 1021, 1017, + 920, 0, 0, 916, 904, 916, 0, 913, 0, 893, + 893, 927, 927, 0, 905, 918, 919, 0, 0, 930, + 925, 905, 909, 946, 935, 936, 0, 922, 0, 952, + 0, 951, 937, 0, 0, 952, 955, 958, 929, 931, + 931, 0, 947, 966, 962, 970, 964, 975, 0, 974, + 962, 966, 973, 0, 978, 0, 0, 949, 0, 972, + 980, 0, 982, 983, 0, 0, 954, 970, 989, 979, + 990, 976, 980, 987, 0, 0, 0, 0, 0, 0, + 0, 982, 988, 1002, 999, 996, 995, 1005, 1009, 1001, + 1002, 1020, 991, 1018, 1015, 1019, 1025, 996, 1013, 1019, - 0, 1027, 998, 1019, 1022, 1016, 1032, 1003, 1020, 1034, - 1025, 1028, 1034, 1038, 0, 1033, 1050, 1034, 1050, 1042, - 1050, 0, 0, 1063, 1060, 1031, 1047, 1063, 0, 1064, - 1035, 1052, 1069, 1059, 1061, 0, 1074, 0, 1056, 1047, - 0, 1048, 1064, 1060, 1063, 1036, 1053, 0, 1066, 1039, - 0, 1066, 1065, 1081, 1077, 1068, 1106, 1098, 1086, 0, - 1090, 1063, 1112, 1095, 1069, 1088, 1118, 1106, 0, 1102, - 1110, 1110, 1113, 1096, 0, 0, 1115, 1114, 0, 0, - 1110, 1118, 1107, 1115, 1131, 1137, 1130, 1142, 1136, 1142, - 1123, 1136, 1148, 1140, 1147, 0, 1140, 1144, 1150, 0, + 1017, 1016, 1029, 1015, 1016, 1017, 1031, 1023, 1026, 1024, + 1027, 1022, 1034, 1038, 0, 1048, 1019, 1040, 1043, 1037, + 1059, 1030, 1047, 1061, 1052, 1055, 1061, 1057, 0, 1052, + 1069, 1053, 1069, 1061, 1063, 0, 0, 1076, 1073, 1044, + 1060, 1076, 0, 1077, 1048, 1065, 1082, 1072, 1082, 0, + 1095, 0, 1077, 1068, 0, 1069, 1085, 1087, 1091, 1064, + 1081, 0, 1095, 1068, 0, 1096, 1087, 1103, 1099, 1090, + 1120, 1121, 1110, 0, 1107, 1080, 1136, 1109, 1082, 1100, + 1138, 1126, 0, 1123, 1131, 1131, 1134, 1117, 0, 0, + 1136, 1135, 0, 0, 1134, 1142, 1125, 1132, 1148, 1154, - 1145, 1150, 1154, 1165, 1154, 1167, 1160, 1159, 1172, 1172, - 1164, 1162, 0, 1177, 1164, 0, 1165, 1180, 1167, 1171, - 1164, 1182, 1174, 1167, 1185, 1176, 1187, 1196, 1180, 1194, - 1203, 0, 1190, 1186, 0, 1192, 1188, 1201, 1207, 1203, - 1209, 0, 1205, 0, 1207, 1209, 1210, 0, 0, 2061, - 1691, 1702, 1713, 1724, 1735, 1746, 1754, 1762, 1770, 1781, - 1789, 1800, 1811, 1822, 1825, 1834, 1842, 1239, 1853, 1864, - 1875, 1886 + 1153, 1165, 1158, 1164, 1146, 1160, 1172, 1161, 1168, 0, + 1161, 1165, 1171, 0, 1166, 1165, 1169, 1180, 1169, 1181, + 1173, 1172, 1185, 1185, 1183, 1181, 0, 1196, 1184, 0, + 1188, 1203, 1190, 1194, 1187, 1205, 1203, 1196, 1214, 1199, + 1211, 1221, 1204, 1215, 1224, 0, 1211, 1207, 0, 1213, + 1209, 1216, 1222, 1218, 1224, 0, 1219, 0, 1220, 1222, + 1223, 0, 0, 2074, 1691, 1702, 1713, 1724, 1735, 1746, + 1754, 1762, 1770, 1781, 1789, 1800, 1811, 1822, 1825, 1834, + 1842, 1252, 1853, 1864, 1875, 1886 } ; -static yyconst flex_int16_t yy_def[1173] = +static yyconst short int yy_def[1187] = { 0, - 1151, 1151, 1150, 3, 1150, 5, 5, 7, 1152, 1152, - 1150, 11, 1153, 1153, 1154, 1154, 1155, 1155, 1150, 1150, - 1150, 1150, 1150, 1150, 1156, 1157, 1150, 1150, 1150, 1150, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1150, - 1150, 1157, 1150, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1150, - 1150, 1150, 1157, 1150, 1150, 1150, 1156, 1158, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1158, 1158, 1150, 89, - 1150, 1150, 1150, 1150, 1150, 1150, 1158, 97, 97, 97, + 1165, 1165, 1164, 3, 1164, 5, 5, 7, 1166, 1166, + 1164, 11, 1167, 1167, 1168, 1168, 1169, 1169, 1164, 1164, + 1164, 1164, 1164, 1164, 1170, 1171, 1164, 1164, 1164, 1164, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1164, + 1164, 1171, 1164, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1164, + 1164, 1164, 1171, 1164, 1164, 1164, 1170, 1172, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1172, 1172, 1164, 89, + 1164, 1164, 1164, 1164, 1164, 1164, 1172, 97, 97, 97, - 97, 97, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1150, 1150, 97, 1158, 1150, 1150, 1150, 1158, 1158, - 1150, 1150, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1159, 1150, 1150, 1159, 1150, 1150, 1160, 1161, - 1162, 1150, 1150, 1150, 1161, 1161, 89, 89, 1150, 1163, - 1150, 1150, 1161, 163, 163, 163, 163, 163, 1161, 1161, - 1161, 1161, 1161, 1161, 1150, 1150, 163, 163, 163, 163, - 163, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1150, 1150, - 1164, 1150, 1150, 1165, 1150, 1150, 1150, 1166, 1166, 1166, + 97, 97, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1164, 1164, 97, 1172, 1164, 1164, 1164, 1172, 1172, + 1164, 1164, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1173, 1164, 1164, 1173, 1164, 1164, 1174, 1175, + 1176, 1164, 1164, 1164, 1175, 1175, 89, 89, 1164, 1177, + 1164, 1164, 1175, 163, 163, 163, 163, 163, 1175, 1175, + 1175, 1175, 1175, 1175, 1164, 1164, 163, 163, 163, 163, + 163, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1164, 1164, + 1178, 1164, 1164, 1179, 1164, 1164, 1164, 1180, 1180, 1180, - 1166, 1150, 1150, 1150, 1150, 1156, 1150, 1157, 1157, 1150, - 1150, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 209, 1150, - 1150, 1157, 1150, 1150, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1150, 1150, 1158, 1158, 1150, 1150, 1150, 1167, 1150, 1158, - 89, 89, 282, 1150, 1150, 1168, 1150, 97, 97, 97, - 1158, 1158, 1158, 1158, 97, 1158, 1158, 1158, 97, 97, + 1180, 1164, 1164, 1164, 1164, 1170, 1164, 1171, 1171, 1164, + 1164, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 209, 1164, + 1164, 1171, 1164, 1164, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1164, 1164, 1172, 1172, 1164, 1164, 1164, 1181, 1164, + 1172, 89, 89, 283, 1164, 1164, 1182, 1164, 97, 97, + 97, 1172, 1172, 1172, 1172, 97, 1172, 1172, 1172, 97, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 97, 1158, 120, 1150, 1168, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1159, 1159, 1160, 1150, 1161, 1161, 1162, - 1162, 1150, 1163, 163, 163, 163, 1161, 1161, 163, 163, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 163, 1161, 163, 163, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1150, 1164, + 97, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 97, 1172, 120, 1164, 1182, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1173, 1173, 1174, 1164, 1175, + 1175, 1176, 1176, 1164, 1177, 163, 163, 163, 1175, 1175, + 163, 163, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1175, 163, 1175, 163, 163, 1175, 1175, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, - 1165, 1166, 1150, 1166, 1166, 1166, 1150, 1150, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1158, 1167, 1168, 1158, 97, 1158, 1158, 1158, - 1158, 1158, 1158, 97, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, + 1164, 1178, 1179, 1180, 1164, 1180, 1180, 1180, 1164, 1164, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1172, 1181, 1182, 1172, 97, + 1172, 1172, 1172, 1172, 1172, 1172, 97, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1159, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1166, - 1166, 1166, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1173, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1180, 1180, 1180, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 1169, 1161, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1170, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1166, 1166, 1166, 1157, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1183, 1175, + 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1175, 1184, 1175, 1175, 1175, 1175, 1175, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1161, - 1161, 1161, 1161, 1161, 1171, 1169, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1172, 1170, 1161, 1161, 1161, + 1175, 1175, 1180, 1180, 1180, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1175, 1175, 1175, + 1175, 1175, 1185, 1183, 1175, 1175, 1175, 1175, 1175, 1175, - 1161, 1166, 1166, 1166, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1161, 1161, 1161, 1161, 1161, 1161, - 1161, 1161, 1161, 1161, 1161, 1161, 1166, 1166, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, + 1175, 1175, 1175, 1186, 1184, 1175, 1175, 1175, 1175, 1180, + 1180, 1180, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1175, 1175, 1175, 1175, 1175, 1175, + 1175, 1175, 1175, 1175, 1175, 1175, 1180, 1180, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1161, 1161, 1161, 1161, 1161, 1161, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1161, 1161, 1161, 1161, 1161, 1161, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1175, 1175, 1175, 1175, 1175, + 1175, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1175, 1175, 1175, 1175, 1175, + 1175, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1172, 1172, 1172, 1172, 1172, 1172, 1172, - 1157, 1157, 1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1158, 1158, 1157, 1157, 1157, 1157, 1157, - 1157, 1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1157, - 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, - 1158, 1158, 1158, 1157, 1157, 1157, 1157, 1157, 1158, 1158, - 1158, 1158, 1158, 1157, 1157, 1157, 1157, 1157, 1158, 1158, + 1172, 1172, 1172, 1172, 1172, 1171, 1171, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1172, 1172, 1172, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, + 1172, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1171, + 1171, 1171, 1171, 1171, 1171, 1171, 1172, 1172, 1172, 1172, + 1172, 1172, 1172, 1171, 1171, 1171, 1171, 1171, 1171, 1171, + 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1171, 1171, 1171, - 1158, 1158, 1158, 1157, 1157, 1157, 1157, 1158, 1158, 1158, - 1158, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158, 1157, - 1157, 1157, 1158, 1158, 1158, 1157, 1157, 1157, 1158, 1158, - 1158, 1157, 1157, 1157, 1158, 1158, 1158, 1157, 1157, 1158, - 1158, 1157, 1157, 1158, 1158, 1157, 1158, 1157, 1158, 0, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150 + 1171, 1171, 1172, 1172, 1172, 1172, 1172, 1171, 1171, 1171, + 1171, 1171, 1172, 1172, 1172, 1172, 1172, 1171, 1171, 1171, + 1171, 1172, 1172, 1172, 1172, 1171, 1171, 1171, 1171, 1172, + 1172, 1172, 1172, 1171, 1171, 1171, 1172, 1172, 1172, 1171, + 1171, 1171, 1172, 1172, 1172, 1171, 1171, 1171, 1172, 1172, + 1172, 1171, 1171, 1172, 1172, 1171, 1171, 1172, 1172, 1171, + 1172, 1171, 1172, 0, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164 } ; -static yyconst flex_int16_t yy_nxt[2142] = +static yyconst short int yy_nxt[2155] = { 0, 21, 22, 23, 24, 25, 21, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, @@ -826,29 +751,29 @@ static yyconst flex_int16_t yy_nxt[2142] = 102, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 115, 87, 87, 87, 87, 116, 117, 118, 119, 120, 210, 248, 189, 190, 215, 249, 191, 220, 221, - 380, 121, 122, 189, 190, 211, 216, 191, 192, 123, - 124, 125, 126, 127, 128, 381, 129, 130, 192, 900, + 382, 121, 122, 189, 190, 211, 216, 191, 192, 123, + 124, 125, 126, 127, 128, 383, 129, 130, 192, 903, 131, 132, 133, 134, 135, 136, 232, 137, 138, 233, - 139, 223, 224, 229, 271, 246, 230, 237, 271, 140, + 139, 223, 224, 229, 272, 246, 230, 237, 272, 140, 87, 87, 87, 87, 87, 247, 238, 252, 231, 141, 253, 254, 142, 74, 74, 20, 74, 74, 74, 143, - 74, 74, 74, 74, 74, 144, 74, 145, 193, 901, + 74, 74, 74, 74, 74, 144, 74, 145, 193, 904, 121, 122, 74, 74, 74, 147, 74, 74, 193, 217, - 217, 210, 225, 234, 226, 239, 250, 235, 240, 272, - 284, 241, 227, 272, 255, 211, 251, 218, 279, 218, - 228, 236, 307, 74, 256, 74, 74, 375, 258, 280, - 308, 259, 260, 376, 277, 220, 221, 284, 261, 391, - 262, 223, 224, 263, 392, 902, 218, 264, 218, 74, + 217, 210, 225, 234, 226, 239, 250, 235, 240, 273, + 285, 241, 227, 273, 255, 211, 251, 218, 280, 218, + 228, 236, 308, 74, 256, 74, 74, 314, 258, 281, + 309, 259, 260, 405, 278, 220, 221, 285, 261, 315, + 262, 223, 224, 263, 264, 905, 218, 265, 218, 74, 74, 74, 74, 74, 20, 74, 74, 74, 143, 74, 74, 74, 74, 74, 144, 74, 145, 217, 217, 121, - 122, 74, 74, 74, 147, 74, 74, 278, 415, 309, - 416, 295, 403, 295, 333, 218, 326, 218, 296, 310, - 295, 297, 295, 322, 334, 327, 323, 219, 273, 273, - 273, 903, 74, 298, 74, 74, 422, 273, 273, 295, - 296, 295, 328, 297, 218, 329, 218, 338, 330, 273, - 339, 340, 697, 423, 219, 321, 273, 273, 74, 74, + 122, 74, 74, 74, 147, 74, 74, 279, 417, 310, + 418, 296, 408, 296, 335, 218, 328, 218, 297, 311, + 296, 298, 296, 324, 336, 329, 325, 219, 274, 274, + 274, 393, 74, 299, 74, 74, 394, 274, 274, 296, + 297, 296, 330, 298, 218, 331, 218, 340, 332, 274, + 341, 342, 906, 907, 219, 323, 274, 274, 74, 74, 74, 21, 22, 148, 24, 21, 149, 150, 27, 28, 29, 30, 151, 152, 153, 154, 155, 156, 157, 158, @@ -858,142 +783,142 @@ static yyconst flex_int16_t yy_nxt[2142] = 155, 175, 155, 176, 21, 155, 177, 178, 179, 166, 180, 181, 155, 155, 155, 155, 182, 155, 183, 184, 185, 155, 186, 187, 155, 155, 155, 70, 71, 72, - 188, 21, 189, 190, 21, 21, 191, 904, 21, 21, - 21, 21, 21, 21, 195, 21, 403, 192, 21, 21, - 195, 195, 21, 21, 21, 21, 299, 295, 905, 295, - 300, 309, 295, 449, 295, 450, 341, 273, 295, 324, + 188, 21, 189, 190, 21, 21, 191, 908, 21, 21, + 21, 21, 21, 21, 195, 21, 405, 192, 21, 21, + 195, 195, 21, 21, 21, 21, 300, 296, 405, 296, + 301, 310, 296, 451, 296, 452, 343, 274, 296, 326, - 295, 337, 273, 325, 301, 273, 312, 284, 273, 273, - 273, 21, 21, 21, 21, 273, 273, 301, 319, 302, - 320, 335, 314, 366, 493, 336, 472, 906, 292, 308, - 403, 404, 403, 358, 284, 293, 294, 196, 21, 197, - 21, 21, 189, 190, 21, 21, 191, 284, 21, 21, - 21, 21, 21, 21, 195, 21, 403, 192, 21, 21, - 195, 195, 21, 21, 21, 21, 699, 317, 317, 343, - 366, 666, 344, 313, 284, 369, 366, 667, 405, 345, - 358, 346, 396, 374, 347, 285, 358, 285, 348, 370, - 366, 21, 21, 21, 21, 397, 371, 318, 366, 429, + 296, 339, 274, 327, 302, 274, 313, 285, 274, 274, + 274, 21, 21, 21, 21, 274, 274, 302, 321, 303, + 322, 337, 316, 368, 377, 338, 566, 909, 293, 309, + 378, 406, 910, 360, 285, 294, 295, 196, 21, 197, + 21, 21, 189, 190, 21, 21, 191, 285, 21, 21, + 21, 21, 21, 21, 195, 21, 911, 192, 21, 21, + 195, 195, 21, 21, 21, 21, 368, 319, 319, 371, + 368, 372, 368, 368, 285, 398, 360, 511, 373, 376, + 360, 405, 360, 360, 484, 286, 345, 286, 399, 346, + 314, 21, 21, 21, 21, 437, 347, 320, 348, 912, - 358, 484, 430, 403, 431, 406, 440, 907, 358, 441, - 485, 515, 432, 516, 285, 442, 285, 196, 21, 197, - 21, 21, 189, 190, 318, 25, 191, 385, 21, 21, - 21, 21, 403, 21, 195, 908, 435, 192, 21, 21, - 195, 195, 21, 21, 21, 317, 317, 366, 366, 436, - 476, 366, 366, 507, 909, 403, 560, 358, 358, 372, - 481, 358, 358, 285, 480, 285, 502, 497, 373, 478, - 562, 503, 21, 295, 366, 295, 910, 506, 383, 504, - 199, 386, 200, 273, 358, 366, 201, 384, 387, 911, - 273, 273, 285, 390, 285, 358, 912, 202, 21, 203, + 487, 349, 315, 385, 442, 350, 913, 443, 438, 488, + 914, 915, 386, 444, 286, 424, 286, 196, 21, 197, + 21, 21, 189, 190, 320, 25, 191, 407, 21, 21, + 21, 21, 425, 21, 195, 405, 483, 192, 21, 21, + 195, 195, 21, 21, 21, 319, 319, 368, 368, 510, + 479, 368, 368, 497, 519, 475, 520, 360, 360, 374, + 368, 360, 360, 286, 368, 286, 431, 501, 375, 432, + 360, 433, 405, 296, 360, 296, 405, 387, 405, 434, + 199, 388, 200, 274, 565, 368, 201, 916, 389, 917, + 274, 274, 286, 392, 286, 360, 918, 202, 21, 203, - 21, 21, 189, 190, 561, 25, 191, 913, 21, 21, - 21, 21, 403, 21, 195, 914, 403, 192, 21, 21, - 195, 195, 21, 21, 21, 366, 388, 217, 217, 403, - 208, 484, 208, 389, 509, 358, 403, 682, 282, 282, - 485, 366, 528, 683, 463, 218, 463, 218, 915, 698, - 916, 358, 21, 295, 917, 295, 1150, 918, 1150, 208, - 199, 208, 200, 273, 919, 803, 201, 802, 284, 920, - 466, 273, 921, 463, 218, 463, 218, 202, 21, 203, - 21, 209, 209, 922, 877, 1150, 295, 1150, 467, 209, - 209, 209, 209, 209, 209, 284, 273, 295, 923, 295, + 21, 21, 189, 190, 919, 25, 191, 920, 21, 21, + 21, 21, 921, 21, 195, 704, 703, 192, 21, 21, + 195, 195, 21, 21, 21, 564, 390, 217, 217, 672, + 208, 368, 208, 391, 296, 673, 296, 506, 283, 283, + 481, 360, 507, 688, 274, 218, 922, 218, 532, 689, + 508, 469, 274, 296, 405, 470, 1164, 923, 1164, 208, + 199, 208, 200, 274, 487, 405, 201, 513, 285, 924, + 274, 274, 405, 488, 218, 925, 218, 202, 21, 203, + 21, 209, 209, 405, 926, 1164, 296, 1164, 296, 209, + 209, 209, 209, 209, 209, 285, 274, 296, 405, 296, - 295, 924, 295, 273, 273, 925, 366, 273, 926, 927, - 273, 317, 317, 928, 273, 273, 358, 273, 473, 209, - 209, 209, 209, 209, 209, 274, 274, 929, 403, 285, - 295, 285, 295, 274, 274, 274, 274, 274, 274, 295, - 273, 295, 366, 474, 366, 366, 403, 273, 273, 273, - 403, 544, 358, 403, 358, 358, 273, 273, 285, 530, - 285, 531, 930, 274, 274, 274, 274, 274, 274, 281, - 281, 285, 931, 285, 804, 489, 366, 282, 283, 282, - 283, 282, 282, 932, 284, 933, 358, 285, 934, 285, - 546, 284, 878, 935, 936, 937, 938, 941, 939, 286, + 296, 705, 296, 274, 274, 810, 368, 274, 811, 405, + 274, 466, 927, 466, 274, 476, 360, 274, 274, 209, + 209, 209, 209, 209, 209, 275, 275, 928, 929, 812, + 286, 930, 286, 275, 275, 275, 275, 275, 275, 296, + 466, 296, 466, 477, 931, 493, 887, 932, 933, 274, + 368, 548, 368, 319, 319, 888, 274, 274, 934, 286, + 360, 286, 360, 275, 275, 275, 275, 275, 275, 282, + 282, 286, 935, 286, 936, 368, 368, 283, 284, 283, + 284, 283, 283, 937, 285, 360, 360, 286, 296, 286, + 296, 285, 534, 535, 938, 550, 939, 551, 274, 287, - 285, 942, 285, 940, 943, 944, 945, 282, 283, 282, - 283, 282, 282, 295, 284, 295, 285, 946, 285, 947, - 284, 547, 948, 273, 949, 950, 286, 288, 288, 614, - 273, 273, 951, 952, 953, 288, 289, 288, 290, 288, - 288, 295, 291, 295, 954, 955, 292, 956, 621, 291, - 957, 273, 960, 293, 294, 958, 961, 291, 273, 273, - 959, 962, 963, 964, 965, 288, 295, 288, 295, 288, - 288, 966, 291, 967, 968, 969, 970, 971, 291, 972, - 973, 974, 975, 976, 291, 316, 316, 977, 978, 979, - 980, 981, 982, 316, 316, 316, 316, 316, 316, 983, + 286, 940, 286, 941, 619, 274, 274, 283, 284, 283, + 284, 283, 283, 405, 285, 296, 286, 296, 286, 405, + 285, 942, 626, 943, 944, 274, 287, 289, 289, 945, + 946, 947, 274, 274, 948, 289, 290, 289, 291, 289, + 289, 949, 292, 950, 953, 951, 293, 954, 955, 292, + 952, 956, 957, 294, 295, 958, 959, 292, 960, 961, + 962, 963, 964, 965, 966, 289, 296, 289, 296, 289, + 289, 967, 292, 968, 969, 970, 971, 972, 292, 974, + 975, 976, 973, 977, 292, 318, 318, 978, 979, 980, + 981, 982, 983, 318, 318, 318, 318, 318, 318, 984, - 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, - 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, - 1004, 1005, 1006, 316, 316, 316, 316, 316, 316, 355, - 355, 1007, 1008, 1009, 1010, 1011, 1012, 355, 355, 355, - 355, 355, 355, 1013, 1014, 1015, 1016, 1017, 1018, 1019, - 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, - 1030, 1031, 1032, 1033, 1034, 1035, 1036, 355, 355, 355, - 355, 355, 355, 359, 359, 1037, 1038, 1039, 1040, 1041, - 1042, 359, 359, 359, 359, 359, 359, 1043, 1044, 1045, - 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, + 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, + 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, + 1005, 1006, 1007, 318, 318, 318, 318, 318, 318, 357, + 357, 1008, 1009, 1010, 1011, 1012, 1013, 357, 357, 357, + 357, 357, 357, 1014, 1015, 1016, 1017, 1018, 1019, 1020, + 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, + 1031, 1032, 1033, 1034, 1035, 1036, 1037, 357, 357, 357, + 357, 357, 357, 361, 361, 1038, 1039, 1040, 1041, 1042, + 1043, 361, 361, 361, 361, 361, 361, 1044, 1045, 1046, + 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, - 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, - 1066, 359, 359, 359, 359, 359, 359, 364, 364, 1067, - 1068, 1069, 1070, 1073, 1074, 364, 365, 364, 366, 364, - 364, 1071, 367, 1075, 1076, 1072, 368, 1077, 1079, 367, - 1080, 1078, 1081, 1082, 1083, 1084, 1085, 367, 1086, 1087, - 1088, 1089, 1090, 1091, 1092, 364, 366, 364, 366, 364, - 364, 1093, 367, 1094, 1095, 1096, 1097, 1098, 367, 1099, - 1100, 1101, 1102, 1103, 367, 209, 209, 1104, 1105, 1106, - 1107, 1108, 1109, 209, 209, 209, 209, 209, 209, 1110, - 1111, 1112, 1113, 218, 1114, 218, 1115, 1116, 1117, 1118, + 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, + 1067, 361, 361, 361, 361, 361, 361, 366, 366, 1068, + 1069, 1070, 1071, 1072, 1073, 366, 367, 366, 368, 366, + 366, 1074, 369, 1075, 1076, 1077, 370, 1078, 1079, 369, + 1080, 1081, 1082, 1083, 1084, 1085, 1087, 369, 1088, 1086, + 1089, 1090, 1093, 1094, 1095, 366, 368, 366, 368, 366, + 366, 1091, 369, 1096, 1097, 1092, 1098, 1099, 369, 1100, + 1101, 1102, 1103, 1104, 369, 209, 209, 1105, 1106, 1107, + 1108, 1109, 1110, 209, 209, 209, 209, 209, 209, 1111, + 1112, 1113, 1114, 218, 1115, 218, 1116, 1117, 1118, 1119, - 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, - 1129, 1130, 1131, 209, 209, 209, 209, 209, 209, 1132, - 1133, 1134, 218, 1135, 218, 274, 274, 1136, 1137, 1138, - 1139, 1140, 1141, 274, 274, 274, 274, 274, 274, 1142, - 1143, 1144, 1145, 463, 1146, 463, 1147, 1148, 1149, 465, - 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, - 889, 888, 887, 274, 274, 274, 274, 274, 274, 886, - 885, 884, 463, 883, 463, 355, 355, 882, 881, 880, - 879, 403, 876, 355, 355, 355, 355, 355, 355, 875, - 874, 873, 872, 526, 871, 526, 870, 869, 868, 867, + 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, + 1130, 1131, 1132, 209, 209, 209, 209, 209, 209, 1133, + 1134, 1135, 218, 1136, 218, 275, 275, 1137, 1138, 1139, + 1140, 1141, 1142, 275, 275, 275, 275, 275, 275, 1143, + 1144, 1145, 1146, 466, 1147, 466, 1148, 1149, 1150, 1151, + 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, + 1162, 1163, 468, 275, 275, 275, 275, 275, 275, 902, + 901, 900, 466, 899, 466, 357, 357, 898, 897, 896, + 895, 894, 893, 357, 357, 357, 357, 357, 357, 892, + 891, 890, 889, 530, 405, 530, 886, 885, 884, 883, - 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, - 856, 855, 854, 355, 355, 355, 355, 355, 355, 853, - 852, 851, 526, 850, 526, 359, 359, 849, 848, 847, - 846, 845, 844, 359, 359, 359, 359, 359, 359, 843, - 842, 841, 840, 527, 839, 527, 838, 837, 836, 835, - 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, - 824, 823, 822, 359, 359, 359, 359, 359, 359, 821, - 820, 819, 527, 818, 527, 785, 785, 817, 785, 785, - 785, 816, 785, 785, 785, 785, 785, 815, 785, 814, - 813, 812, 811, 810, 809, 785, 785, 785, 785, 785, + 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, + 872, 871, 870, 357, 357, 357, 357, 357, 357, 869, + 868, 867, 530, 866, 530, 361, 361, 865, 864, 863, + 862, 861, 860, 361, 361, 361, 361, 361, 361, 859, + 858, 857, 856, 531, 855, 531, 854, 853, 852, 851, + 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, + 840, 839, 838, 361, 361, 361, 361, 361, 361, 837, + 836, 835, 531, 834, 531, 793, 793, 833, 793, 793, + 793, 832, 793, 793, 793, 793, 793, 831, 793, 830, + 829, 828, 827, 826, 825, 793, 793, 793, 793, 793, - 808, 807, 806, 805, 801, 800, 799, 798, 795, 794, - 793, 792, 791, 790, 789, 788, 787, 784, 783, 782, - 781, 780, 779, 778, 777, 776, 775, 774, 785, 773, - 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, - 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, - 752, 785, 785, 785, 796, 796, 751, 796, 796, 796, - 750, 796, 796, 796, 796, 796, 749, 796, 748, 747, - 746, 745, 744, 743, 796, 796, 796, 796, 796, 742, - 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, - 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, + 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, + 814, 813, 809, 808, 807, 806, 803, 802, 801, 800, + 799, 798, 797, 796, 795, 792, 791, 790, 793, 789, + 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, + 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, + 768, 793, 793, 793, 804, 804, 767, 804, 804, 804, + 766, 804, 804, 804, 804, 804, 765, 804, 764, 763, + 762, 761, 760, 759, 804, 804, 804, 804, 804, 758, + 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, + 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, - 721, 720, 719, 718, 717, 716, 715, 796, 714, 713, - 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, - 702, 701, 700, 696, 695, 694, 693, 692, 691, 690, - 796, 796, 796, 785, 785, 689, 785, 785, 785, 688, - 785, 785, 785, 785, 785, 687, 785, 686, 685, 684, - 681, 680, 679, 785, 785, 785, 785, 785, 678, 677, - 676, 675, 674, 673, 672, 671, 670, 669, 668, 665, - 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, - 654, 653, 652, 651, 650, 649, 785, 648, 647, 646, - 645, 644, 643, 642, 641, 640, 639, 621, 638, 637, + 737, 736, 735, 734, 733, 732, 731, 804, 730, 729, + 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, + 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, + 804, 804, 804, 793, 793, 708, 793, 793, 793, 707, + 793, 793, 793, 793, 793, 706, 793, 702, 701, 700, + 699, 698, 697, 793, 793, 793, 793, 793, 696, 695, + 694, 693, 692, 691, 690, 687, 686, 685, 684, 683, + 682, 681, 680, 679, 678, 677, 676, 675, 674, 671, + 670, 669, 668, 667, 666, 665, 793, 664, 663, 662, + 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, - 636, 614, 635, 634, 633, 632, 631, 630, 629, 785, - 785, 785, 796, 796, 628, 796, 796, 796, 627, 796, - 796, 796, 796, 796, 626, 796, 625, 624, 623, 622, - 620, 619, 796, 796, 796, 796, 796, 618, 617, 616, - 615, 613, 612, 611, 610, 609, 608, 607, 606, 605, - 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, - 594, 593, 592, 591, 590, 796, 589, 588, 587, 586, - 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, - 575, 574, 573, 572, 571, 570, 569, 568, 796, 796, - 796, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 651, 650, 649, 648, 647, 646, 645, 626, 644, 793, + 793, 793, 804, 804, 643, 804, 804, 804, 642, 804, + 804, 804, 804, 804, 619, 804, 641, 640, 639, 638, + 637, 636, 804, 804, 804, 804, 804, 635, 634, 633, + 632, 631, 630, 629, 628, 627, 625, 624, 623, 622, + 621, 620, 618, 617, 616, 615, 614, 613, 612, 611, + 610, 609, 608, 607, 606, 804, 605, 604, 603, 602, + 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, + 591, 590, 589, 588, 587, 586, 585, 584, 804, 804, + 804, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 21, 21, 21, 21, 21, 21, 21, @@ -1001,52 +926,53 @@ static yyconst flex_int16_t yy_nxt[2142] = 194, 194, 194, 194, 194, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 208, 208, 208, - 208, 208, 208, 208, 208, 273, 567, 273, 273, 273, - 273, 273, 273, 354, 566, 565, 564, 563, 354, 354, - 354, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 358, 402, 358, 403, 358, 358, 358, 358, + 208, 208, 208, 208, 208, 274, 583, 274, 274, 274, + 274, 274, 274, 356, 582, 581, 580, 579, 356, 356, + 356, 358, 358, 358, 358, 358, 358, 358, 358, 358, + 358, 358, 360, 578, 360, 577, 360, 360, 360, 360, - 360, 399, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 363, 559, 363, 363, 363, 363, 363, 363, 363, - 363, 363, 400, 558, 400, 400, 400, 400, 400, 400, - 400, 400, 400, 401, 557, 401, 402, 402, 402, 556, - 555, 402, 402, 554, 402, 464, 553, 464, 464, 464, - 464, 464, 464, 786, 552, 786, 786, 786, 786, 786, - 786, 786, 786, 786, 797, 551, 797, 797, 797, 797, - 797, 797, 797, 797, 797, 785, 550, 785, 785, 785, - 785, 785, 785, 785, 785, 785, 796, 549, 796, 796, - 796, 796, 796, 796, 796, 796, 796, 548, 545, 543, + 362, 576, 362, 362, 362, 362, 362, 362, 362, 362, + 362, 365, 575, 365, 365, 365, 365, 365, 365, 365, + 365, 365, 402, 574, 402, 402, 402, 402, 402, 402, + 402, 402, 402, 403, 573, 403, 404, 404, 404, 572, + 571, 404, 404, 570, 404, 467, 569, 467, 467, 467, + 467, 467, 467, 794, 568, 794, 794, 794, 794, 794, + 794, 794, 794, 794, 805, 567, 805, 805, 805, 805, + 805, 805, 805, 805, 805, 793, 404, 793, 793, 793, + 793, 793, 793, 793, 793, 793, 804, 405, 804, 804, + 804, 804, 804, 804, 804, 804, 804, 401, 563, 562, - 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, - 532, 529, 357, 525, 524, 489, 523, 522, 521, 520, - 519, 518, 517, 514, 513, 512, 511, 510, 508, 505, - 501, 500, 499, 498, 496, 495, 473, 494, 492, 491, - 466, 490, 488, 487, 486, 483, 482, 481, 480, 479, - 478, 477, 476, 475, 472, 471, 470, 469, 468, 462, - 461, 460, 459, 458, 457, 456, 455, 454, 453, 452, - 451, 448, 447, 446, 445, 444, 443, 439, 438, 437, - 434, 433, 428, 427, 426, 425, 424, 421, 420, 419, - 418, 417, 414, 413, 412, 411, 410, 409, 408, 407, + 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, + 549, 547, 546, 545, 544, 543, 542, 541, 540, 539, + 538, 537, 536, 533, 359, 529, 528, 493, 527, 526, + 525, 524, 523, 522, 521, 518, 517, 516, 515, 514, + 512, 509, 505, 504, 503, 502, 500, 499, 476, 498, + 496, 495, 469, 494, 492, 491, 490, 489, 486, 485, + 484, 483, 482, 481, 480, 479, 478, 475, 474, 473, + 472, 471, 465, 464, 463, 462, 461, 460, 459, 458, + 457, 456, 455, 454, 453, 450, 449, 448, 447, 446, + 445, 441, 440, 439, 436, 435, 430, 429, 428, 427, - 207, 204, 403, 279, 399, 398, 395, 394, 393, 382, - 379, 378, 377, 287, 362, 277, 276, 361, 357, 353, - 352, 351, 350, 349, 342, 332, 331, 315, 313, 312, - 311, 306, 305, 304, 303, 287, 276, 275, 207, 205, - 204, 270, 269, 268, 267, 266, 265, 257, 245, 244, - 243, 242, 222, 214, 213, 212, 207, 205, 204, 1150, - 19, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, + 426, 423, 422, 421, 420, 419, 416, 415, 414, 413, + 412, 411, 410, 409, 207, 204, 405, 280, 401, 400, + 397, 396, 395, 384, 381, 380, 379, 288, 364, 278, + 277, 363, 359, 355, 354, 353, 352, 351, 344, 334, + 333, 317, 313, 312, 307, 306, 305, 304, 288, 277, + 276, 207, 205, 204, 271, 270, 269, 268, 267, 266, + 257, 245, 244, 243, 242, 222, 214, 213, 212, 207, + 205, 204, 1164, 19, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150 + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164 } ; -static yyconst flex_int16_t yy_chk[2142] = +static yyconst short int yy_chk[2155] = { 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, @@ -1067,28 +993,28 @@ static yyconst flex_int16_t yy_chk[2142] = 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 28, 56, 13, 13, 36, 56, 13, 41, 41, 173, 7, 7, 14, 14, 28, 36, 14, 13, 7, - 7, 7, 7, 7, 7, 173, 7, 7, 14, 833, + 7, 7, 7, 7, 7, 173, 7, 7, 14, 832, 7, 7, 7, 7, 7, 7, 47, 7, 7, 47, 7, 43, 43, 46, 71, 55, 46, 49, 117, 7, 7, 7, 7, 7, 7, 55, 49, 58, 46, 7, 58, 58, 7, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 13, 834, + 9, 9, 9, 9, 9, 9, 9, 9, 13, 833, 9, 9, 9, 9, 9, 9, 9, 9, 14, 38, 38, 80, 45, 48, 45, 50, 57, 48, 50, 71, 90, 50, 45, 117, 59, 80, 57, 38, 88, 38, - 45, 48, 107, 9, 59, 9, 9, 169, 61, 88, - 107, 61, 61, 169, 86, 93, 93, 90, 61, 182, - 61, 95, 95, 61, 182, 836, 38, 61, 38, 9, + 45, 48, 107, 9, 59, 9, 9, 111, 61, 88, + 107, 61, 61, 201, 86, 93, 93, 90, 61, 111, + 61, 95, 95, 61, 61, 834, 38, 61, 38, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 37, 37, 10, 10, 10, 10, 10, 10, 10, 10, 86, 232, 108, - 232, 98, 560, 98, 131, 37, 127, 37, 98, 108, + 232, 98, 201, 98, 131, 37, 127, 37, 98, 108, 99, 98, 99, 125, 131, 127, 125, 37, 98, 98, - 99, 837, 10, 99, 10, 10, 238, 99, 99, 102, + 99, 182, 10, 99, 10, 10, 182, 99, 99, 102, 124, 102, 128, 124, 37, 128, 37, 134, 128, 102, - 134, 134, 560, 238, 37, 124, 102, 102, 10, 10, + 134, 134, 835, 836, 37, 124, 102, 102, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, @@ -1098,200 +1024,198 @@ static yyconst flex_int16_t yy_chk[2142] = 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 15, 15, 15, 15, 15, 15, 838, 15, 15, + 11, 15, 15, 15, 15, 15, 15, 837, 15, 15, 15, 15, 15, 15, 15, 15, 199, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 100, 100, 839, 100, + 15, 15, 15, 15, 15, 15, 100, 100, 408, 100, 100, 133, 114, 258, 114, 258, 135, 100, 101, 126, 101, 133, 114, 126, 100, 100, 135, 158, 101, 114, 114, 15, 15, 15, 15, 101, 101, 126, 123, 101, - 123, 132, 114, 166, 322, 132, 322, 840, 123, 132, - 562, 199, 200, 166, 158, 123, 123, 15, 15, 15, - 15, 16, 16, 16, 16, 16, 16, 281, 16, 16, - 16, 16, 16, 16, 16, 16, 201, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 562, 121, 121, 137, - 168, 529, 137, 137, 281, 164, 164, 529, 200, 137, - 168, 137, 186, 168, 137, 121, 164, 121, 137, 165, - 165, 16, 16, 16, 16, 186, 165, 121, 178, 244, + 123, 132, 114, 166, 169, 132, 408, 840, 123, 132, + 169, 199, 841, 166, 158, 123, 123, 15, 15, 15, + 15, 16, 16, 16, 16, 16, 16, 282, 16, 16, + 16, 16, 16, 16, 16, 16, 842, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 168, 121, 121, 164, + 164, 165, 165, 177, 282, 186, 168, 337, 165, 168, + 164, 200, 165, 177, 337, 121, 137, 121, 186, 137, + 137, 16, 16, 16, 16, 247, 137, 121, 137, 843, - 165, 310, 244, 404, 244, 201, 251, 842, 178, 251, - 310, 343, 244, 343, 121, 251, 121, 16, 16, 16, - 16, 17, 17, 17, 121, 17, 17, 178, 17, 17, - 17, 17, 406, 17, 17, 843, 247, 17, 17, 17, - 17, 17, 17, 17, 17, 122, 122, 167, 177, 247, - 327, 181, 179, 335, 844, 405, 404, 167, 177, 167, - 335, 181, 179, 122, 334, 122, 332, 327, 167, 332, - 406, 332, 17, 288, 364, 288, 845, 334, 177, 332, - 17, 179, 17, 288, 364, 180, 17, 177, 179, 846, - 288, 288, 122, 181, 122, 180, 847, 17, 17, 17, + 311, 137, 137, 177, 251, 137, 845, 251, 247, 311, + 846, 847, 177, 251, 121, 238, 121, 16, 16, 16, + 16, 17, 17, 17, 121, 17, 17, 200, 17, 17, + 17, 17, 238, 17, 17, 407, 336, 17, 17, 17, + 17, 17, 17, 17, 17, 122, 122, 167, 178, 336, + 329, 181, 179, 324, 345, 324, 345, 167, 178, 167, + 366, 181, 179, 122, 368, 122, 244, 329, 167, 244, + 366, 244, 406, 289, 368, 289, 564, 178, 565, 244, + 17, 179, 17, 289, 407, 180, 17, 848, 179, 849, + 289, 289, 122, 181, 122, 180, 851, 17, 17, 17, - 17, 18, 18, 18, 405, 18, 18, 848, 18, 18, - 18, 18, 561, 18, 18, 850, 697, 18, 18, 18, - 18, 18, 18, 18, 18, 365, 180, 217, 217, 698, - 219, 337, 219, 180, 337, 365, 802, 545, 282, 282, - 337, 366, 365, 545, 316, 217, 316, 217, 851, 561, - 852, 366, 18, 289, 855, 289, 282, 857, 282, 219, - 18, 219, 18, 289, 858, 698, 18, 697, 282, 859, - 289, 289, 860, 316, 217, 316, 217, 18, 18, 18, - 18, 26, 26, 861, 802, 282, 290, 282, 290, 26, - 26, 26, 26, 26, 26, 282, 290, 295, 864, 295, + 17, 18, 18, 18, 852, 18, 18, 853, 18, 18, + 18, 18, 854, 18, 18, 565, 564, 18, 18, 18, + 18, 18, 18, 18, 18, 406, 180, 217, 217, 533, + 219, 367, 219, 180, 290, 533, 290, 334, 283, 283, + 334, 367, 334, 549, 290, 217, 855, 217, 367, 549, + 334, 290, 290, 291, 703, 291, 283, 856, 283, 219, + 18, 219, 18, 291, 339, 566, 18, 339, 283, 857, + 291, 291, 704, 339, 217, 858, 217, 18, 18, 18, + 18, 26, 26, 705, 860, 283, 296, 283, 296, 26, + 26, 26, 26, 26, 26, 283, 296, 300, 810, 300, - 299, 865, 299, 290, 290, 866, 383, 295, 870, 871, - 299, 317, 317, 872, 295, 295, 383, 299, 299, 26, - 26, 26, 26, 26, 26, 78, 78, 876, 699, 317, - 314, 317, 314, 78, 78, 78, 78, 78, 78, 300, - 314, 300, 369, 300, 370, 385, 803, 314, 314, 300, - 877, 383, 369, 878, 370, 385, 300, 300, 317, 369, - 317, 370, 879, 78, 78, 78, 78, 78, 78, 89, - 89, 465, 880, 465, 699, 314, 386, 89, 89, 89, - 89, 89, 89, 881, 89, 882, 386, 89, 884, 89, - 385, 89, 803, 885, 887, 888, 889, 894, 891, 89, + 316, 566, 316, 296, 296, 703, 385, 300, 704, 811, + 316, 318, 861, 318, 300, 300, 385, 316, 316, 26, + 26, 26, 26, 26, 26, 78, 78, 862, 865, 705, + 468, 867, 468, 78, 78, 78, 78, 78, 78, 301, + 318, 301, 318, 301, 868, 316, 810, 869, 870, 301, + 387, 385, 388, 319, 319, 811, 301, 301, 871, 468, + 387, 468, 388, 78, 78, 78, 78, 78, 78, 89, + 89, 319, 874, 319, 875, 371, 372, 89, 89, 89, + 89, 89, 89, 876, 89, 371, 372, 89, 470, 89, + 470, 89, 371, 372, 880, 387, 881, 388, 470, 89, - 465, 895, 465, 891, 896, 899, 900, 89, 89, 89, - 89, 89, 89, 467, 89, 467, 89, 901, 89, 902, - 89, 386, 904, 467, 905, 906, 89, 97, 97, 467, - 467, 467, 909, 910, 911, 97, 97, 97, 97, 97, - 97, 474, 97, 474, 912, 913, 97, 914, 474, 97, - 916, 474, 920, 97, 97, 918, 921, 97, 474, 474, - 918, 924, 925, 926, 927, 97, 97, 97, 97, 97, - 97, 928, 97, 929, 931, 932, 933, 934, 97, 935, - 936, 938, 939, 940, 97, 120, 120, 941, 943, 945, - 947, 948, 950, 120, 120, 120, 120, 120, 120, 951, + 319, 882, 319, 886, 470, 470, 470, 89, 89, 89, + 89, 89, 89, 887, 89, 477, 89, 477, 89, 888, + 89, 889, 477, 890, 891, 477, 89, 97, 97, 892, + 894, 895, 477, 477, 897, 97, 97, 97, 97, 97, + 97, 898, 97, 899, 904, 901, 97, 905, 906, 97, + 901, 908, 910, 97, 97, 911, 912, 97, 913, 915, + 916, 917, 920, 921, 922, 97, 97, 97, 97, 97, + 97, 923, 97, 924, 925, 926, 928, 930, 97, 932, + 933, 936, 930, 937, 97, 120, 120, 938, 939, 940, + 941, 943, 944, 120, 120, 120, 120, 120, 120, 945, - 953, 954, 955, 956, 957, 958, 959, 960, 968, 969, - 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, - 980, 981, 982, 120, 120, 120, 120, 120, 120, 143, - 143, 983, 984, 985, 986, 987, 988, 143, 143, 143, - 143, 143, 143, 989, 990, 991, 992, 993, 994, 995, - 996, 997, 998, 999, 1000, 1002, 1003, 1004, 1005, 1006, + 946, 947, 948, 950, 951, 952, 953, 955, 958, 960, + 961, 963, 964, 967, 968, 969, 970, 971, 972, 973, + 974, 982, 983, 120, 120, 120, 120, 120, 120, 143, + 143, 984, 985, 986, 987, 988, 989, 143, 143, 143, + 143, 143, 143, 990, 991, 992, 993, 994, 995, 996, + 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 143, 143, 143, 143, 143, 143, 150, 150, 1014, 1016, 1017, 1018, 1019, - 1020, 150, 150, 150, 150, 150, 150, 1021, 1024, 1025, - 1026, 1027, 1028, 1030, 1031, 1032, 1033, 1034, 1035, 1037, + 1020, 150, 150, 150, 150, 150, 150, 1021, 1022, 1023, + 1024, 1025, 1026, 1027, 1028, 1030, 1031, 1032, 1033, 1034, - 1039, 1040, 1042, 1043, 1044, 1045, 1046, 1047, 1049, 1050, - 1052, 150, 150, 150, 150, 150, 150, 163, 163, 1053, - 1054, 1055, 1056, 1058, 1059, 163, 163, 163, 163, 163, - 163, 1057, 163, 1061, 1062, 1057, 163, 1063, 1064, 163, - 1065, 1063, 1066, 1067, 1068, 1070, 1071, 163, 1072, 1073, - 1074, 1077, 1078, 1081, 1082, 163, 163, 163, 163, 163, - 163, 1083, 163, 1084, 1085, 1086, 1087, 1088, 163, 1089, - 1090, 1091, 1092, 1093, 163, 209, 209, 1094, 1095, 1097, - 1098, 1099, 1101, 209, 209, 209, 209, 209, 209, 1102, - 1103, 1104, 1105, 209, 1106, 209, 1107, 1108, 1109, 1110, + 1035, 1038, 1039, 1040, 1041, 1042, 1044, 1045, 1046, 1047, + 1048, 150, 150, 150, 150, 150, 150, 163, 163, 1049, + 1051, 1053, 1054, 1056, 1057, 163, 163, 163, 163, 163, + 163, 1058, 163, 1059, 1060, 1061, 163, 1063, 1064, 163, + 1066, 1067, 1068, 1069, 1070, 1071, 1072, 163, 1073, 1071, + 1075, 1076, 1078, 1079, 1080, 163, 163, 163, 163, 163, + 163, 1077, 163, 1081, 1082, 1077, 1084, 1085, 163, 1086, + 1087, 1088, 1091, 1092, 163, 209, 209, 1095, 1096, 1097, + 1098, 1099, 1100, 209, 209, 209, 209, 209, 209, 1101, + 1102, 1103, 1104, 209, 1105, 209, 1106, 1107, 1108, 1109, - 1111, 1112, 1114, 1115, 1117, 1118, 1119, 1120, 1121, 1122, - 1123, 1124, 1125, 209, 209, 209, 209, 209, 209, 1126, - 1127, 1128, 209, 1129, 209, 274, 274, 1130, 1131, 1133, - 1134, 1136, 1137, 274, 274, 274, 274, 274, 274, 1138, - 1139, 1140, 1141, 274, 1143, 274, 1145, 1146, 1147, 1168, - 832, 831, 828, 827, 826, 825, 824, 823, 822, 819, - 818, 816, 814, 274, 274, 274, 274, 274, 274, 813, - 812, 810, 274, 809, 274, 355, 355, 808, 807, 806, - 805, 804, 801, 355, 355, 355, 355, 355, 355, 799, - 795, 794, 793, 355, 791, 355, 790, 788, 784, 783, + 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1119, 1120, 1121, + 1122, 1123, 1124, 209, 209, 209, 209, 209, 209, 1125, + 1126, 1128, 209, 1129, 209, 275, 275, 1131, 1132, 1133, + 1134, 1135, 1136, 275, 275, 275, 275, 275, 275, 1137, + 1138, 1139, 1140, 275, 1141, 275, 1142, 1143, 1144, 1145, + 1147, 1148, 1150, 1151, 1152, 1153, 1154, 1155, 1157, 1159, + 1160, 1161, 1182, 275, 275, 275, 275, 275, 275, 831, + 830, 827, 275, 826, 275, 357, 357, 824, 822, 821, + 820, 818, 817, 357, 357, 357, 357, 357, 357, 816, + 815, 814, 813, 357, 812, 357, 809, 807, 803, 802, - 782, 780, 779, 778, 777, 776, 773, 772, 770, 769, - 768, 767, 766, 355, 355, 355, 355, 355, 355, 765, - 763, 762, 355, 761, 355, 359, 359, 759, 757, 756, - 755, 754, 753, 359, 359, 359, 359, 359, 359, 752, - 751, 750, 749, 359, 748, 359, 746, 744, 743, 741, - 739, 738, 737, 736, 735, 734, 733, 731, 729, 728, - 727, 725, 724, 359, 359, 359, 359, 359, 359, 723, - 722, 721, 359, 720, 359, 673, 673, 719, 673, 673, - 673, 718, 673, 673, 673, 673, 673, 717, 673, 715, - 714, 712, 710, 709, 706, 673, 673, 673, 673, 673, + 801, 799, 798, 796, 792, 791, 790, 788, 787, 786, + 785, 784, 781, 357, 357, 357, 357, 357, 357, 780, + 778, 777, 357, 776, 357, 361, 361, 775, 774, 773, + 771, 770, 769, 361, 361, 361, 361, 361, 361, 767, + 765, 764, 763, 361, 762, 361, 761, 760, 759, 758, + 757, 756, 755, 753, 751, 750, 748, 746, 745, 744, + 743, 742, 741, 361, 361, 361, 361, 361, 361, 740, + 739, 737, 361, 735, 361, 679, 679, 734, 679, 679, + 679, 733, 679, 679, 679, 679, 679, 731, 679, 730, + 729, 728, 727, 726, 725, 679, 679, 679, 679, 679, - 705, 704, 703, 700, 696, 695, 693, 692, 688, 687, - 683, 682, 681, 680, 679, 677, 676, 672, 671, 667, - 666, 665, 664, 663, 662, 661, 660, 658, 673, 657, - 656, 654, 653, 652, 651, 650, 649, 647, 646, 645, - 644, 643, 642, 640, 639, 638, 637, 635, 634, 633, - 632, 673, 673, 673, 689, 689, 631, 689, 689, 689, - 630, 689, 689, 689, 689, 689, 629, 689, 627, 624, - 623, 622, 621, 620, 689, 689, 689, 689, 689, 618, - 616, 615, 613, 612, 611, 610, 609, 608, 607, 606, - 604, 603, 602, 601, 599, 598, 597, 596, 595, 594, + 724, 723, 721, 720, 718, 716, 715, 712, 711, 710, + 709, 706, 702, 701, 699, 698, 694, 693, 689, 688, + 687, 686, 685, 683, 682, 678, 677, 673, 679, 672, + 671, 670, 669, 668, 667, 666, 664, 663, 662, 660, + 659, 658, 657, 656, 655, 653, 652, 651, 650, 649, + 648, 679, 679, 679, 695, 695, 646, 695, 695, 695, + 645, 695, 695, 695, 695, 695, 644, 695, 643, 641, + 640, 639, 638, 637, 695, 695, 695, 695, 695, 636, + 635, 634, 632, 629, 628, 627, 626, 625, 623, 621, + 620, 618, 617, 616, 615, 614, 613, 612, 611, 610, - 593, 592, 590, 588, 587, 585, 584, 689, 582, 581, - 580, 579, 577, 576, 575, 574, 573, 572, 571, 569, - 567, 565, 563, 559, 558, 557, 556, 555, 554, 553, - 689, 689, 689, 786, 786, 552, 786, 786, 786, 551, - 786, 786, 786, 786, 786, 550, 786, 548, 547, 546, - 544, 543, 542, 786, 786, 786, 786, 786, 541, 540, - 539, 538, 537, 536, 535, 534, 532, 531, 530, 528, - 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, - 513, 512, 511, 510, 509, 508, 786, 506, 505, 504, - 503, 502, 500, 499, 498, 497, 496, 495, 494, 493, + 608, 607, 606, 605, 603, 602, 601, 695, 600, 599, + 598, 597, 596, 594, 592, 591, 589, 588, 586, 585, + 584, 583, 581, 580, 579, 578, 577, 576, 575, 573, + 695, 695, 695, 794, 794, 571, 794, 794, 794, 569, + 794, 794, 794, 794, 794, 567, 794, 563, 562, 561, + 560, 559, 558, 794, 794, 794, 794, 794, 557, 556, + 555, 554, 552, 551, 550, 548, 547, 546, 545, 544, + 543, 542, 541, 540, 539, 538, 536, 535, 534, 532, + 527, 526, 525, 524, 523, 522, 794, 521, 520, 519, + 518, 517, 516, 515, 514, 513, 512, 510, 509, 508, - 492, 491, 490, 489, 488, 487, 486, 485, 484, 786, - 786, 786, 797, 797, 483, 797, 797, 797, 480, 797, - 797, 797, 797, 797, 479, 797, 478, 477, 476, 475, - 473, 472, 797, 797, 797, 797, 797, 471, 470, 469, - 468, 466, 462, 459, 458, 457, 456, 455, 454, 453, - 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, - 442, 441, 440, 439, 438, 797, 436, 435, 434, 433, - 432, 431, 430, 429, 427, 426, 425, 424, 423, 422, - 421, 420, 419, 418, 417, 416, 415, 414, 797, 797, - 797, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, 1151, + 507, 506, 504, 503, 502, 501, 500, 499, 498, 794, + 794, 794, 805, 805, 497, 805, 805, 805, 496, 805, + 805, 805, 805, 805, 495, 805, 494, 493, 492, 491, + 490, 489, 805, 805, 805, 805, 805, 488, 487, 486, + 483, 482, 481, 480, 479, 478, 476, 475, 474, 473, + 472, 471, 469, 465, 462, 461, 460, 459, 458, 457, + 456, 455, 454, 453, 452, 805, 451, 450, 449, 448, + 447, 446, 445, 444, 443, 442, 441, 440, 438, 437, + 436, 435, 434, 433, 432, 431, 429, 428, 805, 805, + 805, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165, 1165, - 1151, 1151, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, - 1152, 1152, 1152, 1153, 1153, 1153, 1153, 1153, 1153, 1153, - 1153, 1153, 1153, 1153, 1154, 1154, 1154, 1154, 1154, 1154, - 1154, 1154, 1154, 1154, 1154, 1155, 1155, 1155, 1155, 1155, - 1155, 1155, 1155, 1155, 1155, 1155, 1156, 1156, 1156, 1156, - 1156, 1156, 1156, 1156, 1156, 1156, 1156, 1157, 1157, 1157, - 1157, 1157, 1157, 1157, 1157, 1158, 413, 1158, 1158, 1158, - 1158, 1158, 1158, 1159, 412, 411, 410, 409, 1159, 1159, - 1159, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, - 1160, 1160, 1161, 403, 1161, 402, 1161, 1161, 1161, 1161, + 1165, 1165, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1166, + 1166, 1166, 1166, 1167, 1167, 1167, 1167, 1167, 1167, 1167, + 1167, 1167, 1167, 1167, 1168, 1168, 1168, 1168, 1168, 1168, + 1168, 1168, 1168, 1168, 1168, 1169, 1169, 1169, 1169, 1169, + 1169, 1169, 1169, 1169, 1169, 1169, 1170, 1170, 1170, 1170, + 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1171, 1171, 1171, + 1171, 1171, 1171, 1171, 1171, 1172, 427, 1172, 1172, 1172, + 1172, 1172, 1172, 1173, 426, 425, 424, 423, 1173, 1173, + 1173, 1174, 1174, 1174, 1174, 1174, 1174, 1174, 1174, 1174, + 1174, 1174, 1175, 422, 1175, 421, 1175, 1175, 1175, 1175, - 1162, 399, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162, - 1162, 1163, 398, 1163, 1163, 1163, 1163, 1163, 1163, 1163, - 1163, 1163, 1164, 397, 1164, 1164, 1164, 1164, 1164, 1164, - 1164, 1164, 1164, 1165, 396, 1165, 1166, 1166, 1166, 395, - 394, 1166, 1166, 393, 1166, 1167, 392, 1167, 1167, 1167, - 1167, 1167, 1167, 1169, 391, 1169, 1169, 1169, 1169, 1169, - 1169, 1169, 1169, 1169, 1170, 390, 1170, 1170, 1170, 1170, - 1170, 1170, 1170, 1170, 1170, 1171, 389, 1171, 1171, 1171, - 1171, 1171, 1171, 1171, 1171, 1171, 1172, 388, 1172, 1172, - 1172, 1172, 1172, 1172, 1172, 1172, 1172, 387, 384, 382, + 1176, 420, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, + 1176, 1177, 419, 1177, 1177, 1177, 1177, 1177, 1177, 1177, + 1177, 1177, 1178, 418, 1178, 1178, 1178, 1178, 1178, 1178, + 1178, 1178, 1178, 1179, 417, 1179, 1180, 1180, 1180, 416, + 415, 1180, 1180, 414, 1180, 1181, 413, 1181, 1181, 1181, + 1181, 1181, 1181, 1183, 412, 1183, 1183, 1183, 1183, 1183, + 1183, 1183, 1183, 1183, 1184, 411, 1184, 1184, 1184, 1184, + 1184, 1184, 1184, 1184, 1184, 1185, 405, 1185, 1185, 1185, + 1185, 1185, 1185, 1185, 1185, 1185, 1186, 404, 1186, 1186, + 1186, 1186, 1186, 1186, 1186, 1186, 1186, 401, 400, 399, - 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, - 371, 368, 356, 353, 352, 351, 350, 349, 348, 347, - 346, 345, 344, 342, 341, 340, 339, 338, 336, 333, - 331, 330, 329, 328, 326, 325, 324, 323, 321, 320, - 319, 315, 313, 312, 311, 309, 308, 307, 306, 305, - 304, 303, 302, 301, 298, 297, 296, 293, 292, 270, - 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, - 259, 257, 256, 255, 254, 253, 252, 250, 249, 248, - 246, 245, 243, 242, 241, 240, 239, 237, 236, 235, - 234, 233, 231, 230, 229, 227, 226, 225, 224, 220, + 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, + 386, 384, 383, 382, 381, 380, 379, 378, 377, 376, + 375, 374, 373, 370, 358, 355, 354, 353, 352, 351, + 350, 349, 348, 347, 346, 344, 343, 342, 341, 340, + 338, 335, 333, 332, 331, 330, 328, 327, 326, 325, + 323, 322, 321, 317, 315, 314, 313, 312, 310, 309, + 308, 307, 306, 305, 304, 303, 302, 299, 298, 297, + 294, 293, 271, 270, 269, 268, 267, 266, 265, 264, + 263, 262, 261, 260, 259, 257, 256, 255, 254, 253, + 252, 250, 249, 248, 246, 245, 243, 242, 241, 240, - 206, 204, 198, 192, 189, 187, 185, 184, 183, 174, - 172, 171, 170, 161, 156, 154, 152, 151, 149, 142, - 141, 140, 139, 138, 136, 130, 129, 115, 111, 110, - 109, 106, 105, 104, 103, 94, 84, 83, 77, 76, - 75, 69, 68, 67, 66, 63, 62, 60, 54, 53, - 52, 51, 42, 34, 32, 31, 25, 24, 22, 19, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, + 239, 237, 236, 235, 234, 233, 231, 230, 229, 227, + 226, 225, 224, 220, 206, 204, 198, 192, 189, 187, + 185, 184, 183, 174, 172, 171, 170, 161, 156, 154, + 152, 151, 149, 142, 141, 140, 139, 138, 136, 130, + 129, 115, 110, 109, 106, 105, 104, 103, 94, 84, + 83, 77, 76, 75, 69, 68, 67, 66, 63, 62, + 60, 54, 53, 52, 51, 42, 34, 32, 31, 25, + 24, 22, 19, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, - 1150 + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, 1164, + 1164, 1164, 1164, 1164 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; -extern int yy_flex_debug; -int yy_flex_debug = 0; - /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ @@ -1301,10 +1225,11 @@ int yy_flex_debug = 0; #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "ldlex.l" +#define INITIAL 0 #line 2 "ldlex.l" /* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 Free Software Foundation, Inc. + 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -1329,7 +1254,6 @@ This was written by steve chamberlain */ -#include "ansidecl.h" #include #ifdef MPW @@ -1372,7 +1296,7 @@ const char *lex_string = NULL; Otherwise, stack elements 0 through `include_stack_ptr - 1' are valid. */ #undef YY_INPUT -#define YY_INPUT(buf,result,max_size) yy_input(buf, &result, max_size) +#define YY_INPUT(buf,result,max_size) yy_input (buf, &result, max_size) #define MAX_INCLUDE_DEPTH 10 static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH]; @@ -1381,14 +1305,11 @@ static unsigned int lineno_stack[MAX_INCLUDE_DEPTH]; static unsigned int include_stack_ptr = 0; static int vers_node_nesting = 0; -static YY_BUFFER_STATE yy_create_string_buffer PARAMS ((const char *string, - size_t size)); -static void yy_input PARAMS ((char *, int *result, int max_size)); +static void yy_input (char *, int *, int); +static void comment (void); +static void lex_warn_invalid (char *where, char *what); -static void comment PARAMS ((void)); -static void lex_warn_invalid PARAMS ((char *where, char *what)); - -/* STATES +/* STATES EXPRESSION definitely in an expression SCRIPT definitely in a script BOTH either EXPRESSION or SCRIPT @@ -1402,37 +1323,25 @@ static void lex_warn_invalid PARAMS ((char *where, char *what)); /* Some versions of flex want this. */ #ifndef yywrap -int yywrap () { return 1; } +int yywrap (void) { return 1; } #endif - - - - - - - - -#line 1410 "lex.yy.c" - -#define INITIAL 0 #define SCRIPT 1 + #define EXPRESSION 2 + #define BOTH 3 + #define DEFSYMEXP 4 + #define MRI 5 + #define VERS_START 6 + #define VERS_SCRIPT 7 + #define VERS_NODE 8 -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif +#line 1345 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. @@ -1440,30 +1349,65 @@ int yywrap () { return 1; } #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int yywrap (void ); +extern "C" int yywrap YY_PROTO(( void )); #else -extern int yywrap (void ); +extern int yywrap YY_PROTO(( void )); #endif #endif - static void yyunput (int c,char *buf_ptr ); - +#ifndef YY_NO_UNPUT +static void yyunput YY_PROTO(( int c, char *buf_ptr )); +#endif + #ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ); +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ); +static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT - #ifdef __cplusplus -static int yyinput (void ); +static int yyinput YY_PROTO(( void )); #else -static int input (void ); +static int input YY_PROTO(( void )); +#endif #endif +#if YY_STACK_USED +static int yy_start_stack_ptr = 0; +static int yy_start_stack_depth = 0; +static int *yy_start_stack = 0; +#ifndef YY_NO_PUSH_STATE +static void yy_push_state YY_PROTO(( int new_state )); +#endif +#ifndef YY_NO_POP_STATE +static void yy_pop_state YY_PROTO(( void )); +#endif +#ifndef YY_NO_TOP_STATE +static int yy_top_state YY_PROTO(( void )); +#endif + +#else +#define YY_NO_PUSH_STATE 1 +#define YY_NO_POP_STATE 1 +#define YY_NO_TOP_STATE 1 +#endif + +#ifdef YY_MALLOC_DECL +YY_MALLOC_DECL +#else +#if __STDC__ +#ifndef __cplusplus +#include +#endif +#else +/* Just try to get by without declaring the routines. This will fail + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) + * or sizeof(void*) != sizeof(int). + */ +#endif #endif /* Amount of stuff to slurp up with each read. */ @@ -1472,6 +1416,7 @@ static int input (void ); #endif /* Copy whatever the last rule matched to the standard output. */ + #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). @@ -1484,10 +1429,9 @@ static int input (void ); */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + if ( yy_current_buffer->yy_is_interactive ) \ { \ - int c = '*'; \ - size_t n; \ + int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -1510,9 +1454,7 @@ static int input (void ); errno=0; \ clearerr(yyin); \ } \ - }\ -\ - + } #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - @@ -1533,18 +1475,12 @@ static int input (void ); #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif -/* end tables serialization structures and prototypes */ - /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int yylex (void); - -#define YY_DECL int yylex (void) -#endif /* !YY_DECL */ +#define YY_DECL int yylex YY_PROTO(( void )) +#endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. @@ -1561,15 +1497,13 @@ extern int yylex (void); #define YY_RULE_SETUP \ YY_USER_ACTION -/** The main scanner function which does all the work. - */ YY_DECL -{ + { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; - -#line 130 "ldlex.l" + +#line 126 "ldlex.l" if (parser_input != input_selected) @@ -1587,18 +1521,18 @@ YY_DECL } } -#line 1585 "lex.yy.c" +#line 1525 "lex.yy.c" - if ( (yy_init) ) + if ( yy_init ) { - (yy_init) = 0; + yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ + if ( ! yy_start ) + yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; @@ -1606,111 +1540,111 @@ YY_DECL if ( ! yyout ) yyout = stdout; - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } + if ( ! yy_current_buffer ) + yy_current_buffer = + yy_create_buffer( yyin, YY_BUF_SIZE ); - yy_load_buffer_state( ); + yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { - yy_cp = (yy_c_buf_p); + yy_cp = yy_c_buf_p; /* Support of yytext. */ - *yy_cp = (yy_hold_char); + *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; - yy_current_state = (yy_start); + yy_current_state = yy_start; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 1151 ) + if ( yy_current_state >= 1165 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } - while ( yy_base[yy_current_state] != 2061 ); + while ( yy_base[yy_current_state] != 2074 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; + do_action: /* This label is used only to access EOF actions. */ + switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; goto yy_find_action; case 1: YY_RULE_SETUP -#line 147 "ldlex.l" -{ comment(); } +#line 143 "ldlex.l" +{ comment (); } YY_BREAK case 2: YY_RULE_SETUP -#line 150 "ldlex.l" +#line 146 "ldlex.l" { RTOKEN('-');} YY_BREAK case 3: YY_RULE_SETUP -#line 151 "ldlex.l" +#line 147 "ldlex.l" { RTOKEN('+');} YY_BREAK case 4: YY_RULE_SETUP -#line 152 "ldlex.l" -{ yylval.name = xstrdup(yytext); return NAME; } +#line 148 "ldlex.l" +{ yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 5: YY_RULE_SETUP -#line 153 "ldlex.l" +#line 149 "ldlex.l" { RTOKEN('='); } YY_BREAK case 6: YY_RULE_SETUP -#line 155 "ldlex.l" +#line 151 "ldlex.l" { - yylval.integer = bfd_scan_vma (yytext+1, 0,16); - yylval.bigint.str = (char *) 0; + yylval.integer = bfd_scan_vma (yytext + 1, 0, 16); + yylval.bigint.str = NULL; return INT; } YY_BREAK case 7: YY_RULE_SETUP -#line 161 "ldlex.l" +#line 157 "ldlex.l" { int ibase ; - switch (yytext[yyleng-1]) { - case 'X': + switch (yytext[yyleng - 1]) { + case 'X': case 'x': case 'H': case 'h': @@ -1729,13 +1663,13 @@ YY_RULE_SETUP } yylval.integer = bfd_scan_vma (yytext, 0, ibase); - yylval.bigint.str = (char *) 0; + yylval.bigint.str = NULL; return INT; } YY_BREAK case 8: YY_RULE_SETUP -#line 186 "ldlex.l" +#line 182 "ldlex.l" { char *s = yytext; int ibase = 0; @@ -1746,14 +1680,14 @@ YY_RULE_SETUP ibase = 16; } yylval.integer = bfd_scan_vma (s, 0, ibase); - yylval.bigint.str = (char *) 0; - if (yytext[yyleng-1] == 'M' - || yytext[yyleng-1] == 'm') + yylval.bigint.str = NULL; + if (yytext[yyleng - 1] == 'M' + || yytext[yyleng - 1] == 'm') { yylval.integer *= 1024 * 1024; } - else if (yytext[yyleng-1] == 'K' - || yytext[yyleng-1]=='k') + else if (yytext[yyleng - 1] == 'K' + || yytext[yyleng - 1]=='k') { yylval.integer *= 1024; } @@ -1768,734 +1702,737 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 215 "ldlex.l" +#line 211 "ldlex.l" { RTOKEN(']');} YY_BREAK case 10: YY_RULE_SETUP -#line 216 "ldlex.l" +#line 212 "ldlex.l" { RTOKEN('[');} YY_BREAK case 11: YY_RULE_SETUP -#line 217 "ldlex.l" +#line 213 "ldlex.l" { RTOKEN(LSHIFTEQ);} YY_BREAK case 12: YY_RULE_SETUP -#line 218 "ldlex.l" +#line 214 "ldlex.l" { RTOKEN(RSHIFTEQ);} YY_BREAK case 13: YY_RULE_SETUP -#line 219 "ldlex.l" +#line 215 "ldlex.l" { RTOKEN(OROR);} YY_BREAK case 14: YY_RULE_SETUP -#line 220 "ldlex.l" +#line 216 "ldlex.l" { RTOKEN(EQ);} YY_BREAK case 15: YY_RULE_SETUP -#line 221 "ldlex.l" +#line 217 "ldlex.l" { RTOKEN(NE);} YY_BREAK case 16: YY_RULE_SETUP -#line 222 "ldlex.l" +#line 218 "ldlex.l" { RTOKEN(GE);} YY_BREAK case 17: YY_RULE_SETUP -#line 223 "ldlex.l" +#line 219 "ldlex.l" { RTOKEN(LE);} YY_BREAK case 18: YY_RULE_SETUP -#line 224 "ldlex.l" +#line 220 "ldlex.l" { RTOKEN(LSHIFT);} YY_BREAK case 19: YY_RULE_SETUP -#line 225 "ldlex.l" +#line 221 "ldlex.l" { RTOKEN(RSHIFT);} YY_BREAK case 20: YY_RULE_SETUP -#line 226 "ldlex.l" +#line 222 "ldlex.l" { RTOKEN(PLUSEQ);} YY_BREAK case 21: YY_RULE_SETUP -#line 227 "ldlex.l" +#line 223 "ldlex.l" { RTOKEN(MINUSEQ);} YY_BREAK case 22: YY_RULE_SETUP -#line 228 "ldlex.l" +#line 224 "ldlex.l" { RTOKEN(MULTEQ);} YY_BREAK case 23: YY_RULE_SETUP -#line 229 "ldlex.l" +#line 225 "ldlex.l" { RTOKEN(DIVEQ);} YY_BREAK case 24: YY_RULE_SETUP -#line 230 "ldlex.l" +#line 226 "ldlex.l" { RTOKEN(ANDEQ);} YY_BREAK case 25: YY_RULE_SETUP -#line 231 "ldlex.l" +#line 227 "ldlex.l" { RTOKEN(OREQ);} YY_BREAK case 26: YY_RULE_SETUP -#line 232 "ldlex.l" +#line 228 "ldlex.l" { RTOKEN(ANDAND);} YY_BREAK case 27: YY_RULE_SETUP -#line 233 "ldlex.l" +#line 229 "ldlex.l" { RTOKEN('>');} YY_BREAK case 28: YY_RULE_SETUP -#line 234 "ldlex.l" +#line 230 "ldlex.l" { RTOKEN(',');} YY_BREAK case 29: YY_RULE_SETUP -#line 235 "ldlex.l" +#line 231 "ldlex.l" { RTOKEN('&');} YY_BREAK case 30: YY_RULE_SETUP -#line 236 "ldlex.l" +#line 232 "ldlex.l" { RTOKEN('|');} YY_BREAK case 31: YY_RULE_SETUP -#line 237 "ldlex.l" +#line 233 "ldlex.l" { RTOKEN('~');} YY_BREAK case 32: YY_RULE_SETUP -#line 238 "ldlex.l" +#line 234 "ldlex.l" { RTOKEN('!');} YY_BREAK case 33: YY_RULE_SETUP -#line 239 "ldlex.l" +#line 235 "ldlex.l" { RTOKEN('?');} YY_BREAK case 34: YY_RULE_SETUP -#line 240 "ldlex.l" +#line 236 "ldlex.l" { RTOKEN('*');} YY_BREAK case 35: YY_RULE_SETUP -#line 241 "ldlex.l" +#line 237 "ldlex.l" { RTOKEN('+');} YY_BREAK case 36: YY_RULE_SETUP -#line 242 "ldlex.l" +#line 238 "ldlex.l" { RTOKEN('-');} YY_BREAK case 37: YY_RULE_SETUP -#line 243 "ldlex.l" +#line 239 "ldlex.l" { RTOKEN('/');} YY_BREAK case 38: YY_RULE_SETUP -#line 244 "ldlex.l" +#line 240 "ldlex.l" { RTOKEN('%');} YY_BREAK case 39: YY_RULE_SETUP -#line 245 "ldlex.l" +#line 241 "ldlex.l" { RTOKEN('<');} YY_BREAK case 40: YY_RULE_SETUP -#line 246 "ldlex.l" +#line 242 "ldlex.l" { RTOKEN('=');} YY_BREAK case 41: YY_RULE_SETUP -#line 247 "ldlex.l" +#line 243 "ldlex.l" { RTOKEN('}') ; } YY_BREAK case 42: YY_RULE_SETUP -#line 248 "ldlex.l" +#line 244 "ldlex.l" { RTOKEN('{'); } YY_BREAK case 43: YY_RULE_SETUP -#line 249 "ldlex.l" +#line 245 "ldlex.l" { RTOKEN(')');} YY_BREAK case 44: YY_RULE_SETUP -#line 250 "ldlex.l" +#line 246 "ldlex.l" { RTOKEN('(');} YY_BREAK case 45: YY_RULE_SETUP -#line 251 "ldlex.l" +#line 247 "ldlex.l" { RTOKEN(':'); } YY_BREAK case 46: YY_RULE_SETUP -#line 252 "ldlex.l" +#line 248 "ldlex.l" { RTOKEN(';');} YY_BREAK case 47: YY_RULE_SETUP -#line 253 "ldlex.l" +#line 249 "ldlex.l" { RTOKEN(MEMORY);} YY_BREAK case 48: YY_RULE_SETUP -#line 254 "ldlex.l" +#line 250 "ldlex.l" { RTOKEN(ORIGIN);} YY_BREAK case 49: YY_RULE_SETUP -#line 255 "ldlex.l" +#line 251 "ldlex.l" { RTOKEN(VERSIONK);} YY_BREAK case 50: YY_RULE_SETUP -#line 256 "ldlex.l" +#line 252 "ldlex.l" { RTOKEN(BLOCK);} YY_BREAK case 51: YY_RULE_SETUP -#line 257 "ldlex.l" +#line 253 "ldlex.l" { RTOKEN(BIND);} YY_BREAK case 52: YY_RULE_SETUP -#line 258 "ldlex.l" +#line 254 "ldlex.l" { RTOKEN(LENGTH);} YY_BREAK case 53: YY_RULE_SETUP -#line 259 "ldlex.l" +#line 255 "ldlex.l" { RTOKEN(ALIGN_K);} YY_BREAK case 54: YY_RULE_SETUP -#line 260 "ldlex.l" +#line 256 "ldlex.l" { RTOKEN(DATA_SEGMENT_ALIGN);} YY_BREAK case 55: YY_RULE_SETUP -#line 261 "ldlex.l" +#line 257 "ldlex.l" { RTOKEN(DATA_SEGMENT_END);} YY_BREAK case 56: YY_RULE_SETUP -#line 262 "ldlex.l" +#line 258 "ldlex.l" { RTOKEN(ADDR);} YY_BREAK case 57: YY_RULE_SETUP -#line 263 "ldlex.l" +#line 259 "ldlex.l" { RTOKEN(LOADADDR);} YY_BREAK case 58: YY_RULE_SETUP -#line 264 "ldlex.l" +#line 260 "ldlex.l" { RTOKEN(MAX_K); } YY_BREAK case 59: YY_RULE_SETUP -#line 265 "ldlex.l" +#line 261 "ldlex.l" { RTOKEN(MIN_K); } YY_BREAK case 60: YY_RULE_SETUP -#line 266 "ldlex.l" +#line 262 "ldlex.l" { RTOKEN(ASSERT_K); } YY_BREAK case 61: YY_RULE_SETUP -#line 267 "ldlex.l" +#line 263 "ldlex.l" { RTOKEN(ENTRY);} YY_BREAK case 62: YY_RULE_SETUP -#line 268 "ldlex.l" +#line 264 "ldlex.l" { RTOKEN(EXTERN);} YY_BREAK case 63: YY_RULE_SETUP -#line 269 "ldlex.l" +#line 265 "ldlex.l" { RTOKEN(NEXT);} YY_BREAK case 64: YY_RULE_SETUP -#line 270 "ldlex.l" +#line 266 "ldlex.l" { RTOKEN(SIZEOF_HEADERS);} YY_BREAK case 65: YY_RULE_SETUP -#line 271 "ldlex.l" +#line 267 "ldlex.l" { RTOKEN(SIZEOF_HEADERS);} YY_BREAK case 66: YY_RULE_SETUP -#line 272 "ldlex.l" +#line 268 "ldlex.l" { RTOKEN(MAP);} YY_BREAK case 67: YY_RULE_SETUP -#line 273 "ldlex.l" +#line 269 "ldlex.l" { RTOKEN(SIZEOF);} YY_BREAK case 68: YY_RULE_SETUP -#line 274 "ldlex.l" +#line 270 "ldlex.l" { RTOKEN(TARGET_K);} YY_BREAK case 69: YY_RULE_SETUP -#line 275 "ldlex.l" +#line 271 "ldlex.l" { RTOKEN(SEARCH_DIR);} YY_BREAK case 70: YY_RULE_SETUP -#line 276 "ldlex.l" +#line 272 "ldlex.l" { RTOKEN(OUTPUT);} YY_BREAK case 71: YY_RULE_SETUP -#line 277 "ldlex.l" +#line 273 "ldlex.l" { RTOKEN(INPUT);} YY_BREAK case 72: YY_RULE_SETUP -#line 278 "ldlex.l" +#line 274 "ldlex.l" { RTOKEN(GROUP);} YY_BREAK case 73: YY_RULE_SETUP -#line 279 "ldlex.l" +#line 275 "ldlex.l" { RTOKEN(DEFINED);} YY_BREAK case 74: YY_RULE_SETUP -#line 280 "ldlex.l" +#line 276 "ldlex.l" { RTOKEN(CREATE_OBJECT_SYMBOLS);} YY_BREAK case 75: YY_RULE_SETUP -#line 281 "ldlex.l" +#line 277 "ldlex.l" { RTOKEN( CONSTRUCTORS);} YY_BREAK case 76: YY_RULE_SETUP -#line 282 "ldlex.l" +#line 278 "ldlex.l" { RTOKEN(FORCE_COMMON_ALLOCATION);} YY_BREAK case 77: YY_RULE_SETUP -#line 283 "ldlex.l" +#line 279 "ldlex.l" { RTOKEN(INHIBIT_COMMON_ALLOCATION);} YY_BREAK case 78: YY_RULE_SETUP -#line 284 "ldlex.l" +#line 280 "ldlex.l" { RTOKEN(SECTIONS);} YY_BREAK case 79: YY_RULE_SETUP -#line 285 "ldlex.l" +#line 281 "ldlex.l" { RTOKEN(FILL);} YY_BREAK case 80: YY_RULE_SETUP -#line 286 "ldlex.l" +#line 282 "ldlex.l" { RTOKEN(STARTUP);} YY_BREAK case 81: YY_RULE_SETUP -#line 287 "ldlex.l" +#line 283 "ldlex.l" { RTOKEN(OUTPUT_FORMAT);} YY_BREAK case 82: YY_RULE_SETUP -#line 288 "ldlex.l" +#line 284 "ldlex.l" { RTOKEN( OUTPUT_ARCH);} YY_BREAK case 83: YY_RULE_SETUP -#line 289 "ldlex.l" +#line 285 "ldlex.l" { RTOKEN(HLL);} YY_BREAK case 84: YY_RULE_SETUP -#line 290 "ldlex.l" +#line 286 "ldlex.l" { RTOKEN(SYSLIB);} YY_BREAK case 85: YY_RULE_SETUP -#line 291 "ldlex.l" +#line 287 "ldlex.l" { RTOKEN(FLOAT);} YY_BREAK case 86: YY_RULE_SETUP -#line 292 "ldlex.l" +#line 288 "ldlex.l" { RTOKEN( QUAD);} YY_BREAK case 87: YY_RULE_SETUP -#line 293 "ldlex.l" +#line 289 "ldlex.l" { RTOKEN( SQUAD);} YY_BREAK case 88: YY_RULE_SETUP -#line 294 "ldlex.l" +#line 290 "ldlex.l" { RTOKEN( LONG);} YY_BREAK case 89: YY_RULE_SETUP -#line 295 "ldlex.l" +#line 291 "ldlex.l" { RTOKEN( SHORT);} YY_BREAK case 90: YY_RULE_SETUP -#line 296 "ldlex.l" +#line 292 "ldlex.l" { RTOKEN( BYTE);} YY_BREAK case 91: YY_RULE_SETUP -#line 297 "ldlex.l" +#line 293 "ldlex.l" { RTOKEN(NOFLOAT);} YY_BREAK case 92: YY_RULE_SETUP -#line 298 "ldlex.l" +#line 294 "ldlex.l" { RTOKEN(NOCROSSREFS);} YY_BREAK case 93: YY_RULE_SETUP -#line 299 "ldlex.l" +#line 295 "ldlex.l" { RTOKEN(OVERLAY); } YY_BREAK case 94: YY_RULE_SETUP -#line 300 "ldlex.l" +#line 296 "ldlex.l" { RTOKEN(SORT); } YY_BREAK case 95: YY_RULE_SETUP -#line 301 "ldlex.l" +#line 297 "ldlex.l" { RTOKEN(NOLOAD);} YY_BREAK case 96: YY_RULE_SETUP -#line 302 "ldlex.l" +#line 298 "ldlex.l" { RTOKEN(DSECT);} YY_BREAK case 97: YY_RULE_SETUP -#line 303 "ldlex.l" +#line 299 "ldlex.l" { RTOKEN(COPY);} YY_BREAK case 98: YY_RULE_SETUP -#line 304 "ldlex.l" +#line 300 "ldlex.l" { RTOKEN(INFO);} YY_BREAK case 99: YY_RULE_SETUP -#line 305 "ldlex.l" +#line 301 "ldlex.l" { RTOKEN(OVERLAY);} YY_BREAK case 100: YY_RULE_SETUP -#line 306 "ldlex.l" +#line 302 "ldlex.l" { RTOKEN(ORIGIN);} YY_BREAK case 101: YY_RULE_SETUP -#line 307 "ldlex.l" +#line 303 "ldlex.l" { RTOKEN(ORIGIN);} YY_BREAK case 102: YY_RULE_SETUP -#line 308 "ldlex.l" +#line 304 "ldlex.l" { RTOKEN( LENGTH);} YY_BREAK case 103: YY_RULE_SETUP -#line 309 "ldlex.l" +#line 305 "ldlex.l" { RTOKEN( LENGTH);} YY_BREAK case 104: YY_RULE_SETUP -#line 310 "ldlex.l" +#line 306 "ldlex.l" { RTOKEN(INCLUDE);} YY_BREAK case 105: YY_RULE_SETUP -#line 311 "ldlex.l" +#line 307 "ldlex.l" { RTOKEN (PHDRS); } YY_BREAK case 106: YY_RULE_SETUP -#line 312 "ldlex.l" +#line 308 "ldlex.l" { RTOKEN(AT);} YY_BREAK case 107: YY_RULE_SETUP -#line 313 "ldlex.l" -{ RTOKEN(PROVIDE); } +#line 309 "ldlex.l" +{ RTOKEN(SUBALIGN);} YY_BREAK case 108: YY_RULE_SETUP -#line 314 "ldlex.l" -{ RTOKEN(KEEP); } +#line 310 "ldlex.l" +{ RTOKEN(PROVIDE); } YY_BREAK case 109: YY_RULE_SETUP -#line 315 "ldlex.l" -{ RTOKEN(EXCLUDE_FILE); } +#line 311 "ldlex.l" +{ RTOKEN(KEEP); } YY_BREAK case 110: -/* rule 110 can match eol */ YY_RULE_SETUP -#line 316 "ldlex.l" -{ ++ lineno; } +#line 312 "ldlex.l" +{ RTOKEN(EXCLUDE_FILE); } YY_BREAK case 111: -/* rule 111 can match eol */ YY_RULE_SETUP -#line 317 "ldlex.l" -{ ++ lineno; RTOKEN(NEWLINE); } +#line 313 "ldlex.l" +{ ++ lineno; } YY_BREAK case 112: YY_RULE_SETUP -#line 318 "ldlex.l" -{ /* Mri comment line */ } +#line 314 "ldlex.l" +{ ++ lineno; RTOKEN(NEWLINE); } YY_BREAK case 113: YY_RULE_SETUP -#line 319 "ldlex.l" +#line 315 "ldlex.l" { /* Mri comment line */ } YY_BREAK case 114: YY_RULE_SETUP -#line 320 "ldlex.l" -{ RTOKEN(ENDWORD); } +#line 316 "ldlex.l" +{ /* Mri comment line */ } YY_BREAK case 115: YY_RULE_SETUP -#line 321 "ldlex.l" -{ RTOKEN(ALIGNMOD);} +#line 317 "ldlex.l" +{ RTOKEN(ENDWORD); } YY_BREAK case 116: YY_RULE_SETUP -#line 322 "ldlex.l" -{ RTOKEN(ALIGN_K);} +#line 318 "ldlex.l" +{ RTOKEN(ALIGNMOD);} YY_BREAK case 117: YY_RULE_SETUP -#line 323 "ldlex.l" -{ RTOKEN(CHIP); } +#line 319 "ldlex.l" +{ RTOKEN(ALIGN_K);} YY_BREAK case 118: YY_RULE_SETUP -#line 324 "ldlex.l" -{ RTOKEN(BASE); } +#line 320 "ldlex.l" +{ RTOKEN(CHIP); } YY_BREAK case 119: YY_RULE_SETUP -#line 325 "ldlex.l" -{ RTOKEN(ALIAS); } +#line 321 "ldlex.l" +{ RTOKEN(BASE); } YY_BREAK case 120: YY_RULE_SETUP -#line 326 "ldlex.l" -{ RTOKEN(TRUNCATE); } +#line 322 "ldlex.l" +{ RTOKEN(ALIAS); } YY_BREAK case 121: YY_RULE_SETUP -#line 327 "ldlex.l" -{ RTOKEN(LOAD); } +#line 323 "ldlex.l" +{ RTOKEN(TRUNCATE); } YY_BREAK case 122: YY_RULE_SETUP -#line 328 "ldlex.l" -{ RTOKEN(PUBLIC); } +#line 324 "ldlex.l" +{ RTOKEN(LOAD); } YY_BREAK case 123: YY_RULE_SETUP -#line 329 "ldlex.l" -{ RTOKEN(ORDER); } +#line 325 "ldlex.l" +{ RTOKEN(PUBLIC); } YY_BREAK case 124: YY_RULE_SETUP -#line 330 "ldlex.l" -{ RTOKEN(NAMEWORD); } +#line 326 "ldlex.l" +{ RTOKEN(ORDER); } YY_BREAK case 125: YY_RULE_SETUP -#line 331 "ldlex.l" -{ RTOKEN(FORMAT); } +#line 327 "ldlex.l" +{ RTOKEN(NAMEWORD); } YY_BREAK case 126: YY_RULE_SETUP -#line 332 "ldlex.l" -{ RTOKEN(CASE); } +#line 328 "ldlex.l" +{ RTOKEN(FORMAT); } YY_BREAK case 127: YY_RULE_SETUP -#line 333 "ldlex.l" -{ RTOKEN(START); } +#line 329 "ldlex.l" +{ RTOKEN(CASE); } YY_BREAK case 128: YY_RULE_SETUP -#line 334 "ldlex.l" -{ RTOKEN(LIST); /* LIST and ignore to end of line */ } +#line 330 "ldlex.l" +{ RTOKEN(START); } YY_BREAK case 129: YY_RULE_SETUP -#line 335 "ldlex.l" -{ RTOKEN(SECT); } +#line 331 "ldlex.l" +{ RTOKEN(LIST); /* LIST and ignore to end of line */ } YY_BREAK case 130: YY_RULE_SETUP -#line 336 "ldlex.l" -{ RTOKEN(ABSOLUTE); } +#line 332 "ldlex.l" +{ RTOKEN(SECT); } YY_BREAK case 131: YY_RULE_SETUP -#line 337 "ldlex.l" -{ RTOKEN(ENDWORD); } +#line 333 "ldlex.l" +{ RTOKEN(ABSOLUTE); } YY_BREAK case 132: YY_RULE_SETUP -#line 338 "ldlex.l" -{ RTOKEN(ALIGNMOD);} +#line 334 "ldlex.l" +{ RTOKEN(ENDWORD); } YY_BREAK case 133: YY_RULE_SETUP -#line 339 "ldlex.l" -{ RTOKEN(ALIGN_K);} +#line 335 "ldlex.l" +{ RTOKEN(ALIGNMOD);} YY_BREAK case 134: YY_RULE_SETUP -#line 340 "ldlex.l" -{ RTOKEN(CHIP); } +#line 336 "ldlex.l" +{ RTOKEN(ALIGN_K);} YY_BREAK case 135: YY_RULE_SETUP -#line 341 "ldlex.l" -{ RTOKEN(BASE); } +#line 337 "ldlex.l" +{ RTOKEN(CHIP); } YY_BREAK case 136: YY_RULE_SETUP -#line 342 "ldlex.l" -{ RTOKEN(ALIAS); } +#line 338 "ldlex.l" +{ RTOKEN(BASE); } YY_BREAK case 137: YY_RULE_SETUP -#line 343 "ldlex.l" -{ RTOKEN(TRUNCATE); } +#line 339 "ldlex.l" +{ RTOKEN(ALIAS); } YY_BREAK case 138: YY_RULE_SETUP -#line 344 "ldlex.l" -{ RTOKEN(LOAD); } +#line 340 "ldlex.l" +{ RTOKEN(TRUNCATE); } YY_BREAK case 139: YY_RULE_SETUP -#line 345 "ldlex.l" -{ RTOKEN(PUBLIC); } +#line 341 "ldlex.l" +{ RTOKEN(LOAD); } YY_BREAK case 140: YY_RULE_SETUP -#line 346 "ldlex.l" -{ RTOKEN(ORDER); } +#line 342 "ldlex.l" +{ RTOKEN(PUBLIC); } YY_BREAK case 141: YY_RULE_SETUP -#line 347 "ldlex.l" -{ RTOKEN(NAMEWORD); } +#line 343 "ldlex.l" +{ RTOKEN(ORDER); } YY_BREAK case 142: YY_RULE_SETUP -#line 348 "ldlex.l" -{ RTOKEN(FORMAT); } +#line 344 "ldlex.l" +{ RTOKEN(NAMEWORD); } YY_BREAK case 143: YY_RULE_SETUP -#line 349 "ldlex.l" -{ RTOKEN(CASE); } +#line 345 "ldlex.l" +{ RTOKEN(FORMAT); } YY_BREAK case 144: YY_RULE_SETUP -#line 350 "ldlex.l" -{ RTOKEN(EXTERN); } +#line 346 "ldlex.l" +{ RTOKEN(CASE); } YY_BREAK case 145: YY_RULE_SETUP -#line 351 "ldlex.l" -{ RTOKEN(START); } +#line 347 "ldlex.l" +{ RTOKEN(EXTERN); } YY_BREAK case 146: YY_RULE_SETUP -#line 352 "ldlex.l" -{ RTOKEN(LIST); /* LIST and ignore to end of line */ } +#line 348 "ldlex.l" +{ RTOKEN(START); } YY_BREAK case 147: YY_RULE_SETUP -#line 353 "ldlex.l" -{ RTOKEN(SECT); } +#line 349 "ldlex.l" +{ RTOKEN(LIST); /* LIST and ignore to end of line */ } YY_BREAK case 148: YY_RULE_SETUP -#line 354 "ldlex.l" -{ RTOKEN(ABSOLUTE); } +#line 350 "ldlex.l" +{ RTOKEN(SECT); } YY_BREAK case 149: YY_RULE_SETUP -#line 356 "ldlex.l" -{ -/* Filename without commas, needed to parse mri stuff */ - yylval.name = xstrdup(yytext); - return NAME; - } +#line 351 "ldlex.l" +{ RTOKEN(ABSOLUTE); } YY_BREAK case 150: YY_RULE_SETUP -#line 363 "ldlex.l" +#line 353 "ldlex.l" { - yylval.name = xstrdup(yytext); +/* Filename without commas, needed to parse mri stuff */ + yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 151: YY_RULE_SETUP -#line 367 "ldlex.l" +#line 360 "ldlex.l" +{ + yylval.name = xstrdup (yytext); + return NAME; + } + YY_BREAK +case 152: +YY_RULE_SETUP +#line 364 "ldlex.l" { yylval.name = xstrdup (yytext + 2); return LNAME; } YY_BREAK -case 152: +case 153: YY_RULE_SETUP -#line 371 "ldlex.l" +#line 368 "ldlex.l" { /* Annoyingly, this pattern can match comments, and we have longest match issues to consider. So if the first two @@ -2503,116 +2440,113 @@ YY_RULE_SETUP try again. */ if (yytext[0] == '/' && yytext[1] == '*') { - yyless(2); + yyless (2); comment (); } else { - yylval.name = xstrdup(yytext); + yylval.name = xstrdup (yytext); return NAME; } } YY_BREAK -case 153: -/* rule 153 can match eol */ +case 154: YY_RULE_SETUP -#line 388 "ldlex.l" +#line 385 "ldlex.l" { /* No matter the state, quotes give what's inside */ - yylval.name = xstrdup(yytext+1); - yylval.name[yyleng-2] = 0; + yylval.name = xstrdup (yytext + 1); + yylval.name[yyleng - 2] = 0; return NAME; } YY_BREAK -case 154: -/* rule 154 can match eol */ -YY_RULE_SETUP -#line 395 "ldlex.l" -{ lineno++;} - YY_BREAK case 155: YY_RULE_SETUP -#line 396 "ldlex.l" -{ } +#line 392 "ldlex.l" +{ lineno++;} YY_BREAK case 156: YY_RULE_SETUP -#line 398 "ldlex.l" -{ return *yytext; } +#line 393 "ldlex.l" +{ } YY_BREAK case 157: YY_RULE_SETUP -#line 400 "ldlex.l" -{ RTOKEN(GLOBAL); } +#line 395 "ldlex.l" +{ return *yytext; } YY_BREAK case 158: YY_RULE_SETUP -#line 402 "ldlex.l" -{ RTOKEN(LOCAL); } +#line 397 "ldlex.l" +{ RTOKEN(GLOBAL); } YY_BREAK case 159: YY_RULE_SETUP -#line 404 "ldlex.l" -{ RTOKEN(EXTERN); } +#line 399 "ldlex.l" +{ RTOKEN(LOCAL); } YY_BREAK case 160: YY_RULE_SETUP -#line 406 "ldlex.l" -{ yylval.name = xstrdup (yytext); - return VERS_IDENTIFIER; } +#line 401 "ldlex.l" +{ RTOKEN(EXTERN); } YY_BREAK case 161: YY_RULE_SETUP -#line 409 "ldlex.l" +#line 403 "ldlex.l" { yylval.name = xstrdup (yytext); - return VERS_TAG; } + return VERS_IDENTIFIER; } YY_BREAK case 162: YY_RULE_SETUP -#line 412 "ldlex.l" -{ BEGIN(VERS_SCRIPT); return *yytext; } +#line 406 "ldlex.l" +{ yylval.name = xstrdup (yytext); + return VERS_TAG; } YY_BREAK case 163: YY_RULE_SETUP -#line 414 "ldlex.l" -{ BEGIN(VERS_NODE); +#line 409 "ldlex.l" +{ BEGIN(VERS_SCRIPT); return *yytext; } + YY_BREAK +case 164: +YY_RULE_SETUP +#line 411 "ldlex.l" +{ BEGIN(VERS_NODE); vers_node_nesting = 0; return *yytext; } YY_BREAK -case 164: -YY_RULE_SETUP -#line 418 "ldlex.l" -{ return *yytext; } - YY_BREAK case 165: YY_RULE_SETUP -#line 419 "ldlex.l" -{ vers_node_nesting++; return *yytext; } +#line 415 "ldlex.l" +{ return *yytext; } YY_BREAK case 166: YY_RULE_SETUP -#line 420 "ldlex.l" +#line 416 "ldlex.l" +{ vers_node_nesting++; return *yytext; } + YY_BREAK +case 167: +YY_RULE_SETUP +#line 417 "ldlex.l" { if (--vers_node_nesting < 0) BEGIN(VERS_SCRIPT); return *yytext; } YY_BREAK -case 167: -/* rule 167 can match eol */ -YY_RULE_SETUP -#line 425 "ldlex.l" -{ lineno++; } - YY_BREAK case 168: YY_RULE_SETUP -#line 427 "ldlex.l" -{ /* Eat up comments */ } +#line 422 "ldlex.l" +{ lineno++; } YY_BREAK case 169: YY_RULE_SETUP -#line 429 "ldlex.l" +#line 424 "ldlex.l" +{ /* Eat up comments */ } + YY_BREAK +case 170: +YY_RULE_SETUP +#line 426 "ldlex.l" { /* Eat up whitespace */ } YY_BREAK case YY_STATE_EOF(INITIAL): @@ -2624,17 +2558,17 @@ case YY_STATE_EOF(MRI): case YY_STATE_EOF(VERS_START): case YY_STATE_EOF(VERS_SCRIPT): case YY_STATE_EOF(VERS_NODE): -#line 431 "ldlex.l" +#line 428 "ldlex.l" { include_stack_ptr--; - - if (include_stack_ptr == 0) + + if (include_stack_ptr == 0) { - yyterminate(); + yyterminate (); } - else + else { - yy_switch_to_buffer(include_stack[include_stack_ptr]); + yy_switch_to_buffer (include_stack[include_stack_ptr]); } ldfile_input_filename = file_name_stack[include_stack_ptr - 1]; @@ -2643,46 +2577,46 @@ case YY_STATE_EOF(VERS_NODE): return END; } YY_BREAK -case 170: -YY_RULE_SETUP -#line 449 "ldlex.l" -lex_warn_invalid(" in script", yytext); - YY_BREAK case 171: YY_RULE_SETUP -#line 450 "ldlex.l" -lex_warn_invalid(" in expression", yytext); +#line 446 "ldlex.l" +lex_warn_invalid (" in script", yytext); YY_BREAK case 172: YY_RULE_SETUP -#line 452 "ldlex.l" +#line 447 "ldlex.l" +lex_warn_invalid (" in expression", yytext); + YY_BREAK +case 173: +YY_RULE_SETUP +#line 449 "ldlex.l" ECHO; YY_BREAK -#line 2656 "lex.yy.c" +#line 2596 "lex.yy.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); + *yy_cp = yy_hold_char; YY_RESTORE_YY_MORE_OFFSET - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our + * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + yy_n_chars = yy_current_buffer->yy_n_chars; + yy_current_buffer->yy_input_file = yyin; + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position @@ -2692,13 +2626,13 @@ ECHO; * end-of-buffer state). Contrast this with the test * in input(). */ - if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; - yy_current_state = yy_get_previous_state( ); + yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have @@ -2711,30 +2645,30 @@ ECHO; yy_next_state = yy_try_NUL_trans( yy_current_state ); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; + yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); + yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { - yy_cp = (yy_c_buf_p); + yy_cp = yy_c_buf_p; goto yy_find_action; } } - else switch ( yy_get_next_buffer( ) ) + else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { - (yy_did_buffer_switch_on_eof) = 0; + yy_did_buffer_switch_on_eof = 0; - if ( yywrap( ) ) + if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up @@ -2745,7 +2679,7 @@ ECHO; * YY_NULL, it'll still work - another * YY_NULL will get returned. */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; @@ -2753,30 +2687,30 @@ ECHO; else { - if ( ! (yy_did_buffer_switch_on_eof) ) + if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = - (yytext_ptr) + yy_amount_of_matched_text; + yy_c_buf_p = + yytext_ptr + yy_amount_of_matched_text; - yy_current_state = yy_get_previous_state( ); + yy_current_state = yy_get_previous_state(); - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; - yy_current_state = yy_get_previous_state( ); + yy_current_state = yy_get_previous_state(); - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; @@ -2787,7 +2721,8 @@ ECHO; "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ -} /* end of yylex */ + } /* end of yylex */ + /* yy_get_next_buffer - try to read in a new buffer * @@ -2796,20 +2731,21 @@ ECHO; * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ -static int yy_get_next_buffer (void) -{ - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); + +static int yy_get_next_buffer() + { + register char *dest = yy_current_buffer->yy_ch_buf; + register char *source = yytext_ptr; register int number_to_move, i; int ret_val; - if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ - if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. @@ -2829,30 +2765,34 @@ static int yy_get_next_buffer (void) /* Try to read more data. */ /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { - size_t num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + int num_to_read = + yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ +#ifdef YY_USES_REJECT + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +#else /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = - (int) ((yy_c_buf_p) - b->yy_ch_buf); + (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { @@ -2865,7 +2805,8 @@ static int yy_get_next_buffer (void) b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + yy_flex_realloc( (void *) b->yy_ch_buf, + b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ @@ -2875,35 +2816,35 @@ static int yy_get_next_buffer (void) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; - +#endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), num_to_read ); + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + yy_current_buffer->yy_n_chars = yy_n_chars; } - if ( (yy_n_chars) == 0 ) + if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ); + yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } @@ -2911,137 +2852,152 @@ static int yy_get_next_buffer (void) else ret_val = EOB_ACT_CONTINUE_SCAN; - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; -} + } + /* yy_get_previous_state - get the state just before the EOB char was reached */ - static yy_state_type yy_get_previous_state (void) -{ +static yy_state_type yy_get_previous_state() + { register yy_state_type yy_current_state; register char *yy_cp; - - yy_current_state = (yy_start); - for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 1151 ) + if ( yy_current_state >= 1165 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; -} + } + /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) -{ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +yy_state_type yy_current_state; +#endif + { register int yy_is_jam; - register char *yy_cp = (yy_c_buf_p); + register char *yy_cp = yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 1151 ) + if ( yy_current_state >= 1165 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 1150); + yy_is_jam = (yy_current_state == 1164); return yy_is_jam ? 0 : yy_current_state; -} + } - static void yyunput (int c, register char * yy_bp ) -{ - register char *yy_cp; - - yy_cp = (yy_c_buf_p); + +#ifndef YY_NO_UNPUT +#ifdef YY_USE_PROTOS +static void yyunput( int c, register char *yy_bp ) +#else +static void yyunput( c, yy_bp ) +int c; +register char *yy_bp; +#endif + { + register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); + *yy_cp = yy_hold_char; - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + register int number_to_move = yy_n_chars + 2; + register char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + &yy_current_buffer->yy_ch_buf[number_to_move]; - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + yy_current_buffer->yy_n_chars = + yy_n_chars = yy_current_buffer->yy_buf_size; - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; -} -#ifndef YY_NO_INPUT + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; + } +#endif /* ifndef YY_NO_UNPUT */ + + #ifdef __cplusplus - static int yyinput (void) +static int yyinput() #else - static int input (void) +static int input() #endif - -{ + { int c; - - *(yy_c_buf_p) = (yy_hold_char); - if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + *yy_c_buf_p = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ - if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; + *yy_c_buf_p = '\0'; else { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); + int offset = yy_c_buf_p - yytext_ptr; + ++yy_c_buf_p; - switch ( yy_get_next_buffer( ) ) + switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() @@ -3055,16 +3011,16 @@ static int yy_get_next_buffer (void) */ /* Reset buffer status. */ - yyrestart(yyin ); + yyrestart( yyin ); - /*FALLTHROUGH*/ + /* fall through */ case EOB_ACT_END_OF_FILE: { - if ( yywrap( ) ) + if ( yywrap() ) return EOF; - if ( ! (yy_did_buffer_switch_on_eof) ) + if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); @@ -3074,92 +3030,90 @@ static int yy_get_next_buffer (void) } case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; + yy_c_buf_p = yytext_ptr + offset; break; } } } - c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ + *yy_c_buf_p = '\0'; /* preserve yytext */ + yy_hold_char = *++yy_c_buf_p; + return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * - * @note This function does not reset the start condition to @c INITIAL . - */ - void yyrestart (FILE * input_file ) -{ - - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); } - yy_init_buffer(YY_CURRENT_BUFFER,input_file ); - yy_load_buffer_state( ); -} -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * - */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) -{ - - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack (); - if ( YY_CURRENT_BUFFER == new_buffer ) +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + { + if ( ! yy_current_buffer ) + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + { + if ( yy_current_buffer == new_buffer ) return; - if ( YY_CURRENT_BUFFER ) + if ( yy_current_buffer ) { /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; } - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( ); + yy_current_buffer = new_buffer; + yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ - (yy_did_buffer_switch_on_eof) = 1; -} + yy_did_buffer_switch_on_eof = 1; + } -static void yy_load_buffer_state (void) -{ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); -} -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * - * @return the allocated buffer state. - */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) -{ +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + { YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); @@ -3168,75 +3122,84 @@ static void yy_load_buffer_state (void) /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; - yy_init_buffer(b,file ); + yy_init_buffer( b, file ); return b; -} + } -/** Destroy the buffer. - * @param b a buffer created with yy_create_buffer() - * - */ - void yy_delete_buffer (YY_BUFFER_STATE b ) -{ - + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + { if ( ! b ) return; - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ); + yy_flex_free( (void *) b->yy_ch_buf ); - yyfree((void *) b ); -} + yy_flex_free( (void *) b ); + } -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a yyrestart() or at EOF. - */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) -{ - int oerrno = errno; - - yy_flush_buffer(b ); +#ifndef _WIN32 +#include +#else +#ifndef YY_ALWAYS_INTERACTIVE +#ifndef YY_NEVER_INTERACTIVE +extern int isatty YY_PROTO(( int )); +#endif +#endif +#endif + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + + { + yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; - /* If b is the current buffer, then yy_init_buffer was _probably_ - * called from yyrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } +#if YY_ALWAYS_INTERACTIVE + b->yy_is_interactive = 1; +#else +#if YY_NEVER_INTERACTIVE + b->yy_is_interactive = 0; +#else + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +#endif +#endif + } - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * - */ - void yy_flush_buffer (YY_BUFFER_STATE b ) -{ - if ( ! b ) +#ifdef YY_USE_PROTOS +void yy_flush_buffer( YY_BUFFER_STATE b ) +#else +void yy_flush_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( ! b ) return; b->yy_n_chars = 0; @@ -3253,121 +3216,29 @@ extern int isatty (int ); b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * - */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) -{ - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * - */ -void yypop_buffer_state (void) -{ - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void yyensure_buffer_stack (void) -{ - int num_to_alloc; - - if (!(yy_buffer_stack)) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - ); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; + if ( b == yy_current_buffer ) + yy_load_buffer_state(); } - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc - ((yy_buffer_stack), - num_to_alloc * sizeof(struct yy_buffer_state*) - ); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) -{ +#ifndef YY_NO_SCAN_BUFFER +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +#else +YY_BUFFER_STATE yy_scan_buffer( base, size ) +char *base; +yy_size_t size; +#endif + { YY_BUFFER_STATE b; - + if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); @@ -3381,42 +3252,47 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - yy_switch_to_buffer(b ); + yy_switch_to_buffer( b ); return b; -} + } +#endif -/** Setup the input buffer state to scan a string. The next call to yylex() will - * scan from a @e copy of @a str. - * @param str a NUL-terminated string to scan - * - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * yy_scan_bytes() instead. - */ -YY_BUFFER_STATE yy_scan_string (yyconst char * str ) -{ - - return yy_scan_bytes(str,strlen(str) ); -} -/** Setup the input buffer state to scan the given bytes. The next call to yylex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) -{ +#ifndef YY_NO_SCAN_STRING +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +#else +YY_BUFFER_STATE yy_scan_string( yy_str ) +yyconst char *yy_str; +#endif + { + int len; + for ( len = 0; yy_str[len]; ++len ) + ; + + return yy_scan_bytes( yy_str, len ); + } +#endif + + +#ifndef YY_NO_SCAN_BYTES +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) +#else +YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +yyconst char *bytes; +int len; +#endif + { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; - + /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; - buf = (char *) yyalloc(n ); + buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); @@ -3425,7 +3301,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; - b = yy_scan_buffer(buf,n ); + b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); @@ -3435,17 +3311,78 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) b->yy_is_our_buffer = 1; return b; -} + } +#endif + + +#ifndef YY_NO_PUSH_STATE +#ifdef YY_USE_PROTOS +static void yy_push_state( int new_state ) +#else +static void yy_push_state( new_state ) +int new_state; +#endif + { + if ( yy_start_stack_ptr >= yy_start_stack_depth ) + { + yy_size_t new_size; + + yy_start_stack_depth += YY_START_STACK_INCR; + new_size = yy_start_stack_depth * sizeof( int ); + + if ( ! yy_start_stack ) + yy_start_stack = (int *) yy_flex_alloc( new_size ); + + else + yy_start_stack = (int *) yy_flex_realloc( + (void *) yy_start_stack, new_size ); + + if ( ! yy_start_stack ) + YY_FATAL_ERROR( + "out of memory expanding start-condition stack" ); + } + + yy_start_stack[yy_start_stack_ptr++] = YY_START; + + BEGIN(new_state); + } +#endif + + +#ifndef YY_NO_POP_STATE +static void yy_pop_state() + { + if ( --yy_start_stack_ptr < 0 ) + YY_FATAL_ERROR( "start-condition stack underflow" ); + + BEGIN(yy_start_stack[yy_start_stack_ptr]); + } +#endif + + +#ifndef YY_NO_TOP_STATE +static int yy_top_state() + { + return yy_start_stack[yy_start_stack_ptr - 1]; + } +#endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif -static void yy_fatal_error (yyconst char* msg ) -{ - (void) fprintf( stderr, "%s\n", msg ); +#ifdef YY_USE_PROTOS +static void yy_fatal_error( yyconst char msg[] ) +#else +static void yy_fatal_error( msg ) +char msg[]; +#endif + { + (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); -} + } + + /* Redefine yyless() so it works in section 3 code. */ @@ -3454,145 +3391,68 @@ static void yy_fatal_error (yyconst char* msg ) do \ { \ /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ + yytext[yyleng] = yy_hold_char; \ + yy_c_buf_p = yytext + n; \ + yy_hold_char = *yy_c_buf_p; \ + *yy_c_buf_p = '\0'; \ + yyleng = n; \ } \ while ( 0 ) -/* Accessor methods (get/set functions) to struct members. */ -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - - return yylineno; -} - -/** Get the input stream. - * - */ -FILE *yyget_in (void) -{ - return yyin; -} - -/** Get the output stream. - * - */ -FILE *yyget_out (void) -{ - return yyout; -} - -/** Get the length of the current token. - * - */ -int yyget_leng (void) -{ - return yyleng; -} - -/** Get the current token. - * - */ - -char *yyget_text (void) -{ - return yytext; -} - -/** Set the current line number. - * @param line_number - * - */ -void yyset_lineno (int line_number ) -{ - - yylineno = line_number; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * - * @see yy_switch_to_buffer - */ -void yyset_in (FILE * in_str ) -{ - yyin = in_str ; -} - -void yyset_out (FILE * out_str ) -{ - yyout = out_str ; -} - -int yyget_debug (void) -{ - return yy_flex_debug; -} - -void yyset_debug (int bdebug ) -{ - yy_flex_debug = bdebug ; -} - -/* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (void) -{ - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } - - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack) ); - (yy_buffer_stack) = NULL; - - return 0; -} - -/* - * Internal utility routines. - */ +/* Internal utility routines. */ #ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) -{ +#ifdef YY_USE_PROTOS +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) +#else +static void yy_flex_strncpy( s1, s2, n ) +char *s1; +yyconst char *s2; +int n; +#endif + { register int i; - for ( i = 0; i < n; ++i ) + for ( i = 0; i < n; ++i ) s1[i] = s2[i]; -} + } #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s ) -{ +#ifdef YY_USE_PROTOS +static int yy_flex_strlen( yyconst char *s ) +#else +static int yy_flex_strlen( s ) +yyconst char *s; +#endif + { register int n; - for ( n = 0; s[n]; ++n ) + for ( n = 0; s[n]; ++n ) ; return n; -} + } #endif -void *yyalloc (yy_size_t size ) -{ - return (void *) malloc( size ); -} -void *yyrealloc (void * ptr, yy_size_t size ) -{ +#ifdef YY_USE_PROTOS +static void *yy_flex_alloc( yy_size_t size ) +#else +static void *yy_flex_alloc( size ) +yy_size_t size; +#endif + { + return (void *) malloc( size ); + } + +#ifdef YY_USE_PROTOS +static void *yy_flex_realloc( void *ptr, yy_size_t size ) +#else +static void *yy_flex_realloc( ptr, size ) +void *ptr; +yy_size_t size; +#endif + { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -3601,29 +3461,26 @@ void *yyrealloc (void * ptr, yy_size_t size ) * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); -} + } -void yyfree (void * ptr ) -{ - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -#undef YY_NEW_FILE -#undef YY_FLUSH_BUFFER -#undef yy_set_bol -#undef yy_new_buffer -#undef yy_set_interactive -#undef yytext_ptr -#undef YY_DO_BEFORE_ACTION - -#ifdef YY_DECL_IS_OURS -#undef YY_DECL_IS_OURS -#undef YY_DECL +#ifdef YY_USE_PROTOS +static void yy_flex_free( void *ptr ) +#else +static void yy_flex_free( ptr ) +void *ptr; #endif -#line 452 "ldlex.l" + { + free( ptr ); + } +#if YY_MAIN +int main() + { + yylex(); + return 0; + } +#endif +#line 449 "ldlex.l" @@ -3631,13 +3488,11 @@ void yyfree (void * ptr ) saving the current input info on the include stack. */ void -lex_push_file (file, name) - FILE *file; - const char *name; +lex_push_file (FILE *file, const char *name) { - if (include_stack_ptr >= MAX_INCLUDE_DEPTH) + if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { - einfo("%F:includes nested too deeply\n"); + einfo ("%F:includes nested too deeply\n"); } file_name_stack[include_stack_ptr] = name; lineno_stack[include_stack_ptr] = lineno; @@ -3646,27 +3501,25 @@ lex_push_file (file, name) include_stack_ptr++; lineno = 1; yyin = file; - yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE)); + yy_switch_to_buffer (yy_create_buffer (yyin, YY_BUF_SIZE)); } /* Return a newly created flex input buffer containing STRING, which is SIZE bytes long. */ -static YY_BUFFER_STATE -yy_create_string_buffer (string, size) - const char *string; - size_t size; +static YY_BUFFER_STATE +yy_create_string_buffer (const char *string, size_t size) { YY_BUFFER_STATE b; /* Calls to m-alloc get turned by sed into xm-alloc. */ - b = (YY_BUFFER_STATE) malloc (sizeof (struct yy_buffer_state)); + b = malloc (sizeof (struct yy_buffer_state)); b->yy_input_file = 0; b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) malloc ((unsigned) (b->yy_buf_size + 3)); + b->yy_ch_buf = malloc ((unsigned) (b->yy_buf_size + 3)); b->yy_ch_buf[0] = '\n'; strcpy (b->yy_ch_buf+1, string); @@ -3695,13 +3548,12 @@ yy_create_string_buffer (string, size) on the include stack. */ void -lex_redirect (string) - const char *string; +lex_redirect (const char *string) { YY_BUFFER_STATE tmp; yy_init = 0; - if (include_stack_ptr >= MAX_INCLUDE_DEPTH) + if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { einfo("%F: macros nested too deeply\n"); } @@ -3721,56 +3573,56 @@ static int state_stack[MAX_INCLUDE_DEPTH * 2]; static int *state_stack_p = state_stack; void -ldlex_script () +ldlex_script (void) { *(state_stack_p)++ = yy_start; BEGIN (SCRIPT); } void -ldlex_mri_script () +ldlex_mri_script (void) { *(state_stack_p)++ = yy_start; BEGIN (MRI); } void -ldlex_version_script () +ldlex_version_script (void) { *(state_stack_p)++ = yy_start; BEGIN (VERS_START); } void -ldlex_version_file () +ldlex_version_file (void) { *(state_stack_p)++ = yy_start; BEGIN (VERS_SCRIPT); } void -ldlex_defsym () +ldlex_defsym (void) { *(state_stack_p)++ = yy_start; BEGIN (DEFSYMEXP); } - + void -ldlex_expression () +ldlex_expression (void) { *(state_stack_p)++ = yy_start; BEGIN (EXPRESSION); } void -ldlex_both () +ldlex_both (void) { *(state_stack_p)++ = yy_start; BEGIN (BOTH); } void -ldlex_popstate () +ldlex_popstate (void) { yy_start = *(--state_stack_p); } @@ -3780,18 +3632,15 @@ ldlex_popstate () either the number of characters read, or 0 to indicate EOF. */ static void -yy_input (buf, result, max_size) - char *buf; - int *result; - int max_size; +yy_input (char *buf, int *result, int max_size) { - *result = 0; + *result = 0; if (YY_CURRENT_BUFFER->yy_input_file) { if (yyin) { - *result = fread ((char *) buf, 1, max_size, yyin); - if (*result < max_size && ferror (yyin)) + *result = fread (buf, 1, max_size, yyin); + if (*result < max_size && ferror (yyin)) einfo ("%F%P: read in flex scanner failed\n"); } } @@ -3800,14 +3649,14 @@ yy_input (buf, result, max_size) /* Eat the rest of a C-style comment. */ static void -comment () +comment (void) { int c; while (1) { c = input(); - while (c != '*' && c != EOF) + while (c != '*' && c != EOF) { if (c == '\n') lineno++; @@ -3838,8 +3687,7 @@ comment () in context WHERE. */ static void -lex_warn_invalid (where, what) - char *where, *what; +lex_warn_invalid (char *where, char *what) { char buf[5]; @@ -3861,4 +3709,3 @@ lex_warn_invalid (where, what) einfo ("%P:%S: ignoring invalid character `%s'%s\n", what, where); } - diff --git a/gnu/dist/binutils/ld/lexsup.c b/gnu/dist/binutils/ld/lexsup.c index 52cb0968b5bd..3aead4b92292 100644 --- a/gnu/dist/binutils/ld/lexsup.c +++ b/gnu/dist/binutils/ld/lexsup.c @@ -1,6 +1,6 @@ /* Parse options for the GNU linker. Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003 + 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -53,91 +53,97 @@ #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif -static int is_num PARAMS ((const char *, int, int, int)); -static void set_default_dirlist PARAMS ((char *)); -static void set_section_start PARAMS ((char *, char *)); -static void help PARAMS ((void)); +static void set_default_dirlist (char *); +static void set_section_start (char *, char *); +static void help (void); /* Non-zero if we are processing a --defsym from the command line. */ int parsing_defsym = 0; /* Codes used for the long options with no short synonyms. 150 isn't special; it's just an arbitrary non-ASCII char value. */ - -#define OPTION_ASSERT 150 -#define OPTION_CALL_SHARED (OPTION_ASSERT + 1) -#define OPTION_CREF (OPTION_CALL_SHARED + 1) -#define OPTION_DEFSYM (OPTION_CREF + 1) -#define OPTION_DEMANGLE (OPTION_DEFSYM + 1) -#define OPTION_DYNAMIC_LINKER (OPTION_DEMANGLE + 1) -#define OPTION_EB (OPTION_DYNAMIC_LINKER + 1) -#define OPTION_EL (OPTION_EB + 1) -#define OPTION_EMBEDDED_RELOCS (OPTION_EL + 1) -#define OPTION_EXPORT_DYNAMIC (OPTION_EMBEDDED_RELOCS + 1) -#define OPTION_HELP (OPTION_EXPORT_DYNAMIC + 1) -#define OPTION_IGNORE (OPTION_HELP + 1) -#define OPTION_MAP (OPTION_IGNORE + 1) -#define OPTION_NO_DEMANGLE (OPTION_MAP + 1) -#define OPTION_NO_KEEP_MEMORY (OPTION_NO_DEMANGLE + 1) -#define OPTION_NO_WARN_MISMATCH (OPTION_NO_KEEP_MEMORY + 1) -#define OPTION_NOINHIBIT_EXEC (OPTION_NO_WARN_MISMATCH + 1) -#define OPTION_NON_SHARED (OPTION_NOINHIBIT_EXEC + 1) -#define OPTION_NO_WHOLE_ARCHIVE (OPTION_NON_SHARED + 1) -#define OPTION_OFORMAT (OPTION_NO_WHOLE_ARCHIVE + 1) -#define OPTION_RELAX (OPTION_OFORMAT + 1) -#define OPTION_RETAIN_SYMBOLS_FILE (OPTION_RELAX + 1) -#define OPTION_RPATH (OPTION_RETAIN_SYMBOLS_FILE + 1) -#define OPTION_RPATH_LINK (OPTION_RPATH + 1) -#define OPTION_SHARED (OPTION_RPATH_LINK + 1) -#define OPTION_SONAME (OPTION_SHARED + 1) -#define OPTION_SORT_COMMON (OPTION_SONAME + 1) -#define OPTION_STATS (OPTION_SORT_COMMON + 1) -#define OPTION_SYMBOLIC (OPTION_STATS + 1) -#define OPTION_TASK_LINK (OPTION_SYMBOLIC + 1) -#define OPTION_TBSS (OPTION_TASK_LINK + 1) -#define OPTION_TDATA (OPTION_TBSS + 1) -#define OPTION_TTEXT (OPTION_TDATA + 1) -#define OPTION_TRADITIONAL_FORMAT (OPTION_TTEXT + 1) -#define OPTION_UR (OPTION_TRADITIONAL_FORMAT + 1) -#define OPTION_VERBOSE (OPTION_UR + 1) -#define OPTION_VERSION (OPTION_VERBOSE + 1) -#define OPTION_VERSION_SCRIPT (OPTION_VERSION + 1) -#define OPTION_VERSION_EXPORTS_SECTION (OPTION_VERSION_SCRIPT + 1) -#define OPTION_WARN_COMMON (OPTION_VERSION_EXPORTS_SECTION + 1) -#define OPTION_WARN_CONSTRUCTORS (OPTION_WARN_COMMON + 1) -#define OPTION_WARN_FATAL (OPTION_WARN_CONSTRUCTORS + 1) -#define OPTION_WARN_MULTIPLE_GP (OPTION_WARN_FATAL + 1) -#define OPTION_WARN_ONCE (OPTION_WARN_MULTIPLE_GP + 1) -#define OPTION_WARN_SECTION_ALIGN (OPTION_WARN_ONCE + 1) -#define OPTION_SPLIT_BY_RELOC (OPTION_WARN_SECTION_ALIGN + 1) -#define OPTION_SPLIT_BY_FILE (OPTION_SPLIT_BY_RELOC + 1) -#define OPTION_WHOLE_ARCHIVE (OPTION_SPLIT_BY_FILE + 1) -#define OPTION_WRAP (OPTION_WHOLE_ARCHIVE + 1) -#define OPTION_FORCE_EXE_SUFFIX (OPTION_WRAP + 1) -#define OPTION_GC_SECTIONS (OPTION_FORCE_EXE_SUFFIX + 1) -#define OPTION_NO_GC_SECTIONS (OPTION_GC_SECTIONS + 1) -#define OPTION_CHECK_SECTIONS (OPTION_NO_GC_SECTIONS + 1) -#define OPTION_NO_CHECK_SECTIONS (OPTION_CHECK_SECTIONS + 1) -#define OPTION_MPC860C0 (OPTION_NO_CHECK_SECTIONS + 1) -#define OPTION_NO_UNDEFINED (OPTION_MPC860C0 + 1) -#define OPTION_INIT (OPTION_NO_UNDEFINED + 1) -#define OPTION_FINI (OPTION_INIT + 1) -#define OPTION_SECTION_START (OPTION_FINI + 1) -#define OPTION_UNIQUE (OPTION_SECTION_START + 1) -#define OPTION_TARGET_HELP (OPTION_UNIQUE + 1) -#define OPTION_ALLOW_SHLIB_UNDEFINED (OPTION_TARGET_HELP + 1) -#define OPTION_NO_ALLOW_SHLIB_UNDEFINED (OPTION_ALLOW_SHLIB_UNDEFINED + 1) -#define OPTION_ALLOW_MULTIPLE_DEFINITION (OPTION_NO_ALLOW_SHLIB_UNDEFINED + 1) -#define OPTION_NO_UNDEFINED_VERSION (OPTION_ALLOW_MULTIPLE_DEFINITION + 1) -#define OPTION_DISCARD_NONE (OPTION_NO_UNDEFINED_VERSION + 1) -#define OPTION_SPARE_DYNAMIC_TAGS (OPTION_DISCARD_NONE + 1) -#define OPTION_NO_DEFINE_COMMON (OPTION_SPARE_DYNAMIC_TAGS + 1) -#define OPTION_NOSTDLIB (OPTION_NO_DEFINE_COMMON + 1) -#define OPTION_NO_OMAGIC (OPTION_NOSTDLIB + 1) -#define OPTION_STRIP_DISCARDED (OPTION_NO_OMAGIC + 1) -#define OPTION_NO_STRIP_DISCARDED (OPTION_STRIP_DISCARDED + 1) -#define OPTION_ACCEPT_UNKNOWN_INPUT_ARCH (OPTION_NO_STRIP_DISCARDED + 1) -#define OPTION_NO_ACCEPT_UNKNOWN_INPUT_ARCH (OPTION_ACCEPT_UNKNOWN_INPUT_ARCH + 1) +enum option_values +{ + OPTION_ASSERT = 150, + OPTION_CALL_SHARED, + OPTION_CREF, + OPTION_DEFSYM, + OPTION_DEMANGLE, + OPTION_DYNAMIC_LINKER, + OPTION_EB, + OPTION_EL, + OPTION_EMBEDDED_RELOCS, + OPTION_EXPORT_DYNAMIC, + OPTION_HELP, + OPTION_IGNORE, + OPTION_MAP, + OPTION_NO_DEMANGLE, + OPTION_NO_KEEP_MEMORY, + OPTION_NO_WARN_MISMATCH, + OPTION_NOINHIBIT_EXEC, + OPTION_NON_SHARED, + OPTION_NO_WHOLE_ARCHIVE, + OPTION_OFORMAT, + OPTION_RELAX, + OPTION_RETAIN_SYMBOLS_FILE, + OPTION_RPATH, + OPTION_RPATH_LINK, + OPTION_SHARED, + OPTION_SONAME, + OPTION_SORT_COMMON, + OPTION_STATS, + OPTION_SYMBOLIC, + OPTION_TASK_LINK, + OPTION_TBSS, + OPTION_TDATA, + OPTION_TTEXT, + OPTION_TRADITIONAL_FORMAT, + OPTION_UR, + OPTION_VERBOSE, + OPTION_VERSION, + OPTION_VERSION_SCRIPT, + OPTION_VERSION_EXPORTS_SECTION, + OPTION_WARN_COMMON, + OPTION_WARN_CONSTRUCTORS, + OPTION_WARN_FATAL, + OPTION_WARN_MULTIPLE_GP, + OPTION_WARN_ONCE, + OPTION_WARN_SECTION_ALIGN, + OPTION_SPLIT_BY_RELOC, + OPTION_SPLIT_BY_FILE , + OPTION_WHOLE_ARCHIVE, + OPTION_AS_NEEDED, + OPTION_NO_AS_NEEDED, + OPTION_WRAP, + OPTION_FORCE_EXE_SUFFIX, + OPTION_GC_SECTIONS, + OPTION_NO_GC_SECTIONS, + OPTION_CHECK_SECTIONS, + OPTION_NO_CHECK_SECTIONS, + OPTION_NO_UNDEFINED, + OPTION_INIT, + OPTION_FINI, + OPTION_SECTION_START, + OPTION_UNIQUE, + OPTION_TARGET_HELP, + OPTION_ALLOW_SHLIB_UNDEFINED, + OPTION_NO_ALLOW_SHLIB_UNDEFINED, + OPTION_ALLOW_MULTIPLE_DEFINITION, + OPTION_NO_UNDEFINED_VERSION, + OPTION_DISCARD_NONE, + OPTION_SPARE_DYNAMIC_TAGS, + OPTION_NO_DEFINE_COMMON, + OPTION_NOSTDLIB, + OPTION_NO_OMAGIC, + OPTION_STRIP_DISCARDED, + OPTION_NO_STRIP_DISCARDED, + OPTION_ACCEPT_UNKNOWN_INPUT_ARCH, + OPTION_NO_ACCEPT_UNKNOWN_INPUT_ARCH, + OPTION_PIE, + OPTION_UNRESOLVED_SYMBOLS, + OPTION_WARN_UNRESOLVED_SYMBOLS, + OPTION_ERROR_UNRESOLVED_SYMBOLS +}; /* The long options. This structure is used for both the option parsing and the help text. */ @@ -233,8 +239,8 @@ static const struct ld_option ld_options[] = '\0', NULL, N_("Ignored for SVR4 compatibility"), ONE_DASH }, { {"emit-relocs", no_argument, NULL, 'q'}, 'q', NULL, "Generate relocations in final output", TWO_DASHES }, - { {"relocateable", no_argument, NULL, 'r'}, - 'r', NULL, N_("Generate relocateable output"), TWO_DASHES }, + { {"relocatable", no_argument, NULL, 'r'}, + 'r', NULL, N_("Generate relocatable output"), TWO_DASHES }, { {NULL, no_argument, NULL, '\0'}, 'i', NULL, NULL, ONE_DASH }, { {"just-symbols", required_argument, NULL, 'R'}, @@ -334,11 +340,11 @@ static const struct ld_option ld_options[] = { {"no-keep-memory", no_argument, NULL, OPTION_NO_KEEP_MEMORY}, '\0', NULL, N_("Use less memory and more disk I/O"), TWO_DASHES }, { {"no-undefined", no_argument, NULL, OPTION_NO_UNDEFINED}, - '\0', NULL, N_("Allow no undefined symbols"), TWO_DASHES }, + '\0', NULL, N_("Do not allow unresolved references in object files"), TWO_DASHES }, { {"allow-shlib-undefined", no_argument, NULL, OPTION_ALLOW_SHLIB_UNDEFINED}, - '\0', NULL, N_("Allow undefined symbols in shared objects (the default)"), TWO_DASHES }, + '\0', NULL, N_("Allow unresolved references in shared libaries"), TWO_DASHES }, { {"no-allow-shlib-undefined", no_argument, NULL, OPTION_NO_ALLOW_SHLIB_UNDEFINED}, - '\0', NULL, N_("Do not allow undefined symbols in shared objects"), TWO_DASHES }, + '\0', NULL, N_("Do not allow unresolved references in shared libs"), TWO_DASHES }, { {"allow-multiple-definition", no_argument, NULL, OPTION_ALLOW_MULTIPLE_DEFINITION}, '\0', NULL, N_("Allow multiple definitions"), TWO_DASHES }, { {"no-undefined-version", no_argument, NULL, OPTION_NO_UNDEFINED_VERSION}, @@ -370,6 +376,10 @@ static const struct ld_option ld_options[] = '\0', NULL, N_("Create a shared library"), ONE_DASH }, { {"Bshareable", no_argument, NULL, OPTION_SHARED }, /* FreeBSD, NetBSD. */ '\0', NULL, NULL, ONE_DASH }, + { {"pie", no_argument, NULL, OPTION_PIE}, + '\0', NULL, N_("Create a position independent executable"), ONE_DASH }, + { {"pic-executable", no_argument, NULL, OPTION_PIE}, + '\0', NULL, NULL, TWO_DASHES }, { {"sort-common", no_argument, NULL, OPTION_SORT_COMMON}, '\0', NULL, N_("Sort common symbols by size"), TWO_DASHES }, { {"sort_common", no_argument, NULL, OPTION_SORT_COMMON}, @@ -396,6 +406,9 @@ static const struct ld_option ld_options[] = '\0', N_("ADDRESS"), N_("Set address of .data section"), ONE_DASH }, { {"Ttext", required_argument, NULL, OPTION_TTEXT}, '\0', N_("ADDRESS"), N_("Set address of .text section"), ONE_DASH }, + { {"unresolved-symbols=", required_argument, NULL, OPTION_UNRESOLVED_SYMBOLS}, + '\0', NULL, N_("How to handle unresolved symbols. is:\n\t\t\t\tignore-all, report-all, ignore-in-object-files,\n\t\t\t\tignore-in-shared-libs"), + TWO_DASHES }, { {"verbose", no_argument, NULL, OPTION_VERBOSE}, '\0', NULL, N_("Output lots of information during link"), TWO_DASHES }, { {"dll-verbose", no_argument, NULL, OPTION_VERBOSE}, /* Linux. */ @@ -418,6 +431,10 @@ static const struct ld_option ld_options[] = { {"warn-section-align", no_argument, NULL, OPTION_WARN_SECTION_ALIGN}, '\0', NULL, N_("Warn if start of section changes due to alignment"), TWO_DASHES }, + { {"warn-unresolved-symbols", no_argument, NULL, OPTION_WARN_UNRESOLVED_SYMBOLS}, + '\0', NULL, N_("Report unresolved symbols as warnings"), TWO_DASHES }, + { {"error-unresolved-symbols", no_argument, NULL, OPTION_ERROR_UNRESOLVED_SYMBOLS}, + '\0', NULL, N_("Report unresolved symbols as errors"), TWO_DASHES }, { {"fatal-warnings", no_argument, NULL, OPTION_WARN_FATAL}, '\0', NULL, N_("Treat warnings as errors"), TWO_DASHES }, @@ -425,45 +442,18 @@ static const struct ld_option ld_options[] = '\0', NULL, N_("Include all objects from following archives"), TWO_DASHES }, { {"Bforcearchive", no_argument, NULL, OPTION_WHOLE_ARCHIVE}, '\0', NULL, NULL, TWO_DASHES }, /* NetBSD. */ + { {"as-needed", no_argument, NULL, OPTION_AS_NEEDED}, + '\0', NULL, N_("Only set DT_NEEDED for following dynamic libs if used"), TWO_DASHES }, + { {"no-as-needed", no_argument, NULL, OPTION_NO_AS_NEEDED}, + '\0', NULL, N_("Always set DT_NEEDED for following dynamic libs"), TWO_DASHES }, { {"wrap", required_argument, NULL, OPTION_WRAP}, - '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES }, - { {"mpc860c0", optional_argument, NULL, OPTION_MPC860C0}, - '\0', N_("[=WORDS]"), N_("Modify problematic branches in last WORDS (1-10,\n\t\t\t\tdefault 5) words of a page"), TWO_DASHES } + '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES } }; #define OPTION_COUNT ARRAY_SIZE (ld_options) -/* Test STRING for containing a string of digits that form a number - between MIN and MAX. The return value is the number or ERR. */ - -static int -is_num (string, min, max, err) - const char *string; - int min; - int max; - int err; -{ - int result = 0; - - for (; *string; ++string) - { - if (! ISDIGIT (*string)) - { - result = err; - break; - } - result = result * 10 + (*string - '0'); - } - if (result < min || result > max) - result = err; - - return result; -} - void -parse_args (argc, argv) - unsigned argc; - char **argv; +parse_args (unsigned argc, char **argv) { unsigned i; int is, il, irl; @@ -473,12 +463,11 @@ parse_args (argc, argv) struct option *longopts; struct option *really_longopts; int last_optind; + enum report_method how_to_report_unresolved_symbols = RM_GENERATE_ERROR; - shortopts = (char *) xmalloc (OPTION_COUNT * 3 + 2); - longopts = (struct option *) xmalloc (sizeof (*longopts) - * (OPTION_COUNT + 1)); - really_longopts = (struct option *) xmalloc (sizeof (*really_longopts) - * (OPTION_COUNT + 1)); + shortopts = xmalloc (OPTION_COUNT * 3 + 2); + longopts = xmalloc (sizeof (*longopts) * (OPTION_COUNT + 1)); + really_longopts = xmalloc (sizeof (*really_longopts) * (OPTION_COUNT + 1)); /* Starting the short option string with '-' is for programs that expect options and other ARGV-elements in any order and that care about @@ -563,7 +552,7 @@ parse_args (argc, argv) { char *n; - n = (char *) xmalloc (strlen (argv[i]) + 20); + n = xmalloc (strlen (argv[i]) + 20); sprintf (n, "--library=%s", argv[i] + 2); argv[i] = n; } @@ -610,16 +599,15 @@ parse_args (argc, argv) einfo (_("%P%F: use the --help option for usage information\n")); case 1: /* File name. */ - lang_add_input_file (optarg, lang_input_file_is_file_enum, - (char *) NULL); + lang_add_input_file (optarg, lang_input_file_is_file_enum, NULL); break; case OPTION_IGNORE: break; case 'a': /* For HP/UX compatibility. Actually -a shared should mean - ``use only shared libraries'' but, then, we don't - currently support shared libraries on HP/UX anyhow. */ + ``use only shared libraries'' but, then, we don't + currently support shared libraries on HP/UX anyhow. */ if (strcmp (optarg, "archive") == 0) config.dynamic_link = FALSE; else if (strcmp (optarg, "shared") == 0 @@ -711,8 +699,7 @@ parse_args (argc, argv) case 'f': if (command_line.auxiliary_filters == NULL) { - command_line.auxiliary_filters = - (char **) xmalloc (2 * sizeof (char *)); + command_line.auxiliary_filters = xmalloc (2 * sizeof (char *)); command_line.auxiliary_filters[0] = optarg; command_line.auxiliary_filters[1] = NULL; } @@ -724,9 +711,9 @@ parse_args (argc, argv) c = 0; for (p = command_line.auxiliary_filters; *p != NULL; p++) ++c; - command_line.auxiliary_filters = - (char **) xrealloc (command_line.auxiliary_filters, - (c + 2) * sizeof (char *)); + command_line.auxiliary_filters + = xrealloc (command_line.auxiliary_filters, + (c + 2) * sizeof (char *)); command_line.auxiliary_filters[c] = optarg; command_line.auxiliary_filters[c + 1] = NULL; } @@ -759,8 +746,7 @@ parse_args (argc, argv) ldfile_add_library_path (optarg, TRUE); break; case 'l': - lang_add_input_file (optarg, lang_input_file_is_l_enum, - (char *) NULL); + lang_add_input_file (optarg, lang_input_file_is_l_enum, NULL); break; case 'M': config.map_filename = "-"; @@ -799,14 +785,53 @@ parse_args (argc, argv) link_info.keep_memory = FALSE; break; case OPTION_NO_UNDEFINED: - link_info.no_undefined = TRUE; + link_info.unresolved_syms_in_objects = how_to_report_unresolved_symbols; break; case OPTION_ALLOW_SHLIB_UNDEFINED: - link_info.allow_shlib_undefined = TRUE; + link_info.unresolved_syms_in_shared_libs = RM_IGNORE; break; case OPTION_NO_ALLOW_SHLIB_UNDEFINED: - link_info.allow_shlib_undefined = FALSE; + link_info.unresolved_syms_in_shared_libs = how_to_report_unresolved_symbols; break; + case OPTION_UNRESOLVED_SYMBOLS: + if (strcmp (optarg, "ignore-all") == 0) + { + link_info.unresolved_syms_in_objects = RM_IGNORE; + link_info.unresolved_syms_in_shared_libs = RM_IGNORE; + } + else if (strcmp (optarg, "report-all") == 0) + { + link_info.unresolved_syms_in_objects = how_to_report_unresolved_symbols; + link_info.unresolved_syms_in_shared_libs = how_to_report_unresolved_symbols; + } + else if (strcmp (optarg, "ignore-in-object-files") == 0) + { + link_info.unresolved_syms_in_objects = RM_IGNORE; + link_info.unresolved_syms_in_shared_libs = how_to_report_unresolved_symbols; + } + else if (strcmp (optarg, "ignore-in-shared-libs") == 0) + { + link_info.unresolved_syms_in_objects = how_to_report_unresolved_symbols; + link_info.unresolved_syms_in_shared_libs = RM_IGNORE; + } + else + einfo (_("%P%F: bad --unresolved-symbols option: %s\n"), optarg); + break; + case OPTION_WARN_UNRESOLVED_SYMBOLS: + how_to_report_unresolved_symbols = RM_GENERATE_WARNING; + if (link_info.unresolved_syms_in_objects == RM_GENERATE_ERROR) + link_info.unresolved_syms_in_objects = RM_GENERATE_WARNING; + if (link_info.unresolved_syms_in_shared_libs == RM_GENERATE_ERROR) + link_info.unresolved_syms_in_shared_libs = RM_GENERATE_WARNING; + break; + + case OPTION_ERROR_UNRESOLVED_SYMBOLS: + how_to_report_unresolved_symbols = RM_GENERATE_ERROR; + if (link_info.unresolved_syms_in_objects == RM_GENERATE_WARNING) + link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR; + if (link_info.unresolved_syms_in_shared_libs == RM_GENERATE_WARNING) + link_info.unresolved_syms_in_shared_libs = RM_GENERATE_ERROR; + break; case OPTION_ALLOW_MULTIPLE_DEFINITION: link_info.allow_multiple_definition = TRUE; break; @@ -839,7 +864,7 @@ parse_args (argc, argv) lang_add_output (optarg, 0); break; case OPTION_OFORMAT: - lang_add_output_format (optarg, (char *) NULL, (char *) NULL, 0); + lang_add_output_format (optarg, NULL, NULL, 0); break; case 'q': link_info.emitrelocations = TRUE; @@ -857,7 +882,7 @@ parse_args (argc, argv) and will seg-fault the next time around. */ einfo(_("%P%F: bad -rpath option\n")); - link_info.relocateable = TRUE; + link_info.relocatable = TRUE; config.build_constructors = FALSE; config.magic_demand_paged = FALSE; config.text_read_only = FALSE; @@ -879,7 +904,7 @@ parse_args (argc, argv) { lang_add_input_file (optarg, lang_input_file_is_symbols_only_enum, - (char *) NULL); + NULL); break; } } @@ -957,10 +982,27 @@ parse_args (argc, argv) break; case OPTION_SHARED: if (config.has_shared) - link_info.shared = TRUE; + { + link_info.shared = TRUE; + /* When creating a shared library, the default + behaviour is to ignore any unresolved references. */ + if (link_info.unresolved_syms_in_objects == RM_NOT_YET_SET) + link_info.unresolved_syms_in_objects = RM_IGNORE; + if (link_info.unresolved_syms_in_shared_libs == RM_NOT_YET_SET) + link_info.unresolved_syms_in_shared_libs = RM_IGNORE; + } else einfo (_("%P%F: -shared not supported\n")); break; + case OPTION_PIE: + if (config.has_shared) + { + link_info.shared = TRUE; + link_info.pie = TRUE; + } + else + einfo (_("%P%F: -pie not supported\n")); + break; case 'h': /* Used on Solaris. */ case OPTION_SONAME: command_line.soname = optarg; @@ -1030,7 +1072,7 @@ parse_args (argc, argv) link_info.task_link = TRUE; /* Fall through - do an implied -r option. */ case OPTION_UR: - link_info.relocateable = TRUE; + link_info.relocatable = TRUE; config.build_constructors = TRUE; config.magic_demand_paged = FALSE; config.text_read_only = FALSE; @@ -1049,6 +1091,7 @@ parse_args (argc, argv) ldversion (1); version_printed = TRUE; trace_file_tries = TRUE; + overflow_cutoff_limit = -2; break; case 'v': ldversion (0); @@ -1064,8 +1107,8 @@ parse_args (argc, argv) break; case OPTION_VERSION_SCRIPT: /* This option indicates a small script that only specifies - version information. Read it, but don't assume that - we've seen a linker script. */ + version information. Read it, but don't assume that + we've seen a linker script. */ { FILE *hold_script_handle; @@ -1103,6 +1146,12 @@ parse_args (argc, argv) case OPTION_WHOLE_ARCHIVE: whole_archive = TRUE; break; + case OPTION_AS_NEEDED: + as_needed = TRUE; + break; + case OPTION_NO_AS_NEEDED: + as_needed = FALSE; + break; case OPTION_WRAP: add_wrap (optarg); break; @@ -1166,22 +1215,6 @@ parse_args (argc, argv) lang_leave_group (); ingroup = 0; break; - case OPTION_MPC860C0: - /* Default value (in bytes). */ - link_info.mpc860c0 = 20; - if (optarg) - { - unsigned words; - - words = is_num (optarg, 1, 10, 0); - if (words == 0) - einfo (_("%P%F: invalid argument to option \"mpc860c0\"\n")); - - /* Convert words to bytes. */ - link_info.mpc860c0 = words * 4; - } - command_line.relax = TRUE; - break; case OPTION_INIT: link_info.init_function = optarg; @@ -1201,14 +1234,21 @@ parse_args (argc, argv) set_default_dirlist (default_dirlist); free (default_dirlist); } + + if (link_info.unresolved_syms_in_objects == RM_NOT_YET_SET) + /* FIXME: Should we allow emulations a chance to set this ? */ + link_info.unresolved_syms_in_objects = how_to_report_unresolved_symbols; + + if (link_info.unresolved_syms_in_shared_libs == RM_NOT_YET_SET) + /* FIXME: Should we allow emulations a chance to set this ? */ + link_info.unresolved_syms_in_shared_libs = how_to_report_unresolved_symbols; } /* Add the (colon-separated) elements of DIRLIST_PTR to the library search path. */ static void -set_default_dirlist (dirlist_ptr) - char *dirlist_ptr; +set_default_dirlist (char *dirlist_ptr) { char *p; @@ -1226,8 +1266,7 @@ set_default_dirlist (dirlist_ptr) } static void -set_section_start (sect, valstr) - char *sect, *valstr; +set_section_start (char *sect, char *valstr) { const char *end; bfd_vma val = bfd_scan_vma (valstr, &end, 16); @@ -1239,7 +1278,7 @@ set_section_start (sect, valstr) /* Print help messages for the options. */ static void -help () +help (void) { unsigned i; const char **targets, **pp; diff --git a/gnu/dist/binutils/ld/po/es.gmo b/gnu/dist/binutils/ld/po/es.gmo index fd59f90fad20..1a6a7b550160 100644 Binary files a/gnu/dist/binutils/ld/po/es.gmo and b/gnu/dist/binutils/ld/po/es.gmo differ diff --git a/gnu/dist/binutils/ld/po/fr.gmo b/gnu/dist/binutils/ld/po/fr.gmo index 91a70af95374..f89d8825cec4 100644 Binary files a/gnu/dist/binutils/ld/po/fr.gmo and b/gnu/dist/binutils/ld/po/fr.gmo differ diff --git a/gnu/dist/binutils/ld/po/sv.gmo b/gnu/dist/binutils/ld/po/sv.gmo index 415d26154e0c..f7038a8a951b 100644 Binary files a/gnu/dist/binutils/ld/po/sv.gmo and b/gnu/dist/binutils/ld/po/sv.gmo differ diff --git a/gnu/dist/binutils/ld/po/tr.gmo b/gnu/dist/binutils/ld/po/tr.gmo index 6c03a1945d6e..a8b981bb3f1a 100644 Binary files a/gnu/dist/binutils/ld/po/tr.gmo and b/gnu/dist/binutils/ld/po/tr.gmo differ diff --git a/gnu/dist/binutils/ld/scripttempl/elf32avr.sc b/gnu/dist/binutils/ld/scripttempl/elf32avr.sc deleted file mode 100644 index ba9ec22ebcd0..000000000000 --- a/gnu/dist/binutils/ld/scripttempl/elf32avr.sc +++ /dev/null @@ -1,151 +0,0 @@ -cat < text} - - .data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))} - { - ${RELOCATING+ PROVIDE (__data_start = .) ; } - *(.data) - *(.gnu.linkonce.d*) - ${RELOCATING+. = ALIGN(2);} - ${RELOCATING+ _edata = . ; } - } ${RELOCATING+ > data} - - .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : - { - ${RELOCATING+ PROVIDE (__bss_start = .) ; } - *(.bss) - *(COMMON) - ${RELOCATING+ PROVIDE (__bss_end = .) ; } - ${RELOCATING+ _end = . ; } - } ${RELOCATING+ > data} - - .eeprom ${RELOCATING-0}: - ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))} - { - *(.eeprom*) - ${RELOCATING+ __eeprom_end = . ; } - } ${RELOCATING+ > eeprom} - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - - PROVIDE (__stack = ${STACK}) ; -} -EOF - diff --git a/gnu/dist/binutils/libiberty/configure.in b/gnu/dist/binutils/libiberty/configure.in deleted file mode 100644 index e142cf501c8a..000000000000 --- a/gnu/dist/binutils/libiberty/configure.in +++ /dev/null @@ -1,481 +0,0 @@ -dnl Process this file with autoconf to produce a configure script - -AC_PREREQ(2.13) -AC_INIT(xmalloc.c) - -# This works around the fact that libtool configuration may change LD -# for this particular configuration, but some shells, instead of -# keeping the changes in LD private, export them just because LD is -# exported. We don't use libtool yet, but some day we might, so... -ORIGINAL_LD_FOR_MULTILIBS=$LD - -dnl We use these options to decide which functions to include. -AC_ARG_WITH(target-subdir, -[ --with-target-subdir=SUBDIR Configuring in a subdirectory for target]) -AC_ARG_WITH(build-subdir, -[ --with-build-subdir=SUBDIR Configuring in a subdirectory for build]) -AC_ARG_WITH(cross-host, -[ --with-cross-host=HOST Configuring with a cross compiler]) -AC_ARG_WITH(newlib, -[ --with-newlib Configuring with newlib]) - -if test "${srcdir}" = "."; then - if test -n "${with_build_subdir}"; then - libiberty_topdir="${srcdir}/../.." - with_target_subdir= - elif test -z "${with_target_subdir}"; then - libiberty_topdir="${srcdir}/.." - else - if test "${with_target_subdir}" != "."; then - libiberty_topdir="${srcdir}/${with_multisrctop}../.." - else - libiberty_topdir="${srcdir}/${with_multisrctop}.." - fi - fi -else - libiberty_topdir="${srcdir}/.." -fi -AC_SUBST(libiberty_topdir) -AC_CONFIG_AUX_DIR($libiberty_topdir) - -dnl Very limited version of automake's enable-maintainer-mode - -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode - enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - maintainer_mode=$enableval, - maintainer_mode=no) - -AC_MSG_RESULT($maintainer_mode) - -if test "$maintainer_mode" = "yes"; then - MAINT='' - NOTMAINT='#' -else - MAINT='#' - NOTMAINT='' -fi -AC_SUBST(MAINT)dnl -AC_SUBST(NOTMAINT)dnl - -# Do we have a single-tree copy of texinfo? Even if we do, we can't -# rely on it - libiberty is built before texinfo. -AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ) -if test "x$MAKEINFO" = "x"; then - MAKEINFO="@echo makeinfo missing; true" - BUILD_INFO= -else - BUILD_INFO=info - case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in - x*\ [[1-3]].* ) - MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true" - BUILD_INFO= - AC_MSG_WARN([ -*** Makeinfo is too old. Info documentation will not be built.]) - ;; - esac -fi -AC_SUBST(MAKEINFO) -AC_SUBST(BUILD_INFO) - -AC_CHECK_PROG(PERL, perl, perl, ) -if test x"$PERL" = x""; then - HAVE_PERL='#' -else - HAVE_PERL='' -fi -AC_SUBST(HAVE_PERL) - -AC_CANONICAL_HOST - -dnl When we start using automake: -dnl AM_INIT_AUTOMAKE(libiberty, 1.0) - -dnl These must be called before AM_PROG_LIBTOOL, because it may want -dnl to call AC_CHECK_PROG. -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -LIB_AC_PROG_CC - -AC_PROG_CC_C_O -# autoconf is lame and doesn't give us any substitution variable for this. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then - NO_MINUS_C_MINUS_O=yes -else - OUTPUT_OPTION='-o $@' -fi -AC_SUBST(NO_MINUS_C_MINUS_O) -AC_SUBST(OUTPUT_OPTION) - -AC_ISC_POSIX -AC_C_CONST -AC_C_INLINE - -dnl When we start using libtool: -dnl Default to a non shared library. This may be overridden by the -dnl configure option --enable-shared. -dnl AM_DISABLE_SHARED - -dnl When we start using libtool: -dnl AM_PROG_LIBTOOL - -dnl When we start using automake: -dnl AM_CONFIG_HEADER(config.h:config.in) -AC_CONFIG_HEADER(config.h:config.in) - -dnl When we start using automake: -dnl AM_MAINTAINER_MODE -dnl AC_EXEEXT - -dnl When we start using automake: -dnl AM_PROG_INSTALL -AC_PROG_INSTALL - -. ${srcdir}/config.table -host_makefile_frag=${frag} -AC_SUBST_FILE(host_makefile_frag) - -# It's OK to check for header files. Although the compiler may not be -# able to link anything, it had better be able to at least compile -# something. -AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h) -AC_HEADER_SYS_WAIT -AC_HEADER_TIME - -libiberty_AC_DECLARE_ERRNO - -AC_CHECK_TYPE(uintptr_t, unsigned long) -# Given the above check, we always have uintptr_t or a fallback -# definition. So define HAVE_UINTPTR_T in case any imported code -# relies on it. -AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.]) - -AC_TYPE_PID_T - -# This is the list of functions which libiberty will provide if they -# are not available on the host. - -funcs="asprintf" -funcs="$funcs atexit" -funcs="$funcs basename" -funcs="$funcs bcmp" -funcs="$funcs bcopy" -funcs="$funcs bsearch" -funcs="$funcs bzero" -funcs="$funcs calloc" -funcs="$funcs clock" -funcs="$funcs ffs" -funcs="$funcs getcwd" -funcs="$funcs getpagesize" -funcs="$funcs index" -funcs="$funcs insque" -funcs="$funcs memchr" -funcs="$funcs memcmp" -funcs="$funcs memcpy" -funcs="$funcs memmove" -funcs="$funcs mempcpy" -funcs="$funcs memset" -funcs="$funcs mkstemps" -funcs="$funcs putenv" -funcs="$funcs random" -funcs="$funcs rename" -funcs="$funcs rindex" -funcs="$funcs setenv" -funcs="$funcs snprintf" -funcs="$funcs sigsetmask" -funcs="$funcs stpcpy" -funcs="$funcs stpncpy" -funcs="$funcs strcasecmp" -funcs="$funcs strchr" -funcs="$funcs strdup" -funcs="$funcs strncasecmp" -funcs="$funcs strrchr" -funcs="$funcs strstr" -funcs="$funcs strtod" -funcs="$funcs strtol" -funcs="$funcs strtoul" -funcs="$funcs tmpnam" -funcs="$funcs vasprintf" -funcs="$funcs vfprintf" -funcs="$funcs vprintf" -funcs="$funcs vsnprintf" -funcs="$funcs vsprintf" -funcs="$funcs waitpid" - -# Also in the old function.def file: alloca, vfork, getopt. - -vars="sys_errlist sys_nerr sys_siglist _system_configuration" - -checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" -checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" -checkfuncs="$checkfuncs getsysinfo table sysctl" - -# These are neither executed nor required, but they help keep -# autoheader happy without adding a bunch of text to acconfig.h. -if test "x" = "y"; then - AC_CHECK_FUNCS(asprintf atexit basename bcmp bcopy bsearch bzero calloc clock) - AC_CHECK_FUNCS(getcwd getpagesize index insque mkstemps memchr memcmp memcpy) - AC_CHECK_FUNCS(memmove mempcpy memset putenv random rename rindex sigsetmask) - AC_CHECK_FUNCS(strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr) - AC_CHECK_FUNCS(strtod strtol strtoul tmpnam vasprintf vfprintf vprintf) - AC_CHECK_FUNCS(vsprintf waitpid getrusage on_exit psignal strerror strsignal) - AC_CHECK_FUNCS(sysconf times sbrk gettimeofday ffs snprintf vsnprintf) - AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl) - AC_CHECK_FUNCS(realpath canonicalize_file_name) - AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) - AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) - AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.]) - AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, [Define if you have the _system_configuration variable.]) -fi - -# For each of these functions, if the host does not provide the -# function we want to put FN.o in LIBOBJS, and if the host does -# provide the function, we want to define HAVE_FN in config.h. - -setobjs= -CHECK= -target_header_dir= -if test -n "${with_target_subdir}"; then - - # We are being configured as a target library. AC_REPLACE_FUNCS - # may not work correctly, because the compiler may not be able to - # link executables. Note that we may still be being configured - # native. - - # If we are being configured for newlib, we know which functions - # newlib provide and which ones we will be expected to provide. - - if test "x${with_newlib}" = "xyes"; then - LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o" - - for f in $funcs; do - case "$f" in - asprintf | basename | insque | random | strdup | vasprintf) - ;; - *) - n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - AC_DEFINE_UNQUOTED($n) - ;; - esac - done - - # newlib doesnt provide any of the variables in $vars, so we - # dont have to check them here. - - # Of the functions in $checkfuncs, newlib only has strerror. - AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR) - - setobjs=yes - - fi - - # We may wish to install the target headers somewhere. - AC_ARG_ENABLE(install-libiberty, - [ --enable-install-libiberty Install headers for end users], - enable_install_libiberty=$enableval, - enable_install_libiberty=no)dnl - - # Option parsed, now set things appropriately. - case x"$enable_install_libiberty" in - xyes|x) - target_header_dir=libiberty - ;; - xno) - target_header_dir= - ;; - *) - # This could be sanity-checked in various ways... - target_header_dir="${enable_install_libiberty}" - ;; - esac - - -else - - # Not a target library, so we set things up to run the test suite. - CHECK=check-cplus-dem - -fi - -AC_SUBST(CHECK) -AC_SUBST(target_header_dir) - -case "${host}" in - *-*-cygwin* | *-*-mingw*) - AC_DEFINE_NOAUTOHEADER(HAVE_SYS_ERRLIST) - AC_DEFINE_NOAUTOHEADER(HAVE_SYS_NERR) - ;; -esac - -if test -z "${setobjs}"; then - case "${host}" in - - *-*-vxworks*) - # Handle VxWorks configuration specially, since on VxWorks the - # libraries are actually on the target board, not in the file - # system. - LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o" - LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o" - for f in $funcs; do - case "$f" in - basename | getpagesize | insque | random | strcasecmp) - ;; - strncasecmp | strdup | vfork | waitpid | vasprintf) - ;; - *) - n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - AC_DEFINE_UNQUOTED($n) - ;; - esac - done - - # VxWorks doesn't provide any of the variables in $vars, so we - # don't have to check them here. - - # Of the functions in $checkfuncs, VxWorks only has strerror. - AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR) - - setobjs=yes - ;; - - esac -fi - -if test -z "${setobjs}"; then - - case "${host}" in - - *-*-cygwin*) - # The Cygwin library actually uses a couple of files from - # libiberty when it is built. If we are building a native - # Cygwin, and we run the tests, we will appear to have these - # files. However, when we go on to build winsup, we will wind up - # with a library which does not have the files, since they should - # have come from libiberty. - - # We handle this by removing the functions the winsup library - # provides from our shell variables, so that they appear to be - # missing. - - # DJ - only if we're *building* cygwin, not just building *with* cygwin - - if test -n "${with_target_subdir}" - then - funcs="`echo $funcs | sed -e 's/random//'`" - LIBOBJS="$LIBOBJS random.o" - vars="`echo $vars | sed -e 's/sys_siglist//'`" - checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" - fi - ;; - - *-*-mingw32*) - # Under mingw32, sys_nerr and sys_errlist exist, but they are - # macros, so the test below won't find them. - libiberty_cv_var_sys_nerr=yes - libiberty_cv_var_sys_errlist=yes - ;; - - *-*-uwin*) - # Under some versions of uwin, vfork is notoriously buggy and the test - # can hang configure; on other versions, vfork exists just as a stub. - # FIXME: This should be removed once vfork in uwin's runtime is fixed. - ac_cv_func_vfork_works=no - # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are - # macros (actually, these are imported from a DLL, but the end effect - # is the same), so the test below won't find them. - libiberty_cv_var_sys_nerr=yes - libiberty_cv_var_sys_errlist=yes - ;; - - *-*-*vms*) - # Under VMS, vfork works very different than on Unix. The standard test - # won't work, and it isn't easily adaptable. It makes more sense to - # just force it. - ac_cv_func_vfork_works=yes - ;; - - esac - - # We haven't set the list of objects yet. Use the standard autoconf - # tests. This will only work if the compiler works. - AC_PROG_CC_WORKS - AC_REPLACE_FUNCS($funcs) - libiberty_AC_FUNC_C_ALLOCA - AC_FUNC_VFORK - if test $ac_cv_func_vfork_works = no; then - LIBOBJS="$LIBOBJS vfork.o" - fi - # We only need _doprnt if we might use it to implement v*printf. - if test $ac_cv_func_vprintf != yes \ - || test $ac_cv_func_vfprintf != yes \ - || test $ac_cv_func_vsprintf != yes; then - AC_REPLACE_FUNCS(_doprnt) - else - AC_CHECK_FUNCS(_doprnt) - fi - - for v in $vars; do - AC_MSG_CHECKING([for $v]) - AC_CACHE_VAL(libiberty_cv_var_$v, - [AC_TRY_LINK([int *p;], [extern int $v []; p = $v;], - [eval "libiberty_cv_var_$v=yes"], - [eval "libiberty_cv_var_$v=no"])]) - if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then - AC_MSG_RESULT(yes) - n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - AC_DEFINE_UNQUOTED($n) - else - AC_MSG_RESULT(no) - fi - done - AC_CHECK_FUNCS($checkfuncs) - libiberty_NEED_DECLARATION(canonicalize_file_name) -fi - -# Figure out which version of pexecute to use. -case "${host}" in - *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; - *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; - *-*-msdos*) pexecute=pex-msdos.o ;; - *-*-os2-emx*) pexecute=pex-os2.o ;; - *) pexecute=pex-unix.o ;; -esac -AC_SUBST(pexecute) - -libiberty_AC_FUNC_STRNCMP - -# Install a library built with a cross compiler in $(tooldir) rather -# than $(libdir). -if test -z "${with_cross_host}"; then - INSTALL_DEST=libdir -else - INSTALL_DEST=tooldir -fi -AC_SUBST(INSTALL_DEST) - -# We need multilib support, but only if configuring for the target. -AC_OUTPUT(Makefile testsuite/Makefile, -[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h -if test -n "$CONFIG_FILES"; then - if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then - # FIXME: We shouldn't need to set ac_file - ac_file=Makefile - LD="${ORIGINAL_LD_FOR_MULTILIBS}" - . ${libiberty_topdir}/config-ml.in - fi -fi], -srcdir=${srcdir} -host=${host} -target=${target} -with_target_subdir=${with_target_subdir} -with_build_subdir=${with_build_subdir} -with_multisubdir=${with_multisubdir} -ac_configure_args="--enable-multilib ${ac_configure_args}" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" -libiberty_topdir=${libiberty_topdir} -) diff --git a/gnu/dist/binutils/opcodes/po/de.gmo b/gnu/dist/binutils/opcodes/po/de.gmo index b1b72ab689b6..acd983f25e64 100644 Binary files a/gnu/dist/binutils/opcodes/po/de.gmo and b/gnu/dist/binutils/opcodes/po/de.gmo differ diff --git a/gnu/dist/binutils/opcodes/po/es.gmo b/gnu/dist/binutils/opcodes/po/es.gmo index cdcd7d1615c8..8382c264ea77 100644 Binary files a/gnu/dist/binutils/opcodes/po/es.gmo and b/gnu/dist/binutils/opcodes/po/es.gmo differ diff --git a/gnu/dist/binutils/opcodes/po/fr.gmo b/gnu/dist/binutils/opcodes/po/fr.gmo index dc2f65ce35fd..20c70127178b 100644 Binary files a/gnu/dist/binutils/opcodes/po/fr.gmo and b/gnu/dist/binutils/opcodes/po/fr.gmo differ diff --git a/gnu/dist/binutils/opcodes/po/ro.gmo b/gnu/dist/binutils/opcodes/po/ro.gmo index 01fc8985f631..6125448e6239 100644 Binary files a/gnu/dist/binutils/opcodes/po/ro.gmo and b/gnu/dist/binutils/opcodes/po/ro.gmo differ diff --git a/gnu/dist/binutils/opcodes/po/sv.gmo b/gnu/dist/binutils/opcodes/po/sv.gmo index 774b98944ccc..2bbaca69dd39 100644 Binary files a/gnu/dist/binutils/opcodes/po/sv.gmo and b/gnu/dist/binutils/opcodes/po/sv.gmo differ diff --git a/gnu/dist/binutils/opcodes/po/tr.gmo b/gnu/dist/binutils/opcodes/po/tr.gmo index 983a0410c5a5..98b9df15351b 100644 Binary files a/gnu/dist/binutils/opcodes/po/tr.gmo and b/gnu/dist/binutils/opcodes/po/tr.gmo differ diff --git a/gnu/dist/binutils/opcodes/sh-opc.h b/gnu/dist/binutils/opcodes/sh-opc.h index 635f220d341d..0ef1fab42a62 100644 --- a/gnu/dist/binutils/opcodes/sh-opc.h +++ b/gnu/dist/binutils/opcodes/sh-opc.h @@ -34,7 +34,11 @@ typedef enum HEX_D, HEX_E, HEX_F, + HEX_XX00, + HEX_00YY, REG_N, + REG_N_D, /* nnn0 */ + REG_N_B01, /* nn01 */ REG_M, SDT_REG_N, REG_NM, @@ -60,9 +64,12 @@ typedef enum NOPY, MOVX, MOVY, + MOVX_NOPY, + MOVY_NOPX, PSH, PMUL, PPI3, + PPI3NC, PDC, PPIC, REPEAT @@ -88,8 +95,6 @@ typedef enum A_INC_N, A_IND_M, A_IND_N, - A_PMOD_N, - A_PMODY_N, A_IND_R0_REG_M, A_IND_R0_REG_N, A_MACH, @@ -113,6 +118,27 @@ typedef enum DSP_REG_E, DSP_REG_F, DSP_REG_G, + DSP_REG_A_M, + DSP_REG_AX, + DSP_REG_XY, + DSP_REG_AY, + DSP_REG_YX, + AX_INC_N, + AY_INC_N, + AXY_INC_N, + AYX_INC_N, + AX_IND_N, + AY_IND_N, + AXY_IND_N, + AYX_IND_N, + AX_PMOD_N, + AXY_PMOD_N, + AY_PMOD_N, + AYX_PMOD_N, + AS_DEC_N, + AS_INC_N, + AS_IND_N, + AS_PMOD_N, A_A0, A_X0, A_X1, @@ -156,24 +182,34 @@ sh_dsp_reg_nums; #define arch_sh3e 0x0008 #define arch_sh4 0x0010 #define arch_sh2e 0x0020 +#define arch_sh4a 0x0040 #define arch_sh_dsp 0x0100 #define arch_sh3_dsp 0x0200 +#define arch_sh4al_dsp 0x0400 +#define arch_sh4_nofpu 0x1000 +#define arch_sh4a_nofpu 0x2000 #define arch_sh1_up (arch_sh1 | arch_sh2_up) #define arch_sh2_up (arch_sh2 | arch_sh2e_up | arch_sh3_up | arch_sh_dsp) #define arch_sh2e_up (arch_sh2e | arch_sh3e_up) -#define arch_sh3_up (arch_sh3 | arch_sh3e_up | arch_sh3_dsp) +#define arch_sh3_up (arch_sh3 | arch_sh3e_up | arch_sh3_dsp_up \ + | arch_sh4_nofp_up) #define arch_sh3e_up (arch_sh3e | arch_sh4_up) -#define arch_sh4_up arch_sh4 +#define arch_sh4_up (arch_sh4 | arch_sh4a_up) +#define arch_sh4a_up (arch_sh4a) #define arch_sh_dsp_up (arch_sh_dsp | arch_sh3_dsp_up) -#define arch_sh3_dsp_up arch_sh3_dsp +#define arch_sh3_dsp_up (arch_sh3_dsp | arch_sh4al_dsp_up) +#define arch_sh4al_dsp_up (arch_sh4al_dsp) + +#define arch_sh4_nofp_up (arch_sh4_nofpu | arch_sh4_up | arch_sh4a_nofp_up) +#define arch_sh4a_nofp_up (arch_sh4a_nofpu | arch_sh4a_up | arch_sh4al_dsp_up) typedef struct { char *name; sh_arg_type arg[4]; - sh_nibble_type nibbles[4]; + sh_nibble_type nibbles[5]; int arch; } sh_opcode_info; @@ -211,6 +247,8 @@ const sh_opcode_info sh_table[] = /* 10001111i8p1.... bf/s */{"bf/s",{A_BDISP8},{HEX_8,HEX_F,BRANCH_8}, arch_sh2_up}, +/* 0000000010001000 clrdmxy */{"clrdmxy",{0},{HEX_0,HEX_0,HEX_8,HEX_8}, arch_sh4al_dsp_up}, + /* 0000000000101000 clrmac */{"clrmac",{0},{HEX_0,HEX_0,HEX_2,HEX_8}, arch_sh1_up}, /* 0000000001001000 clrs */{"clrs",{0},{HEX_0,HEX_0,HEX_4,HEX_8}, arch_sh1_up}, @@ -249,6 +287,8 @@ const sh_opcode_info sh_table[] = /* 0110nnnnmmmm1101 extu.w ,*/{"extu.w",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_D}, arch_sh1_up}, +/* 0000nnnn11100011 icbi @ */{"icbi",{A_IND_N},{HEX_0,REG_N,HEX_E,HEX_3}, arch_sh4a_nofp_up}, + /* 0100nnnn00101011 jmp @ */{"jmp",{A_IND_N},{HEX_4,REG_N,HEX_2,HEX_B}, arch_sh1_up}, /* 0100nnnn00001011 jsr @ */{"jsr",{A_IND_N},{HEX_4,REG_N,HEX_0,HEX_B}, arch_sh1_up}, @@ -269,7 +309,7 @@ const sh_opcode_info sh_table[] = /* 0100nnnn01001110 ldc ,SPC */{"ldc",{A_REG_N,A_SPC},{HEX_4,REG_N,HEX_4,HEX_E}, arch_sh3_up}, -/* 0100nnnn11111010 ldc ,DBR */{"ldc",{A_REG_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_A}, arch_sh4_up}, +/* 0100nnnn11111010 ldc ,DBR */{"ldc",{A_REG_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_A}, arch_sh4_nofp_up}, /* 0100nnnn1xxx1110 ldc ,Rn_BANK */{"ldc",{A_REG_N,A_REG_B},{HEX_4,REG_N,REG_B,HEX_E}, arch_sh3_up}, @@ -289,10 +329,13 @@ const sh_opcode_info sh_table[] = /* 0100nnnn01000111 ldc.l @+,SPC */{"ldc.l",{A_INC_N,A_SPC},{HEX_4,REG_N,HEX_4,HEX_7}, arch_sh3_up}, -/* 0100nnnn11110110 ldc.l @+,DBR */{"ldc.l",{A_INC_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_6}, arch_sh4_up}, +/* 0100nnnn11110110 ldc.l @+,DBR */{"ldc.l",{A_INC_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_6}, arch_sh4_nofp_up}, /* 0100nnnn1xxx0111 ldc.l ,Rn_BANK */{"ldc.l",{A_INC_N,A_REG_B},{HEX_4,REG_N,REG_B,HEX_7}, arch_sh3_up}, +/* 0100mmmm00110100 ldrc */{"ldrc",{A_REG_M},{HEX_4,REG_M,HEX_3,HEX_4}, arch_sh4al_dsp_up}, +/* 10001010i8*1.... ldrc # */{"ldrc",{A_IMM},{HEX_8,HEX_A,IMM0_8}, arch_sh4al_dsp_up}, + /* 10001110i8p2.... ldre @(,PC) */{"ldre",{A_DISP_PC},{HEX_8,HEX_E,PCRELIMM_8BY2}, arch_sh_dsp_up}, /* 10001100i8p2.... ldrs @(,PC) */{"ldrs",{A_DISP_PC},{HEX_8,HEX_C,PCRELIMM_8BY2}, arch_sh_dsp_up}, @@ -414,11 +457,16 @@ const sh_opcode_info sh_table[] = /* 11000001i8*2.... mov.w R0,@(,GBR)*/{"mov.w",{A_R0,A_DISP_GBR},{HEX_C,HEX_1,IMM1_8BY2}, arch_sh1_up}, /* 11000111i8p4.... mova @(,PC),R0*/{"mova",{A_DISP_PC,A_R0},{HEX_C,HEX_7,PCRELIMM_8BY4}, arch_sh1_up}, -/* 0000nnnn11000011 movca.l R0,@ */{"movca.l",{A_R0,A_IND_N},{HEX_0,REG_N,HEX_C,HEX_3}, arch_sh4_up}, +/* 0000nnnn11000011 movca.l R0,@ */{"movca.l",{A_R0,A_IND_N},{HEX_0,REG_N,HEX_C,HEX_3}, arch_sh4_nofp_up}, +/* 0000nnnn01110011 movco.l r0,@ */{"movco.l",{A_R0,A_IND_N},{HEX_0,REG_N,HEX_7,HEX_3}, arch_sh4a_nofp_up}, +/* 0000mmmm01100011 movli.l @,r0 */{"movli.l",{A_IND_M,A_R0},{HEX_0,REG_M,HEX_6,HEX_3}, arch_sh4a_nofp_up}, /* 0000nnnn00101001 movt */{"movt",{A_REG_N},{HEX_0,REG_N,HEX_2,HEX_9}, arch_sh1_up}, +/* 0100mmmm10101001 movua.l @,r0 */{"movua.l",{A_IND_M,A_R0},{HEX_4,REG_M,HEX_A,HEX_9}, arch_sh4a_nofp_up}, +/* 0100mmmm11101001 movua.l @+,r0 */{"movua.l",{A_INC_M,A_R0},{HEX_4,REG_M,HEX_E,HEX_9}, arch_sh4a_nofp_up}, + /* 0010nnnnmmmm1111 muls.w ,*/{"muls.w",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_F}, arch_sh1_up}, /* 0010nnnnmmmm1111 muls ,*/{"muls",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_F}, arch_sh1_up}, @@ -434,11 +482,11 @@ const sh_opcode_info sh_table[] = /* 0000000000001001 nop */{"nop",{0},{HEX_0,HEX_0,HEX_0,HEX_9}, arch_sh1_up}, /* 0110nnnnmmmm0111 not , */{"not",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_7}, arch_sh1_up}, -/* 0000nnnn10010011 ocbi @ */{"ocbi",{A_IND_N},{HEX_0,REG_N,HEX_9,HEX_3}, arch_sh4_up}, +/* 0000nnnn10010011 ocbi @ */{"ocbi",{A_IND_N},{HEX_0,REG_N,HEX_9,HEX_3}, arch_sh4_nofp_up}, -/* 0000nnnn10100011 ocbp @ */{"ocbp",{A_IND_N},{HEX_0,REG_N,HEX_A,HEX_3}, arch_sh4_up}, +/* 0000nnnn10100011 ocbp @ */{"ocbp",{A_IND_N},{HEX_0,REG_N,HEX_A,HEX_3}, arch_sh4_nofp_up}, -/* 0000nnnn10110011 ocbwb @ */{"ocbwb",{A_IND_N},{HEX_0,REG_N,HEX_B,HEX_3}, arch_sh4_up}, +/* 0000nnnn10110011 ocbwb @ */{"ocbwb",{A_IND_N},{HEX_0,REG_N,HEX_B,HEX_3}, arch_sh4_nofp_up}, /* 11001011i8*1.... or #,R0 */{"or",{A_IMM,A_R0},{HEX_C,HEX_B,IMM0_8}, arch_sh1_up}, @@ -447,7 +495,9 @@ const sh_opcode_info sh_table[] = /* 11001111i8*1.... or.b #,@(R0,GBR)*/{"or.b",{A_IMM,A_R0_GBR},{HEX_C,HEX_F,IMM0_8}, arch_sh1_up}, -/* 0000nnnn10000011 pref @ */{"pref",{A_IND_N},{HEX_0,REG_N,HEX_8,HEX_3}, arch_sh3_up}, +/* 0000nnnn10000011 pref @ */{"pref",{A_IND_N},{HEX_0,REG_N,HEX_8,HEX_3}, arch_sh4_nofp_up}, + +/* 0000nnnn11010011 prefi @ */{"prefi",{A_IND_N},{HEX_0,REG_N,HEX_D,HEX_3}, arch_sh4a_nofp_up}, /* 0100nnnn00100100 rotcl */{"rotcl",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_4}, arch_sh1_up}, @@ -461,6 +511,9 @@ const sh_opcode_info sh_table[] = /* 0000000000001011 rts */{"rts",{0},{HEX_0,HEX_0,HEX_0,HEX_B}, arch_sh1_up}, +/* 0000000010011000 setdmx */{"setdmx",{0},{HEX_0,HEX_0,HEX_9,HEX_8}, arch_sh4al_dsp_up}, +/* 0000000011001000 setdmy */{"setdmy",{0},{HEX_0,HEX_0,HEX_C,HEX_8}, arch_sh4al_dsp_up}, + /* 0000000001011000 sets */{"sets",{0},{HEX_0,HEX_0,HEX_5,HEX_8}, arch_sh1_up}, /* 0000000000011000 sett */{"sett",{0},{HEX_0,HEX_0,HEX_1,HEX_8}, arch_sh1_up}, @@ -514,9 +567,9 @@ const sh_opcode_info sh_table[] = /* 0000nnnn01000010 stc SPC, */{"stc",{A_SPC,A_REG_N},{HEX_0,REG_N,HEX_4,HEX_2}, arch_sh3_up}, -/* 0000nnnn00111010 stc SGR, */{"stc",{A_SGR,A_REG_N},{HEX_0,REG_N,HEX_3,HEX_A}, arch_sh4_up}, +/* 0000nnnn00111010 stc SGR, */{"stc",{A_SGR,A_REG_N},{HEX_0,REG_N,HEX_3,HEX_A}, arch_sh4_nofp_up}, -/* 0000nnnn11111010 stc DBR, */{"stc",{A_DBR,A_REG_N},{HEX_0,REG_N,HEX_F,HEX_A}, arch_sh4_up}, +/* 0000nnnn11111010 stc DBR, */{"stc",{A_DBR,A_REG_N},{HEX_0,REG_N,HEX_F,HEX_A}, arch_sh4_nofp_up}, /* 0000nnnn1xxx0010 stc Rn_BANK, */{"stc",{A_REG_B,A_REG_N},{HEX_0,REG_N,REG_B,HEX_2}, arch_sh3_up}, @@ -536,9 +589,9 @@ const sh_opcode_info sh_table[] = /* 0100nnnn00010011 stc.l GBR,@- */{"stc.l",{A_GBR,A_DEC_N},{HEX_4,REG_N,HEX_1,HEX_3}, arch_sh1_up}, -/* 0100nnnn00110010 stc.l SGR,@- */{"stc.l",{A_SGR,A_DEC_N},{HEX_4,REG_N,HEX_3,HEX_2}, arch_sh4_up}, +/* 0100nnnn00110010 stc.l SGR,@- */{"stc.l",{A_SGR,A_DEC_N},{HEX_4,REG_N,HEX_3,HEX_2}, arch_sh4_nofp_up}, -/* 0100nnnn11110010 stc.l DBR,@- */{"stc.l",{A_DBR,A_DEC_N},{HEX_4,REG_N,HEX_F,HEX_2}, arch_sh4_up}, +/* 0100nnnn11110010 stc.l DBR,@- */{"stc.l",{A_DBR,A_DEC_N},{HEX_4,REG_N,HEX_F,HEX_2}, arch_sh4_nofp_up}, /* 0100nnnn1xxx0011 stc.l Rn_BANK,@- */{"stc.l",{A_REG_B,A_DEC_N},{HEX_4,REG_N,REG_B,HEX_3}, arch_sh3_up}, @@ -596,6 +649,8 @@ const sh_opcode_info sh_table[] = /* 0110nnnnmmmm1001 swap.w ,*/{"swap.w",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_9}, arch_sh1_up}, +/* 0000000010101011 synco */{"synco",{0},{HEX_0,HEX_0,HEX_A,HEX_B}, arch_sh4a_nofp_up}, + /* 0100nnnn00011011 tas.b @ */{"tas.b",{A_IND_N},{HEX_4,REG_N,HEX_1,HEX_B}, arch_sh1_up}, /* 11000011i8*1.... trapa # */{"trapa",{A_IMM},{HEX_C,HEX_3,IMM0_8}, arch_sh1_up}, @@ -634,7 +689,7 @@ const sh_opcode_info sh_table[] = /* 111101nnmmmm0010 movs.w @+, */ {"movs.w",{A_INC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_8}, arch_sh_dsp_up}, -/* 111101nnmmmm0011 movs.w @+r8, */ {"movs.w",{A_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_C}, arch_sh_dsp_up}, +/* 111101nnmmmm0011 movs.w @+r8, */ {"movs.w",{AS_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_C}, arch_sh_dsp_up}, /* 111101nnmmmm0100 movs.w ,@- */ {"movs.w",{DSP_REG_M,A_DEC_N},{HEX_F,SDT_REG_N,REG_M,HEX_1}, arch_sh_dsp_up}, @@ -642,7 +697,7 @@ const sh_opcode_info sh_table[] = /* 111101nnmmmm0110 movs.w ,@+ */ {"movs.w",{DSP_REG_M,A_INC_N},{HEX_F,SDT_REG_N,REG_M,HEX_9}, arch_sh_dsp_up}, -/* 111101nnmmmm0111 movs.w ,@+r8 */ {"movs.w",{DSP_REG_M,A_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_D}, arch_sh_dsp_up}, +/* 111101nnmmmm0111 movs.w ,@+r8 */ {"movs.w",{DSP_REG_M,AS_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_D}, arch_sh_dsp_up}, /* 111101nnmmmm1000 movs.l @-, */ {"movs.l",{A_DEC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_2}, arch_sh_dsp_up}, @@ -650,7 +705,7 @@ const sh_opcode_info sh_table[] = /* 111101nnmmmm1010 movs.l @+, */ {"movs.l",{A_INC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_A}, arch_sh_dsp_up}, -/* 111101nnmmmm1011 movs.l @+r8, */ {"movs.l",{A_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_E}, arch_sh_dsp_up}, +/* 111101nnmmmm1011 movs.l @+r8, */ {"movs.l",{AS_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_E}, arch_sh_dsp_up}, /* 111101nnmmmm1100 movs.l ,@- */ {"movs.l",{DSP_REG_M,A_DEC_N},{HEX_F,SDT_REG_N,REG_M,HEX_3}, arch_sh_dsp_up}, @@ -658,22 +713,51 @@ const sh_opcode_info sh_table[] = /* 111101nnmmmm1110 movs.l ,@+ */ {"movs.l",{DSP_REG_M,A_INC_N},{HEX_F,SDT_REG_N,REG_M,HEX_B}, arch_sh_dsp_up}, -/* 111101nnmmmm1111 movs.l ,@+r8 */ {"movs.l",{DSP_REG_M,A_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_F}, arch_sh_dsp_up}, +/* 111101nnmmmm1111 movs.l ,@+r8 */ {"movs.l",{DSP_REG_M,AS_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_F}, arch_sh_dsp_up}, /* 0*0*0*00** nopx */ {"nopx",{0},{PPI,NOPX}, arch_sh_dsp_up}, /* *0*0*0**00 nopy */ {"nopy",{0},{PPI,NOPY}, arch_sh_dsp_up}, -/* n*m*0*01** movx.w @, */ {"movx.w",{A_IND_N,DSP_REG_X},{PPI,MOVX,HEX_1}, arch_sh_dsp_up}, -/* n*m*0*10** movx.w @+, */ {"movx.w",{A_INC_N,DSP_REG_X},{PPI,MOVX,HEX_2}, arch_sh_dsp_up}, -/* n*m*0*11** movx.w @+r8, */ {"movx.w",{A_PMOD_N,DSP_REG_X},{PPI,MOVX,HEX_3}, arch_sh_dsp_up}, -/* n*m*1*01** movx.w ,@ */ {"movx.w",{DSP_REG_M,A_IND_N},{PPI,MOVX,HEX_9}, arch_sh_dsp_up}, -/* n*m*1*10** movx.w ,@+ */ {"movx.w",{DSP_REG_M,A_INC_N},{PPI,MOVX,HEX_A}, arch_sh_dsp_up}, -/* n*m*1*11** movx.w ,@+r8 */ {"movx.w",{DSP_REG_M,A_PMOD_N},{PPI,MOVX,HEX_B}, arch_sh_dsp_up}, -/* *n*m*0**01 movy.w @, */ {"movy.w",{A_IND_N,DSP_REG_Y},{PPI,MOVY,HEX_1}, arch_sh_dsp_up}, -/* *n*m*0**10 movy.w @+, */ {"movy.w",{A_INC_N,DSP_REG_Y},{PPI,MOVY,HEX_2}, arch_sh_dsp_up}, -/* *n*m*0**11 movy.w @+r9, */ {"movy.w",{A_PMODY_N,DSP_REG_Y},{PPI,MOVY,HEX_3}, arch_sh_dsp_up}, -/* *n*m*1**01 movy.w ,@ */ {"movy.w",{DSP_REG_M,A_IND_N},{PPI,MOVY,HEX_9}, arch_sh_dsp_up}, -/* *n*m*1**10 movy.w ,@+ */ {"movy.w",{DSP_REG_M,A_INC_N},{PPI,MOVY,HEX_A}, arch_sh_dsp_up}, -/* *n*m*1**11 movy.w ,@+r9 */ {"movy.w",{DSP_REG_M,A_PMODY_N},{PPI,MOVY,HEX_B}, arch_sh_dsp_up}, +/* n*m*0*01** movx.w @, */ {"movx.w",{AX_IND_N,DSP_REG_X},{PPI,MOVX,HEX_1}, arch_sh_dsp_up}, +/* n*m*0*10** movx.w @+, */ {"movx.w",{AX_INC_N,DSP_REG_X},{PPI,MOVX,HEX_2}, arch_sh_dsp_up}, +/* n*m*0*11** movx.w @+r8, */ {"movx.w",{AX_PMOD_N,DSP_REG_X},{PPI,MOVX,HEX_3}, arch_sh_dsp_up}, +/* n*m*1*01** movx.w ,@ */ {"movx.w",{DSP_REG_A_M,AX_IND_N},{PPI,MOVX,HEX_9}, arch_sh_dsp_up}, +/* n*m*1*10** movx.w ,@+ */ {"movx.w",{DSP_REG_A_M,AX_INC_N},{PPI,MOVX,HEX_A}, arch_sh_dsp_up}, +/* n*m*1*11** movx.w ,@+r8 */ {"movx.w",{DSP_REG_A_M,AX_PMOD_N},{PPI,MOVX,HEX_B}, arch_sh_dsp_up}, + +/* nnmm000100 movx.w @, */ {"movx.w",{AXY_IND_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_4}, arch_sh4al_dsp_up}, +/* nnmm001000 movx.w @+, */{"movx.w",{AXY_INC_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_8}, arch_sh4al_dsp_up}, +/* nnmm001100 movx.w @+r8, */{"movx.w",{AXY_PMOD_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_C}, arch_sh4al_dsp_up}, +/* nnmm100100 movx.w ,@ */ {"movx.w",{DSP_REG_AX,AXY_IND_N},{PPI,MOVX_NOPY,HEX_2,HEX_4}, arch_sh4al_dsp_up}, +/* nnmm101000 movx.w ,@+ */{"movx.w",{DSP_REG_AX,AXY_INC_N},{PPI,MOVX_NOPY,HEX_2,HEX_8}, arch_sh4al_dsp_up}, +/* nnmm101100 movx.w ,@+r8 */{"movx.w",{DSP_REG_AX,AXY_PMOD_N},{PPI,MOVX_NOPY,HEX_2,HEX_C}, arch_sh4al_dsp_up}, + +/* nnmm010100 movx.l @, */ {"movx.l",{AXY_IND_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_4}, arch_sh4al_dsp_up}, +/* nnmm011000 movx.l @+, */{"movx.l",{AXY_INC_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_8}, arch_sh4al_dsp_up}, +/* nnmm011100 movx.l @+r8, */{"movx.l",{AXY_PMOD_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_C}, arch_sh4al_dsp_up}, +/* nnmm110100 movx.l ,@ */ {"movx.l",{DSP_REG_AX,AXY_IND_N},{PPI,MOVX_NOPY,HEX_3,HEX_4}, arch_sh4al_dsp_up}, +/* nnmm111000 movx.l ,@+ */{"movx.l",{DSP_REG_AX,AXY_INC_N},{PPI,MOVX_NOPY,HEX_3,HEX_8}, arch_sh4al_dsp_up}, +/* nnmm111100 movx.l ,@+r8 */{"movx.l",{DSP_REG_AX,AXY_PMOD_N},{PPI,MOVX_NOPY,HEX_3,HEX_C}, arch_sh4al_dsp_up}, + +/* *n*m*0**01 movy.w @, */ {"movy.w",{AY_IND_N,DSP_REG_Y},{PPI,MOVY,HEX_1}, arch_sh_dsp_up}, +/* *n*m*0**10 movy.w @+, */ {"movy.w",{AY_INC_N,DSP_REG_Y},{PPI,MOVY,HEX_2}, arch_sh_dsp_up}, +/* *n*m*0**11 movy.w @+r9, */ {"movy.w",{AY_PMOD_N,DSP_REG_Y},{PPI,MOVY,HEX_3}, arch_sh_dsp_up}, +/* *n*m*1**01 movy.w ,@ */ {"movy.w",{DSP_REG_A_M,AY_IND_N},{PPI,MOVY,HEX_9}, arch_sh_dsp_up}, +/* *n*m*1**10 movy.w ,@+ */ {"movy.w",{DSP_REG_A_M,AY_INC_N},{PPI,MOVY,HEX_A}, arch_sh_dsp_up}, +/* *n*m*1**11 movy.w ,@+r9 */ {"movy.w",{DSP_REG_A_M,AY_PMOD_N},{PPI,MOVY,HEX_B}, arch_sh_dsp_up}, + +/* nnmm000001 movy.w @, */ {"movy.w",{AYX_IND_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_1}, arch_sh4al_dsp_up}, +/* nnmm000010 movy.w @+, */{"movy.w",{AYX_INC_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_2}, arch_sh4al_dsp_up}, +/* nnmm000011 movy.w @+r8, */{"movy.w",{AYX_PMOD_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_3}, arch_sh4al_dsp_up}, +/* nnmm010001 movy.w ,@ */ {"movy.w",{DSP_REG_AY,AYX_IND_N},{PPI,MOVY_NOPX,HEX_1,HEX_1}, arch_sh4al_dsp_up}, +/* nnmm010010 movy.w ,@+ */{"movy.w",{DSP_REG_AY,AYX_INC_N},{PPI,MOVY_NOPX,HEX_1,HEX_2}, arch_sh4al_dsp_up}, +/* nnmm010011 movy.w ,@+r8 */{"movy.w",{DSP_REG_AY,AYX_PMOD_N},{PPI,MOVY_NOPX,HEX_1,HEX_3}, arch_sh4al_dsp_up}, + +/* nnmm100001 movy.l @, */ {"movy.l",{AYX_IND_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_1}, arch_sh4al_dsp_up}, +/* nnmm100010 movy.l @+, */{"movy.l",{AYX_INC_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_2}, arch_sh4al_dsp_up}, +/* nnmm100011 movy.l @+r8, */{"movy.l",{AYX_PMOD_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_3}, arch_sh4al_dsp_up}, +/* nnmm110001 movy.l ,@ */ {"movy.l",{DSP_REG_AY,AYX_IND_N},{PPI,MOVY_NOPX,HEX_3,HEX_1}, arch_sh4al_dsp_up}, +/* nnmm110010 movy.l ,@+ */{"movy.l",{DSP_REG_AY,AYX_INC_N},{PPI,MOVY_NOPX,HEX_3,HEX_2}, arch_sh4al_dsp_up}, +/* nnmm110011 movy.l ,@+r8 */{"movy.l",{DSP_REG_AY,AYX_PMOD_N},{PPI,MOVY_NOPX,HEX_3,HEX_3}, arch_sh4al_dsp_up}, /* 01aaeeffxxyyggnn pmuls Se,Sf,Dg */ {"pmuls",{DSP_REG_E,DSP_REG_F,DSP_REG_G},{PPI,PMUL}, arch_sh_dsp_up}, /* 10100000xxyynnnn psubc ,, */ @@ -687,13 +771,21 @@ const sh_opcode_info sh_table[] = /* 10110100xxyynnnn pwad ,, */ {"pwad", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_B,HEX_4}, arch_sh_dsp_up}, /* 10001000xxyynnnn pabs , */ -{"pabs", {DSP_REG_X,DSP_REG_N},{PPI,PPI3,HEX_8,HEX_8}, arch_sh_dsp_up}, +{"pabs", {DSP_REG_X,DSP_REG_N},{PPI,PPI3NC,HEX_8,HEX_8}, arch_sh_dsp_up}, +/* 1000100!xx01nnnn pabs , */ +{"pabs", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_9,HEX_1}, arch_sh4al_dsp_up}, /* 10101000xxyynnnn pabs , */ -{"pabs", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_A,HEX_8}, arch_sh_dsp_up}, +{"pabs", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3NC,HEX_A,HEX_8}, arch_sh_dsp_up}, +/* 1010100!01yynnnn pabs , */ +{"pabs", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_9,HEX_4}, arch_sh4al_dsp_up}, /* 10011000xxyynnnn prnd , */ -{"prnd", {DSP_REG_X,DSP_REG_N},{PPI,PPI3,HEX_9,HEX_8}, arch_sh_dsp_up}, +{"prnd", {DSP_REG_X,DSP_REG_N},{PPI,PPI3NC,HEX_9,HEX_8}, arch_sh_dsp_up}, +/* 1001100!xx01nnnn prnd , */ +{"prnd", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_9,HEX_1}, arch_sh4al_dsp_up}, /* 10111000xxyynnnn prnd , */ -{"prnd", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_B,HEX_8}, arch_sh_dsp_up}, +{"prnd", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3NC,HEX_B,HEX_8}, arch_sh_dsp_up}, +/* 1011100!01yynnnn prnd , */ +{"prnd", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_9,HEX_4}, arch_sh4al_dsp_up}, {"dct",{0},{PPI,PDC,HEX_1}, arch_sh_dsp_up}, {"dcf",{0},{PPI,PDC,HEX_2}, arch_sh_dsp_up}, @@ -706,6 +798,8 @@ const sh_opcode_info sh_table[] = /* 00010iiiiiiinnnn psha #, */ {"psha",{A_IMM,DSP_REG_N},{PPI,PSH,HEX_1}, arch_sh_dsp_up}, /* 10100001xxyynnnn psub ,, */ {"psub", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_1}, arch_sh_dsp_up}, +/* 10000101xxyynnnn psub ,, */ +{"psub", {DSP_REG_Y,DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_5}, arch_sh4al_dsp_up}, /* 10110001xxyynnnn padd ,, */ {"padd", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_1}, arch_sh_dsp_up}, /* 10010101xxyynnnn pand ,, */ @@ -718,16 +812,16 @@ const sh_opcode_info sh_table[] = {"pdec", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_9}, arch_sh_dsp_up}, /* 10101001xxyynnnn pdec , */ {"pdec", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_9}, arch_sh_dsp_up}, -/* 10011001xxyynnnn pinc , */ -{"pinc", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_9}, arch_sh_dsp_up}, -/* 10111001xxyynnnn pinc , */ -{"pinc", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_9}, arch_sh_dsp_up}, +/* 10011001xx00nnnn pinc , */ +{"pinc", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_9,HEX_XX00}, arch_sh_dsp_up}, +/* 1011100100yynnnn pinc , */ +{"pinc", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_9,HEX_00YY}, arch_sh_dsp_up}, /* 10001101xxyynnnn pclr */ {"pclr", {DSP_REG_N},{PPI,PPIC,HEX_8,HEX_D}, arch_sh_dsp_up}, -/* 10011101xxyynnnn pdmsb , */ -{"pdmsb", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_D}, arch_sh_dsp_up}, -/* 10111101xxyynnnn pdmsb , */ -{"pdmsb", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_D}, arch_sh_dsp_up}, +/* 10011101xx00nnnn pdmsb , */ +{"pdmsb", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_D,HEX_XX00}, arch_sh_dsp_up}, +/* 1011110100yynnnn pdmsb , */ +{"pdmsb", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_D,HEX_00YY}, arch_sh_dsp_up}, /* 11001001xxyynnnn pneg , */ {"pneg", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_C,HEX_9}, arch_sh_dsp_up}, /* 11101001xxyynnnn pneg , */ @@ -744,9 +838,13 @@ const sh_opcode_info sh_table[] = {"plds", {DSP_REG_N,A_MACH},{PPI,PPIC,HEX_E,HEX_D}, arch_sh_dsp_up}, /* 11111101xxyynnnn plds ,MACL */ {"plds", {DSP_REG_N,A_MACL},{PPI,PPIC,HEX_F,HEX_D}, arch_sh_dsp_up}, +/* 10011101xx01zzzz pswap , */ +{"pswap", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_D,HEX_1}, arch_sh4al_dsp_up}, +/* 1011110101yyzzzz pswap , */ +{"pswap", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_D,HEX_4}, arch_sh4al_dsp_up}, /* 1111nnnn01011101 fabs */{"fabs",{F_REG_N},{HEX_F,REG_N,HEX_5,HEX_D}, arch_sh2e_up}, -/* 1111nnnn01011101 fabs */{"fabs",{D_REG_N},{HEX_F,REG_N,HEX_5,HEX_D}, arch_sh4_up}, +/* 1111nnn001011101 fabs */{"fabs",{D_REG_N},{HEX_F,REG_N,HEX_5,HEX_D}, arch_sh4_up}, /* 1111nnnnmmmm0000 fadd ,*/{"fadd",{F_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_0}, arch_sh2e_up}, /* 1111nnn0mmm00000 fadd ,*/{"fadd",{D_REG_M,D_REG_N},{HEX_F,REG_N,REG_M,HEX_0}, arch_sh4_up}, @@ -757,9 +855,9 @@ const sh_opcode_info sh_table[] = /* 1111nnnnmmmm0101 fcmp/gt ,*/{"fcmp/gt",{F_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_5}, arch_sh2e_up}, /* 1111nnn0mmm00101 fcmp/gt ,*/{"fcmp/gt",{D_REG_M,D_REG_N},{HEX_F,REG_N,REG_M,HEX_5}, arch_sh4_up}, -/* 1111nnn010111101 fcnvds ,FPUL*/{"fcnvds",{D_REG_N,FPUL_M},{HEX_F,REG_N,HEX_B,HEX_D}, arch_sh4_up}, +/* 1111nnn010111101 fcnvds ,FPUL*/{"fcnvds",{D_REG_N,FPUL_M},{HEX_F,REG_N_D,HEX_B,HEX_D}, arch_sh4_up}, -/* 1111nnn010101101 fcnvsd FPUL,*/{"fcnvsd",{FPUL_M,D_REG_N},{HEX_F,REG_N,HEX_A,HEX_D}, arch_sh4_up}, +/* 1111nnn010101101 fcnvsd FPUL,*/{"fcnvsd",{FPUL_M,D_REG_N},{HEX_F,REG_N_D,HEX_A,HEX_D}, arch_sh4_up}, /* 1111nnnnmmmm0011 fdiv ,*/{"fdiv",{F_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_3}, arch_sh2e_up}, /* 1111nnn0mmm00011 fdiv ,*/{"fdiv",{D_REG_M,D_REG_N},{HEX_F,REG_N,REG_M,HEX_3}, arch_sh4_up}, @@ -773,42 +871,42 @@ const sh_opcode_info sh_table[] = /* 1111nnnn00011101 flds ,FPUL*/{"flds",{F_REG_N,FPUL_M},{HEX_F,REG_N,HEX_1,HEX_D}, arch_sh2e_up}, /* 1111nnnn00101101 float FPUL,*/{"float",{FPUL_M,F_REG_N},{HEX_F,REG_N,HEX_2,HEX_D}, arch_sh2e_up}, -/* 1111nnnn00101101 float FPUL,*/{"float",{FPUL_M,D_REG_N},{HEX_F,REG_N,HEX_2,HEX_D}, arch_sh4_up}, +/* 1111nnn000101101 float FPUL,*/{"float",{FPUL_M,D_REG_N},{HEX_F,REG_N,HEX_2,HEX_D}, arch_sh4_up}, /* 1111nnnnmmmm1110 fmac FR0,,*/{"fmac",{F_FR0,F_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_E}, arch_sh2e_up}, /* 1111nnnnmmmm1100 fmov ,*/{"fmov",{F_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_C}, arch_sh2e_up}, -/* 1111nnnnmmmm1100 fmov ,*/{"fmov",{DX_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_C}, arch_sh4_up}, +/* 1111nnn1mmmm1100 fmov ,*/{"fmov",{DX_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_C}, arch_sh4_up}, /* 1111nnnnmmmm1000 fmov @,*/{"fmov",{A_IND_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh2e_up}, -/* 1111nnnnmmmm1000 fmov @,*/{"fmov",{A_IND_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh4_up}, +/* 1111nnn1mmmm1000 fmov @,*/{"fmov",{A_IND_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh4_up}, /* 1111nnnnmmmm1010 fmov ,@*/{"fmov",{F_REG_M,A_IND_N},{HEX_F,REG_N,REG_M,HEX_A}, arch_sh2e_up}, -/* 1111nnnnmmmm1010 fmov ,@*/{"fmov",{DX_REG_M,A_IND_N},{HEX_F,REG_N,REG_M,HEX_A}, arch_sh4_up}, +/* 1111nnnnmmm11010 fmov ,@*/{"fmov",{DX_REG_M,A_IND_N},{HEX_F,REG_N,REG_M,HEX_A}, arch_sh4_up}, /* 1111nnnnmmmm1001 fmov @+,*/{"fmov",{A_INC_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_9}, arch_sh2e_up}, -/* 1111nnnnmmmm1001 fmov @+,*/{"fmov",{A_INC_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_9}, arch_sh4_up}, +/* 1111nnn1mmmm1001 fmov @+,*/{"fmov",{A_INC_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_9}, arch_sh4_up}, /* 1111nnnnmmmm1011 fmov ,@-*/{"fmov",{F_REG_M,A_DEC_N},{HEX_F,REG_N,REG_M,HEX_B}, arch_sh2e_up}, -/* 1111nnnnmmmm1011 fmov ,@-*/{"fmov",{DX_REG_M,A_DEC_N},{HEX_F,REG_N,REG_M,HEX_B}, arch_sh4_up}, +/* 1111nnnnmmm11011 fmov ,@-*/{"fmov",{DX_REG_M,A_DEC_N},{HEX_F,REG_N,REG_M,HEX_B}, arch_sh4_up}, /* 1111nnnnmmmm0110 fmov @(R0,),*/{"fmov",{A_IND_R0_REG_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_6}, arch_sh2e_up}, -/* 1111nnnnmmmm0110 fmov @(R0,),*/{"fmov",{A_IND_R0_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_6}, arch_sh4_up}, +/* 1111nnn1mmmm0110 fmov @(R0,),*/{"fmov",{A_IND_R0_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_6}, arch_sh4_up}, /* 1111nnnnmmmm0111 fmov ,@(R0,)*/{"fmov",{F_REG_M,A_IND_R0_REG_N},{HEX_F,REG_N,REG_M,HEX_7}, arch_sh2e_up}, -/* 1111nnnnmmmm0111 fmov ,@(R0,)*/{"fmov",{DX_REG_M,A_IND_R0_REG_N},{HEX_F,REG_N,REG_M,HEX_7}, arch_sh4_up}, +/* 1111nnnnmmm10111 fmov ,@(R0,)*/{"fmov",{DX_REG_M,A_IND_R0_REG_N},{HEX_F,REG_N,REG_M,HEX_7}, arch_sh4_up}, -/* 1111nnnnmmmm1000 fmov.d @,*/{"fmov.d",{A_IND_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh4_up}, +/* 1111nnn1mmmm1000 fmov.d @,*/{"fmov.d",{A_IND_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh4_up}, -/* 1111nnnnmmmm1010 fmov.d ,@*/{"fmov.d",{DX_REG_M,A_IND_N},{HEX_F,REG_N,REG_M,HEX_A}, arch_sh4_up}, +/* 1111nnnnmmm11010 fmov.d ,@*/{"fmov.d",{DX_REG_M,A_IND_N},{HEX_F,REG_N,REG_M,HEX_A}, arch_sh4_up}, -/* 1111nnnnmmmm1001 fmov.d @+,*/{"fmov.d",{A_INC_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_9}, arch_sh4_up}, +/* 1111nnn1mmmm1001 fmov.d @+,*/{"fmov.d",{A_INC_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_9}, arch_sh4_up}, -/* 1111nnnnmmmm1011 fmov.d ,@-*/{"fmov.d",{DX_REG_M,A_DEC_N},{HEX_F,REG_N,REG_M,HEX_B}, arch_sh4_up}, +/* 1111nnnnmmm11011 fmov.d ,@-*/{"fmov.d",{DX_REG_M,A_DEC_N},{HEX_F,REG_N,REG_M,HEX_B}, arch_sh4_up}, -/* 1111nnnnmmmm0110 fmov.d @(R0,),*/{"fmov.d",{A_IND_R0_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_6}, arch_sh4_up}, +/* 1111nnn1mmmm0110 fmov.d @(R0,),*/{"fmov.d",{A_IND_R0_REG_M,DX_REG_N},{HEX_F,REG_N,REG_M,HEX_6}, arch_sh4_up}, -/* 1111nnnnmmmm0111 fmov.d ,@(R0,)*/{"fmov.d",{DX_REG_M,A_IND_R0_REG_N},{HEX_F,REG_N,REG_M,HEX_7}, arch_sh4_up}, +/* 1111nnnnmmm10111 fmov.d ,@(R0,)*/{"fmov.d",{DX_REG_M,A_IND_R0_REG_N},{HEX_F,REG_N,REG_M,HEX_7}, arch_sh4_up}, /* 1111nnnnmmmm1000 fmov.s @,*/{"fmov.s",{A_IND_M,F_REG_N},{HEX_F,REG_N,REG_M,HEX_8}, arch_sh2e_up}, @@ -826,14 +924,20 @@ const sh_opcode_info sh_table[] = /* 1111nnn0mmm00010 fmul ,*/{"fmul",{D_REG_M,D_REG_N},{HEX_F,REG_N,REG_M,HEX_2}, arch_sh4_up}, /* 1111nnnn01001101 fneg */{"fneg",{F_REG_N},{HEX_F,REG_N,HEX_4,HEX_D}, arch_sh2e_up}, -/* 1111nnnn01001101 fneg */{"fneg",{D_REG_N},{HEX_F,REG_N,HEX_4,HEX_D}, arch_sh4_up}, +/* 1111nnn001001101 fneg */{"fneg",{D_REG_N},{HEX_F,REG_N,HEX_4,HEX_D}, arch_sh4_up}, + +/* 1111011111111101 fpchg */{"fpchg",{0},{HEX_F,HEX_7,HEX_F,HEX_D}, arch_sh4a_up}, /* 1111101111111101 frchg */{"frchg",{0},{HEX_F,HEX_B,HEX_F,HEX_D}, arch_sh4_up}, +/* 1111nnn011111101 fsca FPUL, */{"fsca",{FPUL_M,D_REG_N},{HEX_F,REG_N_D,HEX_F,HEX_D}, arch_sh4_up}, + /* 1111001111111101 fschg */{"fschg",{0},{HEX_F,HEX_3,HEX_F,HEX_D}, arch_sh4_up}, /* 1111nnnn01101101 fsqrt */{"fsqrt",{F_REG_N},{HEX_F,REG_N,HEX_6,HEX_D}, arch_sh3e_up}, -/* 1111nnnn01101101 fsqrt */{"fsqrt",{D_REG_N},{HEX_F,REG_N,HEX_6,HEX_D}, arch_sh4_up}, +/* 1111nnn001101101 fsqrt */{"fsqrt",{D_REG_N},{HEX_F,REG_N,HEX_6,HEX_D}, arch_sh4_up}, + +/* 1111nnnn01111101 fsrra */{"fsrra",{F_REG_N},{HEX_F,REG_N,HEX_7,HEX_D}, arch_sh4_up}, /* 1111nnnn00001101 fsts FPUL,*/{"fsts",{FPUL_M,F_REG_N},{HEX_F,REG_N,HEX_0,HEX_D}, arch_sh2e_up}, @@ -843,7 +947,7 @@ const sh_opcode_info sh_table[] = /* 1111nnnn00111101 ftrc ,FPUL*/{"ftrc",{F_REG_N,FPUL_M},{HEX_F,REG_N,HEX_3,HEX_D}, arch_sh2e_up}, /* 1111nnnn00111101 ftrc ,FPUL*/{"ftrc",{D_REG_N,FPUL_M},{HEX_F,REG_N,HEX_3,HEX_D}, arch_sh4_up}, -/* 1111nn0111111101 ftrv XMTRX_M4,*/{"ftrv",{XMTRX_M4,V_REG_N},{HEX_F,REG_NM,HEX_F,HEX_D}, arch_sh4_up}, +/* 1111nn0111111101 ftrv XMTRX_M4,*/{"ftrv",{XMTRX_M4,V_REG_N},{HEX_F,REG_N_B01,HEX_F,HEX_D}, arch_sh4_up}, { 0, {0}, {0}, 0 } }; diff --git a/gnu/dist/binutils/opcodes/sparc-dis.c b/gnu/dist/binutils/opcodes/sparc-dis.c index 608c34fd67e9..cd28c6f601ee 100644 --- a/gnu/dist/binutils/opcodes/sparc-dis.c +++ b/gnu/dist/binutils/opcodes/sparc-dis.c @@ -1,6 +1,6 @@ /* Print SPARC instructions. Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2002, 2003 Free Software Foundation, Inc. + 2000, 2002, 2003, 2004 Free Software Foundation, Inc. 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 @@ -224,7 +224,7 @@ print_insn_sparc (memaddr, info) static int opcodes_initialized = 0; /* bfd mach number of last call. */ static unsigned long current_mach = 0; - bfd_vma (*getword) PARAMS ((const unsigned char *)); + bfd_vma (*getword) (const void *); if (!opcodes_initialized || info->mach != current_mach)