/contrib/toolchain/binutils/Makefile |
---|
15,7 → 15,7 |
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup |
LDFLAGS+= --out-implib |
SUBDIRS = libiberty bfd |
SUBDIRS = libiberty bfd ld |
# targets |
/contrib/toolchain/binutils/bfd/Makefile |
---|
8,6 → 8,8 |
DEFINES= -DHAVE_CONFIG_H -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec |
DEFINES+= -DHAVE_bfd_elf32_big_generic_vec -DBINDIR="/home/autobuild/tools/win32/bin" |
TDEFS= -DDEFAULT_VECTOR=i386pe_vec "-DSELECT_VECS=&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec" |
TDEFS+= "-DSELECT_ARCHITECTURES=&bfd_i386_arch" |
SRCS = \ |
archive.c archures.c bfd.c bfdio.c \ |
19,9 → 21,9 |
elf-nacl.c elf-strtab.c elf-vxworks.c \ |
format.c hash.c ihex.c init.c libbfd.c \ |
linker.c merge.c opncls.c pe-i386.c \ |
peigen.c reloc.c section.c simple.c \ |
srec.c stabs.c stab-syms.c syms.c \ |
targets.c tekhex.c verilog.c |
peigen.c pei-i386.c reloc.c section.c \ |
simple.c srec.c stabs.c stab-syms.c \ |
syms.c targets.c tekhex.c verilog.c |
OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) |
32,13 → 34,18 |
libbfd.a : $(OBJS) MAkefile |
$(AR) crs libbfd.a $(OBJS) |
# mv -f libbfd.a $(SDK_DIR)/lib |
mv -f libbfd.a $(SDK_DIR)/lib |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
dwarf2.o : dwarf2.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) -DDEBUGDIR=\"/home/autobuild/tools/win32/lib/debug\" $(INCLUDES) -o $@ $< |
$(CC) $(CFLAGS) $(DEFINES) -DDEBUGDIR='"/home/autobuild/tools/win32/lib/debug\"' $(INCLUDES) -o $@ $< |
targets.o : targets.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(TDEFS) $(INCLUDES) -o $@ $< |
archures.o : archures.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(TDEFS) $(INCLUDES) -o $@ $< |
/contrib/toolchain/binutils/bfd/bfdio.c |
---|
69,15 → 69,6 |
static FILE * |
close_on_exec (FILE *file) |
{ |
#if defined (HAVE_FILENO) && defined (F_GETFD) |
if (file) |
{ |
int fd = fileno (file); |
int old = fcntl (fd, F_GETFD, 0); |
if (old >= 0) |
fcntl (fd, F_SETFD, old | FD_CLOEXEC); |
} |
#endif |
return file; |
} |
/contrib/toolchain/binutils/bfd/cache.c |
---|
76,24 → 76,9 |
static int |
bfd_cache_max_open (void) |
{ |
if (max_open_files == 0) |
{ |
int max; |
#ifdef HAVE_GETRLIMIT |
struct rlimit rlim; |
if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 |
&& rlim.rlim_cur != RLIM_INFINITY) |
max = rlim.rlim_cur / 8; |
else |
#endif /* HAVE_GETRLIMIT */ |
#ifdef _SC_OPEN_MAX |
max = sysconf (_SC_OPEN_MAX) / 8; |
#else |
max = 10; |
#endif /* _SC_OPEN_MAX */ |
max_open_files = max < 10 ? 10 : max; |
} |
max_open_files = 16; |
return max_open_files; |
} |
/contrib/toolchain/binutils/bfd/opncls.c |
---|
673,6 → 673,7 |
which run tests with "ld [...] -o /dev/null". */ |
&& S_ISREG(buf.st_mode)) |
{ |
/* |
unsigned int mask = umask (0); |
umask (mask); |
679,6 → 680,7 |
chmod (abfd->filename, |
(0777 |
& (buf.st_mode | ((S_IXUSR | S_IXGRP | S_IXOTH) &~ mask)))); |
*/ |
} |
} |
} |
/contrib/toolchain/binutils/bfd/pei-i386.c |
---|
0,0 → 1,46 |
/* BFD back-end for Intel 386 PE IMAGE COFF files. |
Copyright 1995, 1996, 1999, 2002, 2004, 2005, 2006, 2007, 2009 |
Free Software Foundation, Inc. |
This file is part of BFD, the Binary File Descriptor library. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation; either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program; if not, write to the Free Software |
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
MA 02110-1301, USA. */ |
#include "sysdep.h" |
#include "bfd.h" |
#define TARGET_SYM i386pei_vec |
#define TARGET_NAME "pei-i386" |
#define COFF_IMAGE_WITH_PE |
#define COFF_WITH_PE |
#define PCRELOFFSET TRUE |
#define TARGET_UNDERSCORE '_' |
/* Long section names not allowed in executable images, only object files. */ |
#define COFF_LONG_SECTION_NAMES 0 |
#define COFF_SUPPORT_GNU_LINKONCE |
#define COFF_LONG_FILENAMES |
#define COFF_SECTION_ALIGNMENT_ENTRIES \ |
{ COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \ |
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ |
{ COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \ |
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ |
{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \ |
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \ |
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \ |
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 } |
#include "coff-i386.c" |
/contrib/toolchain/binutils/bfd/sysdep.h |
---|
27,6 → 27,8 |
#error sysdep.h must be included in lieu of config.h |
#endif |
#include <stdarg.h> |
#include "config.h" |
#include "ansidecl.h" |
/contrib/toolchain/binutils/ld/Makefile |
---|
0,0 → 1,55 |
NAME= ld-new |
LIB_DIR:= $(SDK_DIR)/lib |
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 |
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields |
CFLAGS_OPT+= -W -Wall -Wmissing-prototypes -Wno-format -Werror |
CFLAGS = -c $(CFLAGS_OPT) |
INCLUDES= -I. -I../bfd -I../include -I$(SDK_DIR)/sources/newlib/libc/include |
DEFINES= -DHAVE_CONFIG_H -DLOCALEDIR='"/home/autobuild/tools/win32/share/locale"' |
FDEFS= -DSCRIPTDIR='"/home/autobuild/tools/win32/mingw32/lib"' -DBINDIR='"/home/autobuild/tools/win32/bin"' |
FDEFS+= -DTOOLBINDIR='"/home/autobuild/tools/win32/mingw32/bin"' |
MDEFS= -DDEFAULT_EMULATION='"i386pe"' -DBINDIR='"/home/autobuild/tools/win32/bin"' |
MDEFS+= -DTOOLBINDIR='"/home/autobuild/tools/win32/mingw32/bin"' -DTARGET='"i686-pc-mingw32"' |
MDEFS+= -DTARGET_SYSTEM_ROOT='"/home/autobuild/tools/win32"' -DTARGET_SYSTEM_ROOT_RELOCATABLE |
LIBS= -lbfd -liberty -lz -lgcc -lc.dll -lapp |
LIBPATH:= -L$(LIB_DIR) -L/home/autobuild/tools/win32/mingw32/lib |
LDFLAGS = -static -nostdlib --stack 0x200000 -T$(SDK_DIR)/sources/newlib/app.lds --image-base 0 |
SRCS = \ |
deffilep.c ei386pe.c \ |
ldcref.c ldctor.c ldemul.c \ |
ldexp.c ldfile.c ldgram.c \ |
ldlang.c ldlex-wrapper.c \ |
ldmain.c ldmisc.c ldver.c \ |
ldwrite.c lexsup.c mri.c \ |
pe-dll.c |
OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) |
# targets |
all: $(NAME) |
$(NAME): $(OBJS) Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LIBS) |
kos32-objcopy $@ -O binary |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
ldfile.o : ldfile.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(FDEFS) $(INCLUDES) -o $@ $< |
ldmain.o : ldmain.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(MDEFS) $(INCLUDES) -o $@ $< |
/contrib/toolchain/binutils/ld/config.h |
---|
0,0 → 1,238 |
/* config.h. Generated from config.in by configure. */ |
/* config.in. Generated from configure.in by autoheader. */ |
/* Check that config.h is #included before system headers |
(this works only for glibc, but that should be enough). */ |
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) |
# error config.h must be #included before system headers |
#endif |
#define __CONFIG_H__ 1 |
/* Define to 1 if translation of program messages to the user's native |
language is requested. */ |
/* #undef ENABLE_NLS */ |
/* Additional extension a shared object might have. */ |
/* #undef EXTRA_SHLIB_EXTENSION */ |
/* Define to choose default GOT handling scheme */ |
#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT |
/* Define to 1 if you have the `close' function. */ |
#define HAVE_CLOSE 1 |
/* Define to 1 if you have the declaration of `environ', and to 0 if you |
don't. */ |
#define HAVE_DECL_ENVIRON 1 |
/* Define to 1 if you have the declaration of `free', and to 0 if you don't. |
*/ |
#define HAVE_DECL_FREE 1 |
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. |
*/ |
#define HAVE_DECL_GETENV 1 |
/* Is the prototype for getopt in <unistd.h> in the expected format? */ |
#define HAVE_DECL_GETOPT 1 |
/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. |
*/ |
#define HAVE_DECL_SBRK 0 |
/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. |
*/ |
#define HAVE_DECL_STRSTR 1 |
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. |
*/ |
#define HAVE_DIRENT_H 1 |
/* Define to 1 if you have the `dlclose' function. */ |
/* #undef HAVE_DLCLOSE */ |
/* Define to 1 if you have the <dlfcn.h> header file. */ |
/* #undef HAVE_DLFCN_H */ |
/* Define to 1 if you have the `dlopen' function. */ |
/* #undef HAVE_DLOPEN */ |
/* Define to 1 if you have the `dlsym' function. */ |
/* #undef HAVE_DLSYM */ |
/* Define to 1 if you have the <elf-hints.h> header file. */ |
/* #undef HAVE_ELF_HINTS_H */ |
/* Define to 1 if you have the <fcntl.h> header file. */ |
#define HAVE_FCNTL_H 1 |
/* Define to 1 if you have the `glob' function. */ |
/* #undef HAVE_GLOB */ |
/* Define .init_array/.fini_array sections are available and working. */ |
#define HAVE_INITFINI_ARRAY 1 |
/* Define to 1 if you have the <inttypes.h> header file. */ |
#define HAVE_INTTYPES_H 1 |
/* Define if your <locale.h> file defines LC_MESSAGES. */ |
/* #undef HAVE_LC_MESSAGES */ |
/* Define to 1 if you have the <limits.h> header file. */ |
#define HAVE_LIMITS_H 1 |
/* Define to 1 if you have the <locale.h> header file. */ |
#define HAVE_LOCALE_H 1 |
/* Define to 1 if you have the `lseek' function. */ |
#define HAVE_LSEEK 1 |
/* Define to 1 if you have the <memory.h> header file. */ |
#define HAVE_MEMORY_H 1 |
/* Define to 1 if you have the `mkstemp' function. */ |
/* #undef HAVE_MKSTEMP */ |
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ |
/* #undef HAVE_NDIR_H */ |
/* Define to 1 if you have the `open' function. */ |
#define HAVE_OPEN 1 |
/* Define to 1 if you have the `realpath' function. */ |
/* #undef HAVE_REALPATH */ |
/* Define to 1 if you have the `sbrk' function. */ |
/* #undef HAVE_SBRK */ |
/* Define to 1 if you have the `setlocale' function. */ |
#define HAVE_SETLOCALE 1 |
/* Define to 1 if you have the <stdint.h> header file. */ |
#define HAVE_STDINT_H 1 |
/* Define to 1 if you have the <stdlib.h> header file. */ |
#define HAVE_STDLIB_H 1 |
/* Define to 1 if you have the <strings.h> header file. */ |
#define HAVE_STRINGS_H 1 |
/* Define to 1 if you have the <string.h> header file. */ |
#define HAVE_STRING_H 1 |
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. |
*/ |
/* #undef HAVE_SYS_DIR_H */ |
/* Define to 1 if you have the <sys/file.h> header file. */ |
#define HAVE_SYS_FILE_H 1 |
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. |
*/ |
/* #undef HAVE_SYS_NDIR_H */ |
/* Define to 1 if you have the <sys/param.h> header file. */ |
#define HAVE_SYS_PARAM_H 1 |
/* Define to 1 if you have the <sys/stat.h> header file. */ |
#define HAVE_SYS_STAT_H 1 |
/* Define to 1 if you have the <sys/time.h> header file. */ |
#define HAVE_SYS_TIME_H 1 |
/* Define to 1 if you have the <sys/types.h> header file. */ |
#define HAVE_SYS_TYPES_H 1 |
/* Define to 1 if you have the <unistd.h> header file. */ |
#define HAVE_UNISTD_H 1 |
/* Define to 1 if you have the `waitpid' function. */ |
/* #undef HAVE_WAITPID */ |
/* Define to 1 if you have the <windows.h> header file. */ |
//#define HAVE_WINDOWS_H 1 |
/* Define to 1 if you have the <zlib.h> header file. */ |
#define HAVE_ZLIB_H 1 |
/* Define to the sub-directory in which libtool stores uninstalled libraries. |
*/ |
#define LT_OBJDIR ".libs/" |
/* Name of package */ |
#define PACKAGE "ld" |
/* Define to the address where bug reports for this package should be sent. */ |
#define PACKAGE_BUGREPORT "" |
/* Define to the full name of this package. */ |
#define PACKAGE_NAME "" |
/* Define to the full name and version of this package. */ |
#define PACKAGE_STRING "" |
/* Define to the one symbol short name of this package. */ |
#define PACKAGE_TARNAME "" |
/* Define to the home page for this package. */ |
#define PACKAGE_URL "" |
/* Define to the version of this package. */ |
#define PACKAGE_VERSION "" |
/* The size of `void *', as computed by sizeof. */ |
#define SIZEOF_VOID_P 4 |
/* Define to 1 if you have the ANSI C header files. */ |
#define STDC_HEADERS 1 |
/* Define if you can safely include both <string.h> and <strings.h>. */ |
#define STRING_WITH_STRINGS 1 |
/* Use b modifier when opening binary files? */ |
#define USE_BINARY_FOPEN 1 |
/* Enable extensions on AIX 3, Interix. */ |
#ifndef _ALL_SOURCE |
# define _ALL_SOURCE 1 |
#endif |
/* Enable GNU extensions on systems that have them. */ |
#ifndef _GNU_SOURCE |
# define _GNU_SOURCE 1 |
#endif |
/* Enable threading extensions on Solaris. */ |
#ifndef _POSIX_PTHREAD_SEMANTICS |
# define _POSIX_PTHREAD_SEMANTICS 1 |
#endif |
/* Enable extensions on HP NonStop. */ |
#ifndef _TANDEM_SOURCE |
# define _TANDEM_SOURCE 1 |
#endif |
/* Enable general extensions on Solaris. */ |
#ifndef __EXTENSIONS__ |
# define __EXTENSIONS__ 1 |
#endif |
/* Version number of package */ |
#define VERSION "2.24" |
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a |
`char[]'. */ |
/* #undef YYTEXT_POINTER */ |
/* Number of bits in a file offset, on hosts where this is settable. */ |
/* #undef _FILE_OFFSET_BITS */ |
/* Define for large files, on AIX-style hosts. */ |
/* #undef _LARGE_FILES */ |
/* Define to 1 if on MINIX. */ |
/* #undef _MINIX */ |
/* Define to 2 if the system does not provide POSIX.1 features except with |
this defined. */ |
/* #undef _POSIX_1_SOURCE */ |
/* Define to 1 if you need to in order for `stat' and other things to work. */ |
/* #undef _POSIX_SOURCE */ |
/contrib/toolchain/binutils/ld/deffile.h |
---|
0,0 → 1,118 |
/* deffile.h - header for .DEF file parser |
Copyright 1998, 1999, 2000, 2002, 2003, 2005, 2006, 2007, 2009 |
Free Software Foundation, Inc. |
Written by DJ Delorie dj@cygnus.com |
This file is part of the GNU Binutils. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation; either version 3, or (at your option) |
any later version. |
The program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with GLD; see the file COPYING. If not, write to the Free |
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
02110-1301, USA. */ |
#ifndef DEFFILE_H |
#define DEFFILE_H |
/* DEF storage definitions. Note that any ordinal may be zero, and |
any pointer may be NULL, if not defined by the DEF file. */ |
typedef struct def_file_section { |
char *name; /* always set */ |
char *class; /* may be NULL */ |
char flag_read, flag_write, flag_execute, flag_shared; |
} def_file_section; |
typedef struct def_file_export { |
char *name; /* always set */ |
char *internal_name; /* always set, may == name */ |
char *its_name; /* optional export table name refered to. */ |
int ordinal; /* -1 if not specified */ |
int hint; |
char flag_private, flag_constant, flag_noname, flag_data, flag_forward; |
} def_file_export; |
typedef struct def_file_module { |
struct def_file_module *next; |
void *user_data; |
char name[1]; /* extended via malloc */ |
} def_file_module; |
typedef struct def_file_import { |
char *internal_name; /* always set */ |
def_file_module *module; /* always set */ |
char *name; /* may be NULL; either this or ordinal will be set */ |
char *its_name; /* optional import table name refered to. */ |
int ordinal; /* may be -1 */ |
int data; /* = 1 if data */ |
} def_file_import; |
typedef struct def_file_aligncomm { |
struct def_file_aligncomm *next; /* Chain pointer. */ |
char *symbol_name; /* Name of common symbol. */ |
unsigned int alignment; /* log-2 alignment. */ |
} def_file_aligncomm; |
typedef struct def_file { |
/* From the NAME or LIBRARY command. */ |
char *name; |
int is_dll; /* -1 if NAME/LIBRARY not given */ |
bfd_vma base_address; /* (bfd_vma)(-1) if unspecified */ |
/* From the DESCRIPTION command. */ |
char *description; |
/* From the STACK/HEAP command, -1 if unspecified. */ |
int stack_reserve, stack_commit; |
int heap_reserve, heap_commit; |
/* From the SECTION/SEGMENT commands. */ |
int num_section_defs; |
def_file_section *section_defs; |
/* From the EXPORTS commands. */ |
int num_exports; |
def_file_export *exports; |
/* Used by imports for module names. */ |
def_file_module *modules; |
/* From the IMPORTS commands. */ |
int num_imports; |
def_file_import *imports; |
/* From the VERSION command, -1 if not specified. */ |
int version_major, version_minor; |
/* Only expected from .drectve sections, not .DEF files. */ |
def_file_aligncomm *aligncomms; |
} def_file; |
extern def_file *def_file_empty (void); |
/* The second arg may be NULL. If not, this .def is appended to it. */ |
extern def_file *def_file_parse (const char *, def_file *); |
extern void def_file_free (def_file *); |
extern def_file_export *def_file_add_export (def_file *, const char *, |
const char *, int, |
const char *, int *); |
extern def_file_import *def_file_add_import (def_file *, const char *, |
const char *, int, const char *, |
const char *, int *); |
extern void def_file_add_directive (def_file *, const char *, int); |
extern def_file_module *def_get_module (def_file *, const char *); |
#ifdef DEF_FILE_PRINT |
extern void def_file_print (FILE *, def_file *); |
#endif |
#endif /* DEFFILE_H */ |
/contrib/toolchain/binutils/ld/deffilep.c |
---|
0,0 → 1,3426 |
/* A Bison parser, made by GNU Bison 2.3. */ |
/* Skeleton implementation for Bison's Yacc-like parsers in C |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
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 |
the Free Software Foundation; either version 2, or (at your option) |
any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program; if not, write to the Free Software |
Foundation, Inc., 51 Franklin Street, Fifth Floor, |
Boston, MA 02110-1301, USA. */ |
/* As a special exception, you may create a larger work that contains |
part or all of the Bison parser skeleton and distribute that work |
under terms of your choice, so long as that work isn't itself a |
parser generator using the skeleton or a modified version thereof |
as a parser skeleton. Alternatively, if you modify or redistribute |
the parser skeleton itself, you may (at your option) remove this |
special exception, which will cause the skeleton and the resulting |
Bison output files to be licensed under the GNU General Public |
License without this special exception. |
This special exception was added by the Free Software Foundation in |
version 2.2 of Bison. */ |
/* C LALR(1) parser skeleton written by Richard Stallman, by |
simplifying the original so-called "semantic" parser. */ |
/* All symbols defined below should begin with yy or YY, to avoid |
infringing on user name space. This should be done even for local |
variables, as they might otherwise be expanded by user macros. |
There are some unavoidable exceptions within include files to |
define necessary library symbols; they are noted "INFRINGES ON |
USER NAME SPACE" below. */ |
/* Identify Bison output. */ |
#define YYBISON 1 |
/* Bison version. */ |
#define YYBISON_VERSION "2.3" |
/* Skeleton name. */ |
#define YYSKELETON_NAME "yacc.c" |
/* Pure parsers. */ |
#define YYPURE 0 |
/* Using locations. */ |
#define YYLSP_NEEDED 0 |
/* Tokens. */ |
#ifndef YYTOKENTYPE |
# define YYTOKENTYPE |
/* Put the tokens into the symbol table, so that GDB and other debuggers |
know about them. */ |
enum yytokentype { |
NAME = 258, |
LIBRARY = 259, |
DESCRIPTION = 260, |
STACKSIZE_K = 261, |
HEAPSIZE = 262, |
CODE = 263, |
DATAU = 264, |
DATAL = 265, |
SECTIONS = 266, |
EXPORTS = 267, |
IMPORTS = 268, |
VERSIONK = 269, |
BASE = 270, |
CONSTANTU = 271, |
CONSTANTL = 272, |
PRIVATEU = 273, |
PRIVATEL = 274, |
ALIGNCOMM = 275, |
READ = 276, |
WRITE = 277, |
EXECUTE = 278, |
SHARED = 279, |
NONAMEU = 280, |
NONAMEL = 281, |
DIRECTIVE = 282, |
EQUAL = 283, |
ID = 284, |
DIGITS = 285 |
}; |
#endif |
/* Tokens. */ |
#define NAME 258 |
#define LIBRARY 259 |
#define DESCRIPTION 260 |
#define STACKSIZE_K 261 |
#define HEAPSIZE 262 |
#define CODE 263 |
#define DATAU 264 |