PR 14072
* configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: Generate an error if included before config.h. * alpha-opc.c: Include sysdep.h before any other header file. * alpha-dis.c: Likewise. * avr-dis.c: Likewise. * cgen-opc.c: Likewise. * cr16-dis.c: Likewise. * cris-dis.c: Likewise. * crx-dis.c: Likewise. * d10v-dis.c: Likewise. * d10v-opc.c: Likewise. * d30v-dis.c: Likewise. * d30v-opc.c: Likewise. * h8500-dis.c: Likewise. * i370-dis.c: Likewise. * i370-opc.c: Likewise. * m10200-dis.c: Likewise. * m10300-dis.c: Likewise. * micromips-opc.c: Likewise. * mips-opc.c: Likewise. * mips61-opc.c: Likewise. * moxie-dis.c: Likewise. * or32-opc.c: Likewise. * pj-dis.c: Likewise. * ppc-dis.c: Likewise. * ppc-opc.c: Likewise. * s390-dis.c: Likewise. * sh-dis.c: Likewise. * sh64-dis.c: Likewise. * sparc-dis.c: Likewise. * sparc-opc.c: Likewise. * spu-dis.c: Likewise. * tic30-dis.c: Likewise. * tic54x-dis.c: Likewise. * tic80-dis.c: Likewise. * tic80-opc.c: Likewise. * tilegx-dis.c: Likewise. * tilepro-dis.c: Likewise. * v850-dis.c: Likewise. * v850-opc.c: Likewise. * vax-dis.c: Likewise. * w65-dis.c: Likewise. * xgate-dis.c: Likewise. * xtensa-dis.c: Likewise. * rl78-decode.opc: Likewise. * rl78-decode.c: Regenerate. * rx-decode.opc: Likewise. * rx-decode.c: Regenerate. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: Generate an error if included before config.h. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * aclocal.m4: Regenerate. * bfd-in.h: Generate an error if included before config.h. * sysdep.h: Likewise. * bfd-in2.h: Regenerate. * compress.c: Remove #include "config.h". * plugin.c: Likewise. * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h. * elf64-hppa.c: Likewise. * som.c: Likewise. * xsymc.c: Likewise. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * aclocal.m4: Regenerate. * Makefile.am: Use wrappers around C files generated by flex. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * itbl-lex-wrapper.c: New file. * config/bfin-lex-wrapper.c: New file. * cgen.c: Include as.h before setjmp.h. * config/tc-dlx.c: Include as.h before any other header. * config/tc-h8300.c: Likewise. * config/tc-lm32.c: Likewise. * config/tc-mep.c: Likewise. * config/tc-microblaze.c: Likewise. * config/tc-mmix.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-or32.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic54x.c: Likewise. * config/tc-xtensa.c: Likewise. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * unwind-ia64.h: Include config.h.
This commit is contained in:
parent
134fa82ef4
commit
df7b86aa4c
@ -1,3 +1,22 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* aclocal.m4: Regenerate.
|
||||
* bfd-in.h: Generate an error if included before config.h.
|
||||
* sysdep.h: Likewise.
|
||||
* bfd-in2.h: Regenerate.
|
||||
* compress.c: Remove #include "config.h".
|
||||
* plugin.c: Likewise.
|
||||
* elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
|
||||
* elf64-hppa.c: Likewise.
|
||||
* som.c: Likewise.
|
||||
* xsymc.c: Likewise.
|
||||
|
||||
2012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
|
||||
Alan Modra <amodra@gmail.com>
|
||||
|
||||
|
@ -25,6 +25,10 @@
|
||||
#ifndef __BFD_H_SEEN__
|
||||
#define __BFD_H_SEEN__
|
||||
|
||||
#ifndef PACKAGE
|
||||
#error config.h must be included before this header
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -32,6 +32,10 @@
|
||||
#ifndef __BFD_H_SEEN__
|
||||
#define __BFD_H_SEEN__
|
||||
|
||||
#ifndef PACKAGE
|
||||
#error config.h must be included before this header
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Compressed section support (intended for debug sections).
|
||||
Copyright 2008, 2010, 2011
|
||||
Copyright 2008, 2010, 2011, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
@ -19,7 +19,6 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "config.h"
|
||||
#include "sysdep.h"
|
||||
#include "bfd.h"
|
||||
#include "libbfd.h"
|
||||
|
@ -1,5 +1,12 @@
|
||||
/* 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(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1
|
||||
|
||||
/* Name of host specific core header file to include in elf.c. */
|
||||
#undef CORE_HEADER
|
||||
|
||||
|
3
bfd/configure
vendored
3
bfd/configure
vendored
@ -12217,6 +12217,9 @@ fi
|
||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||
|
||||
|
||||
# PR 14072
|
||||
|
||||
|
||||
if test -z "$target" ; then
|
||||
as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
|
||||
fi
|
||||
|
@ -117,6 +117,15 @@ AM_BINUTILS_WARNINGS
|
||||
|
||||
AC_CONFIG_HEADERS(config.h:config.in)
|
||||
|
||||
# PR 14072
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1])
|
||||
|
||||
if test -z "$target" ; then
|
||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||
fi
|
||||
|
@ -20,8 +20,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "alloca-conf.h"
|
||||
#include "sysdep.h"
|
||||
#include "alloca-conf.h"
|
||||
#include "bfd.h"
|
||||
#include "bfdlink.h"
|
||||
#include "libbfd.h"
|
||||
|
@ -20,8 +20,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "alloca-conf.h"
|
||||
#include "sysdep.h"
|
||||
#include "alloca-conf.h"
|
||||
#include "bfd.h"
|
||||
#include "libbfd.h"
|
||||
#include "elf-bfd.h"
|
||||
|
@ -19,7 +19,6 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "config.h"
|
||||
#include "sysdep.h"
|
||||
#include "bfd.h"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* bfd back-end for HP PA-RISC SOM objects.
|
||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
||||
Free Software Foundation, Inc.
|
||||
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
||||
2012 Free Software Foundation, Inc.
|
||||
|
||||
Contributed by the Center for Software Science at the
|
||||
University of Utah.
|
||||
@ -23,8 +23,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
#include "alloca-conf.h"
|
||||
#include "sysdep.h"
|
||||
#include "alloca-conf.h"
|
||||
#include "bfd.h"
|
||||
|
||||
#include "libbfd.h"
|
||||
|
@ -23,6 +23,10 @@
|
||||
#ifndef BFD_SYSDEP_H
|
||||
#define BFD_SYSDEP_H
|
||||
|
||||
#ifdef PACKAGE
|
||||
#error sysdep.h must be included in lieu of config.h
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ansidecl.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* xSYM symbol-file support for BFD.
|
||||
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
||||
2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
@ -21,8 +21,8 @@
|
||||
|
||||
/* xSYM is the debugging format used by CodeWarrior on Mac OS classic. */
|
||||
|
||||
#include "alloca-conf.h"
|
||||
#include "sysdep.h"
|
||||
#include "alloca-conf.h"
|
||||
#include "xsym.h"
|
||||
#include "bfd.h"
|
||||
#include "libbfd.h"
|
||||
|
@ -1,3 +1,13 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* unwind-ia64.h: Include config.h.
|
||||
|
||||
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* dwarf.c (process_debug_info): Display abbrev offset in hex.
|
||||
|
8441
binutils/aclocal.m4
vendored
8441
binutils/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,11 @@
|
||||
/* 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__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
|
1358
binutils/configure
vendored
1358
binutils/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -44,6 +44,13 @@ AM_BINUTILS_WARNINGS
|
||||
|
||||
AC_CONFIG_HEADERS(config.h:config.in)
|
||||
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif])
|
||||
|
||||
if test -z "$target" ; then
|
||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||
fi
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* unwind-ia64.c -- utility routines to dump IA-64 unwind info for readelf.
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
|
||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||
|
||||
This file is part of GNU Binutils.
|
||||
|
||||
@ -19,6 +21,7 @@
|
||||
Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "config.h"
|
||||
#include "unwind-ia64.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -1,3 +1,30 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* aclocal.m4: Regenerate.
|
||||
* Makefile.am: Use wrappers around C files generated by flex.
|
||||
* Makefile.in: Regenerate.
|
||||
* doc/Makefile.in: Regenerate.
|
||||
* itbl-lex-wrapper.c: New file.
|
||||
* config/bfin-lex-wrapper.c: New file.
|
||||
* cgen.c: Include as.h before setjmp.h.
|
||||
* config/tc-dlx.c: Include as.h before any other header.
|
||||
* config/tc-h8300.c: Likewise.
|
||||
* config/tc-lm32.c: Likewise.
|
||||
* config/tc-mep.c: Likewise.
|
||||
* config/tc-microblaze.c: Likewise.
|
||||
* config/tc-mmix.c: Likewise.
|
||||
* config/tc-msp430.c: Likewise.
|
||||
* config/tc-or32.c: Likewise.
|
||||
* config/tc-tic4x.c: Likewise.
|
||||
* config/tc-tic54x.c: Likewise.
|
||||
* config/tc-xtensa.c: Likewise.
|
||||
|
||||
2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
|
||||
|
@ -32,7 +32,7 @@ ATOF_TARG_O = atof-@atof@.@OBJEXT@
|
||||
|
||||
# use @target_cpu_type@ for refering to configured target name
|
||||
IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h
|
||||
IT_SRCS=itbl-parse.c itbl-lex.c $(srcdir)/itbl-ops.c
|
||||
IT_SRCS=itbl-parse.c itbl-lex-wrapper.c $(srcdir)/itbl-ops.c
|
||||
IT_DEPS=$(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h
|
||||
IT_OBJS=itbl-parse.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@
|
||||
|
||||
@ -459,16 +459,16 @@ $(srcdir)/config/bfin-parse.h: ; @true
|
||||
|
||||
bfin-lex.c: $(srcdir)/config/bfin-lex.l
|
||||
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)
|
||||
bfin-lex.@OBJEXT@: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
|
||||
bfin-lex-wrapper.@OBJEXT@: $(srcdir)/config/bfin-lex-wrapper.c bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
|
||||
if am__fastdepCC
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
|
||||
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
else
|
||||
if AMDEP
|
||||
source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
source='bfin-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
endif
|
||||
$(COMPILE) -c `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
||||
$(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
|
||||
endif
|
||||
|
||||
rl78-parse.c: $(srcdir)/config/rl78-parse.y
|
||||
@ -492,16 +492,16 @@ $(srcdir)/config/rx-defs.h: ; @true
|
||||
|
||||
# Disable -Werror, if it has been enabled, since old versions of bison/
|
||||
# yacc will produce working code which contain compile time warnings.
|
||||
itbl-lex.@OBJEXT@: itbl-lex.c itbl-parse.h
|
||||
itbl-lex-wrapper.@OBJEXT@: itbl-lex-wrapper.c itbl-lex.c itbl-parse.h
|
||||
if am__fastdepCC
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR)
|
||||
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
else
|
||||
if AMDEP
|
||||
source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
source='itbl-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
endif
|
||||
$(COMPILE) -c `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
||||
$(COMPILE) -c $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR)
|
||||
endif
|
||||
|
||||
# Disable -Werror, if it has been enabled, since old versions of bison/
|
||||
|
@ -47,9 +47,7 @@ DIST_COMMON = NEWS README ChangeLog $(srcdir)/Makefile.in \
|
||||
bfin-parse.c itbl-parse.c itbl-lex.c $(srcdir)/../depcomp \
|
||||
$(srcdir)/../ylwrap
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/zlib.m4 \
|
||||
$(top_srcdir)/../bfd/warning.m4 \
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
|
||||
$(top_srcdir)/../config/depstand.m4 \
|
||||
$(top_srcdir)/../config/gettext-sister.m4 \
|
||||
$(top_srcdir)/../config/largefile.m4 \
|
||||
@ -60,9 +58,9 @@ am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/plugins.m4 \
|
||||
$(top_srcdir)/../config/po.m4 \
|
||||
$(top_srcdir)/../config/progtest.m4 \
|
||||
$(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
|
||||
$(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
|
||||
$(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/zlib.m4 \
|
||||
$(top_srcdir)/../bfd/warning.m4 $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
@ -151,6 +149,7 @@ CYGPATH_W = @CYGPATH_W@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
@ -186,6 +185,7 @@ LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
MSGFMT = @MSGFMT@
|
||||
@ -222,6 +222,7 @@ abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
@ -303,7 +304,7 @@ ATOF_TARG_O = atof-@atof@.@OBJEXT@
|
||||
|
||||
# use @target_cpu_type@ for refering to configured target name
|
||||
IT_HDRS = itbl-parse.h $(srcdir)/itbl-ops.h
|
||||
IT_SRCS = itbl-parse.c itbl-lex.c $(srcdir)/itbl-ops.c
|
||||
IT_SRCS = itbl-parse.c itbl-lex-wrapper.c $(srcdir)/itbl-ops.c
|
||||
IT_DEPS = $(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h
|
||||
IT_OBJS = itbl-parse.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@
|
||||
|
||||
@ -2466,12 +2467,12 @@ $(srcdir)/config/bfin-parse.h: ; @true
|
||||
|
||||
bfin-lex.c: $(srcdir)/config/bfin-lex.l
|
||||
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)
|
||||
bfin-lex.@OBJEXT@: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
||||
bfin-lex-wrapper.@OBJEXT@: $(srcdir)/config/bfin-lex-wrapper.c bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bfin-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
|
||||
|
||||
rl78-parse.c: $(srcdir)/config/rl78-parse.y
|
||||
$(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ;
|
||||
@ -2494,12 +2495,12 @@ $(srcdir)/config/rx-defs.h: ; @true
|
||||
|
||||
# Disable -Werror, if it has been enabled, since old versions of bison/
|
||||
# yacc will produce working code which contain compile time warnings.
|
||||
itbl-lex.@OBJEXT@: itbl-lex.c itbl-parse.h
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
||||
itbl-lex-wrapper.@OBJEXT@: itbl-lex-wrapper.c itbl-lex.c itbl-parse.h
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR)
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='itbl-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR)
|
||||
|
||||
# Disable -Werror, if it has been enabled, since old versions of bison/
|
||||
# yacc will produce working code which contain compile time warnings.
|
||||
|
8441
gas/aclocal.m4
vendored
8441
gas/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
/* GAS interface for targets using CGEN: Cpu tools GENerator.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||
2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
2006, 2007, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
@ -18,8 +18,8 @@
|
||||
along with GAS; see the file COPYING. If not, write to the Free Software
|
||||
Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "as.h"
|
||||
#include <setjmp.h>
|
||||
#include "symcat.h"
|
||||
#include "cgen-desc.h"
|
||||
#include "subsegs.h"
|
||||
|
@ -1,5 +1,12 @@
|
||||
/* 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(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
@ -228,6 +235,9 @@
|
||||
/* Using strict COFF? */
|
||||
#undef STRICTCOFF
|
||||
|
||||
/* Define if you can safely include both <string.h> and <strings.h>. */
|
||||
#undef STRING_WITH_STRINGS
|
||||
|
||||
/* Target alias. */
|
||||
#undef TARGET_ALIAS
|
||||
|
||||
|
5
gas/config/bfin-lex-wrapper.c
Normal file
5
gas/config/bfin-lex-wrapper.c
Normal file
@ -0,0 +1,5 @@
|
||||
/* The C source file generated by flex includes stdio.h before any of
|
||||
the C code in bfin-lex.l. Make sure we include sysdep.h first, so
|
||||
that config.h can set the correct values for various things. */
|
||||
#include "sysdep.h"
|
||||
#include "bfin-lex.c"
|
@ -1,5 +1,5 @@
|
||||
/* tc-ldx.c -- Assemble for the DLX
|
||||
Copyright 2002, 2003, 2004, 2005, 2007, 2009, 2010
|
||||
/* tc-dlx.c -- Assemble for the DLX
|
||||
Copyright 2002, 2003, 2004, 2005, 2007, 2009, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -21,8 +21,8 @@
|
||||
|
||||
/* Initially created by Kuang Hwa Lin, 3/20/2002. */
|
||||
|
||||
#include "safe-ctype.h"
|
||||
#include "as.h"
|
||||
#include "safe-ctype.h"
|
||||
#include "tc-dlx.h"
|
||||
#include "opcode/dlx.h"
|
||||
|
||||
|
@ -359,7 +359,6 @@ static int parse_reg (char *, op_type *, unsigned *, int);
|
||||
static char *skip_colonthing (char *, int *);
|
||||
static char *parse_exp (char *, struct h8_op *);
|
||||
|
||||
static int constant_fits_width_p (struct h8_op *, unsigned int);
|
||||
static int constant_fits_size_p (struct h8_op *, int, int);
|
||||
|
||||
/*
|
||||
@ -556,7 +555,7 @@ skip_colonthing (char *src, int *mode)
|
||||
@@aa[:8] memory indirect. */
|
||||
|
||||
static int
|
||||
constant_fits_width_p (struct h8_op *operand, unsigned int width)
|
||||
constant_fits_width_p (struct h8_op *operand, offsetT width)
|
||||
{
|
||||
offsetT num;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* tc-lm32.c - Lattice Mico32 assembler.
|
||||
Copyright 2008 Free Software Foundation, Inc.
|
||||
Copyright 2008, 2012 Free Software Foundation, Inc.
|
||||
Contributed by Jon Beniston <jon@beniston.com>
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -19,10 +19,9 @@
|
||||
Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "as.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "as.h"
|
||||
#include "safe-ctype.h"
|
||||
#include "subsegs.h"
|
||||
#include "bfd.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* tc-mep.c -- Assembler for the Toshiba Media Processor.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2009
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2012
|
||||
Free Software Foundation. Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -19,8 +19,8 @@
|
||||
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "as.h"
|
||||
#include <stdio.h>
|
||||
#include "dwarf2dbg.h"
|
||||
#include "subsegs.h"
|
||||
#include "symcat.h"
|
||||
|
@ -19,8 +19,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "as.h"
|
||||
#include <stdio.h>
|
||||
#include "bfd.h"
|
||||
#include "subsegs.h"
|
||||
#define DEFINE_TABLE
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* tc-mmix.c -- Assembler for Don Knuth's MMIX.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||
Free Software Foundation.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||
2012 Free Software Foundation.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
@ -27,8 +27,8 @@
|
||||
compatible syntax, but the main purpose is to serve GCC. */
|
||||
|
||||
|
||||
#include <limits.h>
|
||||
#include "as.h"
|
||||
#include <limits.h>
|
||||
#include "subsegs.h"
|
||||
#include "elf/mmix.h"
|
||||
#include "opcode/mmix.h"
|
||||
@ -40,11 +40,11 @@
|
||||
for example assert something of what it became or make a relocation. */
|
||||
|
||||
enum mmix_fixup_action
|
||||
{
|
||||
mmix_fixup_byte,
|
||||
mmix_fixup_register,
|
||||
mmix_fixup_register_or_adjust_for_byte
|
||||
};
|
||||
{
|
||||
mmix_fixup_byte,
|
||||
mmix_fixup_register,
|
||||
mmix_fixup_register_or_adjust_for_byte
|
||||
};
|
||||
|
||||
static int get_spec_regno (char *);
|
||||
static int get_operands (int, char *, expressionS *);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* tc-msp430.c -- Assembler code for the Texas Instruments MSP430
|
||||
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Dmitry Diky <diwil@mail.ru>
|
||||
|
||||
@ -21,10 +21,9 @@
|
||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#define PUSH_1X_WORKAROUND
|
||||
#include "as.h"
|
||||
#include <limits.h>
|
||||
#define PUSH_1X_WORKAROUND
|
||||
#include "subsegs.h"
|
||||
#include "opcode/msp430.h"
|
||||
#include "safe-ctype.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Assembly backend for the OpenRISC 1000.
|
||||
Copyright (C) 2002, 2003, 2005, 2007, 2009, 2010
|
||||
Copyright (C) 2002, 2003, 2005, 2007, 2009, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Damjan Lampret <lampret@opencores.org>.
|
||||
Modified bu Johan Rydberg, <johan.rydberg@netinsight.se>.
|
||||
@ -24,8 +24,8 @@
|
||||
|
||||
/* tc-a29k.c used as a template. */
|
||||
|
||||
#include "safe-ctype.h"
|
||||
#include "as.h"
|
||||
#include "safe-ctype.h"
|
||||
#include "opcode/or32.h"
|
||||
#include "elf/or32.h"
|
||||
|
||||
|
@ -43,11 +43,10 @@
|
||||
o Evaluation of constant floating point expressions (expr.c needs
|
||||
work!)
|
||||
|
||||
o Support 'abc' constants (that is 0x616263)
|
||||
*/
|
||||
o Support 'abc' constants (that is 0x616263). */
|
||||
|
||||
#include "safe-ctype.h"
|
||||
#include "as.h"
|
||||
#include "safe-ctype.h"
|
||||
#include "opcode/tic4x.h"
|
||||
#include "subsegs.h"
|
||||
#include "obstack.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* tc-tic54x.c -- Assembly code for the Texas Instruments TMS320C54X
|
||||
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
||||
2009, 2010 Free Software Foundation, Inc.
|
||||
2009, 2010, 2012 Free Software Foundation, Inc.
|
||||
Contributed by Timothy Wall (twall@cygnus.com)
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -45,8 +45,8 @@
|
||||
COFF1 limits section names to 8 characters.
|
||||
Some of the default behavior changed from COFF1 to COFF2. */
|
||||
|
||||
#include <limits.h>
|
||||
#include "as.h"
|
||||
#include <limits.h>
|
||||
#include "safe-ctype.h"
|
||||
#include "sb.h"
|
||||
#include "macro.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* tc-xtensa.c -- Assemble Xtensa instructions.
|
||||
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -19,8 +19,8 @@
|
||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <limits.h>
|
||||
#include "as.h"
|
||||
#include <limits.h>
|
||||
#include "sb.h"
|
||||
#include "safe-ctype.h"
|
||||
#include "tc-xtensa.h"
|
||||
|
1367
gas/configure
vendored
1367
gas/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -58,6 +58,15 @@ AM_BINUTILS_WARNINGS
|
||||
# Generate a header file
|
||||
AC_CONFIG_HEADERS(config.h:config.in)
|
||||
|
||||
# PR 14072
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1])
|
||||
|
||||
# If we are on a DOS filesystem, we must use gdb.ini rather than
|
||||
# .gdbinit.
|
||||
case "${host}" in
|
||||
@ -299,9 +308,9 @@ changequote([,])dnl
|
||||
extra_objects="$extra_objects bfin-parse.o"
|
||||
fi
|
||||
|
||||
echo ${extra_objects} | grep -s "bfin-lex.o"
|
||||
echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
|
||||
if test $? -ne 0 ; then
|
||||
extra_objects="$extra_objects bfin-lex.o"
|
||||
extra_objects="$extra_objects bfin-lex-wrapper.o"
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -332,9 +341,9 @@ changequote([,])dnl
|
||||
extra_objects="$extra_objects itbl-parse.o"
|
||||
fi
|
||||
|
||||
echo ${extra_objects} | grep -s "itbl-lex.o"
|
||||
echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
|
||||
if test $? -ne 0 ; then
|
||||
extra_objects="$extra_objects itbl-lex.o"
|
||||
extra_objects="$extra_objects itbl-lex-wrapper.o"
|
||||
fi
|
||||
|
||||
echo ${extra_objects} | grep -s "itbl-ops.o"
|
||||
|
@ -38,9 +38,7 @@ subdir = doc
|
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||
$(as_TEXINFOS)
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/zlib.m4 \
|
||||
$(top_srcdir)/../bfd/warning.m4 \
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
|
||||
$(top_srcdir)/../config/depstand.m4 \
|
||||
$(top_srcdir)/../config/gettext-sister.m4 \
|
||||
$(top_srcdir)/../config/largefile.m4 \
|
||||
@ -51,9 +49,9 @@ am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/plugins.m4 \
|
||||
$(top_srcdir)/../config/po.m4 \
|
||||
$(top_srcdir)/../config/progtest.m4 \
|
||||
$(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
|
||||
$(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
|
||||
$(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/../bfd/acinclude.m4 \
|
||||
$(top_srcdir)/../config/zlib.m4 \
|
||||
$(top_srcdir)/../bfd/warning.m4 $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
@ -120,6 +118,7 @@ CYGPATH_W = @CYGPATH_W@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
@ -155,6 +154,7 @@ LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
MSGFMT = @MSGFMT@
|
||||
@ -191,6 +191,7 @@ abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
|
5
gas/itbl-lex-wrapper.c
Normal file
5
gas/itbl-lex-wrapper.c
Normal file
@ -0,0 +1,5 @@
|
||||
/* The C source file generated by flex includes stdio.h before any of
|
||||
the C code in itbl-lex.l. Make sure we include sysdep.h first, so
|
||||
that config.h can set the correct values for various things. */
|
||||
#include "sysdep.h"
|
||||
#include "itbl-lex.c"
|
@ -1,3 +1,12 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
|
||||
2012-05-14 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* layout.cc (Layout::make_output_section): Mark .tdata section
|
||||
|
@ -1,5 +1,12 @@
|
||||
/* config.in. Generated from configure.ac 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(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
|
2
gold/configure
vendored
2
gold/configure
vendored
@ -3223,6 +3223,8 @@ ac_config_headers="$ac_config_headers config.h:config.in"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --with-sysroot was given.
|
||||
if test "${with_sysroot+set}" = set; then :
|
||||
withval=$with_sysroot; sysroot=$withval
|
||||
|
@ -11,6 +11,15 @@ AM_INIT_AUTOMAKE([no-dist parallel-tests])
|
||||
|
||||
AM_CONFIG_HEADER(config.h:config.in)
|
||||
|
||||
# PR 14072
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1])
|
||||
|
||||
AC_ARG_WITH(sysroot,
|
||||
[ --with-sysroot[=DIR] search for usr/lib et al within DIR],
|
||||
[sysroot=$withval], [sysroot=no])
|
||||
|
10
ld/ChangeLog
10
ld/ChangeLog
@ -1,3 +1,13 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* sysdep.h: Generate an error if included before config.h.
|
||||
|
||||
2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
|
||||
|
@ -1,5 +1,12 @@
|
||||
/* 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(__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
|
||||
|
7
ld/configure
vendored
7
ld/configure
vendored
@ -4750,6 +4750,9 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
|
||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||
|
||||
|
||||
# PR 14072
|
||||
|
||||
|
||||
if test -z "$target" ; then
|
||||
as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
|
||||
fi
|
||||
@ -12174,7 +12177,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12177 "configure"
|
||||
#line 12180 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -12280,7 +12283,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12283 "configure"
|
||||
#line 12286 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -124,6 +124,15 @@ AM_LC_MESSAGES
|
||||
|
||||
AC_CONFIG_HEADERS([config.h:config.in])
|
||||
|
||||
# PR 14072
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1])
|
||||
|
||||
if test -z "$target" ; then
|
||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||
fi
|
||||
|
@ -22,6 +22,10 @@
|
||||
#ifndef LD_SYSDEP_H
|
||||
#define LD_SYSDEP_H
|
||||
|
||||
#ifdef PACKAGE
|
||||
#error sysdep.h must be included in lieu of config.h
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,3 +1,59 @@
|
||||
2012-05-17 Daniel Richard G. <skunk@iskunk.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 14072
|
||||
* configure.in: Add check that sysdep.h has been included before
|
||||
any system header files.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* sysdep.h: Generate an error if included before config.h.
|
||||
* alpha-opc.c: Include sysdep.h before any other header file.
|
||||
* alpha-dis.c: Likewise.
|
||||
* avr-dis.c: Likewise.
|
||||
* cgen-opc.c: Likewise.
|
||||
* cr16-dis.c: Likewise.
|
||||
* cris-dis.c: Likewise.
|
||||
* crx-dis.c: Likewise.
|
||||
* d10v-dis.c: Likewise.
|
||||
* d10v-opc.c: Likewise.
|
||||
* d30v-dis.c: Likewise.
|
||||
* d30v-opc.c: Likewise.
|
||||
* h8500-dis.c: Likewise.
|
||||
* i370-dis.c: Likewise.
|
||||
* i370-opc.c: Likewise.
|
||||
* m10200-dis.c: Likewise.
|
||||
* m10300-dis.c: Likewise.
|
||||
* micromips-opc.c: Likewise.
|
||||
* mips-opc.c: Likewise.
|
||||
* mips61-opc.c: Likewise.
|
||||
* moxie-dis.c: Likewise.
|
||||
* or32-opc.c: Likewise.
|
||||
* pj-dis.c: Likewise.
|
||||
* ppc-dis.c: Likewise.
|
||||
* ppc-opc.c: Likewise.
|
||||
* s390-dis.c: Likewise.
|
||||
* sh-dis.c: Likewise.
|
||||
* sh64-dis.c: Likewise.
|
||||
* sparc-dis.c: Likewise.
|
||||
* sparc-opc.c: Likewise.
|
||||
* spu-dis.c: Likewise.
|
||||
* tic30-dis.c: Likewise.
|
||||
* tic54x-dis.c: Likewise.
|
||||
* tic80-dis.c: Likewise.
|
||||
* tic80-opc.c: Likewise.
|
||||
* tilegx-dis.c: Likewise.
|
||||
* tilepro-dis.c: Likewise.
|
||||
* v850-dis.c: Likewise.
|
||||
* v850-opc.c: Likewise.
|
||||
* vax-dis.c: Likewise.
|
||||
* w65-dis.c: Likewise.
|
||||
* xgate-dis.c: Likewise.
|
||||
* xtensa-dis.c: Likewise.
|
||||
* rl78-decode.opc: Likewise.
|
||||
* rl78-decode.c: Regenerate.
|
||||
* rx-decode.opc: Likewise.
|
||||
* rx-decode.c: Regenerate.
|
||||
|
||||
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ppc_dis.c: Don't include elf/ppc.h.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* alpha-dis.c -- Disassemble Alpha AXP instructions
|
||||
Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2005, 2007
|
||||
Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Richard Henderson <rth@tamu.edu>,
|
||||
patterned after the PPC opcode handling written by Ian Lance Taylor.
|
||||
@ -21,8 +21,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/alpha.h"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* alpha-opc.c -- Alpha AXP opcode list
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007
|
||||
Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007,
|
||||
2012 Free Software Foundation, Inc.
|
||||
Contributed by Richard Henderson <rth@cygnus.com>,
|
||||
patterned after the PPC opcode handling written by Ian Lance Taylor.
|
||||
|
||||
@ -21,8 +21,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/alpha.h"
|
||||
#include "bfd.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble AVR instructions.
|
||||
Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2008
|
||||
Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2008, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Contributed by Denis Chertykov <denisc@overta.ru>
|
||||
@ -21,8 +21,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <assert.h>
|
||||
#include "sysdep.h"
|
||||
#include <assert.h>
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
#include "libiberty.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* CGEN generic opcode support.
|
||||
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2009
|
||||
Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2009,
|
||||
2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libopcodes.
|
||||
|
||||
@ -19,8 +19,8 @@
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
#include "alloca-conf.h"
|
||||
#include "sysdep.h"
|
||||
#include "alloca-conf.h"
|
||||
#include <stdio.h>
|
||||
#include "ansidecl.h"
|
||||
#include "libiberty.h"
|
||||
|
@ -1,5 +1,12 @@
|
||||
/* 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(__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
|
||||
|
5
opcodes/configure
vendored
5
opcodes/configure
vendored
@ -11565,6 +11565,9 @@ fi
|
||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||
|
||||
|
||||
# PR 14072
|
||||
|
||||
|
||||
if test -z "$target" ; then
|
||||
as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
|
||||
fi
|
||||
@ -12468,7 +12471,7 @@ if test x${all_targets} = xfalse ; then
|
||||
bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
||||
bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
||||
bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
||||
|
@ -45,6 +45,15 @@ AM_BINUTILS_WARNINGS
|
||||
|
||||
AC_CONFIG_HEADERS(config.h:config.in)
|
||||
|
||||
# PR 14072
|
||||
AH_VERBATIM([00_CONFIG_H_CHECK],
|
||||
[/* Check that config.h is #included before system headers
|
||||
(this works only for glibc, but that should be enough). */
|
||||
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
||||
# error config.h must be #included before system headers
|
||||
#endif
|
||||
#define __CONFIG_H__ 1])
|
||||
|
||||
if test -z "$target" ; then
|
||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||
fi
|
||||
|
@ -18,8 +18,8 @@
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
#include "dis-asm.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/cr16.h"
|
||||
#include "libiberty.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassembler code for CRIS.
|
||||
Copyright 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009
|
||||
Copyright 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Axis Communications AB, Lund, Sweden.
|
||||
Written by Hans-Peter Nilsson.
|
||||
@ -21,8 +21,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "dis-asm.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/cris.h"
|
||||
#include "libiberty.h"
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "dis-asm.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/crx.h"
|
||||
|
||||
/* String to print when opcode was not matched. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble D10V instructions.
|
||||
Copyright 1996, 1997, 1998, 2000, 2001, 2005, 2007
|
||||
Copyright 1996, 1997, 1998, 2000, 2001, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,9 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/d10v.h"
|
||||
#include "dis-asm.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* d10v-opc.c -- D10V opcode list
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2007
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Written by Martin Hunt, Cygnus Support
|
||||
|
||||
@ -20,8 +20,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/d10v.h"
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble D30V instructions.
|
||||
Copyright 1997, 1998, 2000, 2001, 2005, 2007
|
||||
Copyright 1997, 1998, 2000, 2001, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/d30v.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* d30v-opc.c -- D30V opcode list
|
||||
Copyright 1997, 1998, 1999, 2000, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1997, 1998, 1999, 2000, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Written by Martin Hunt, Cygnus Support
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +20,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/d30v.h"
|
||||
|
||||
/* This table is sorted.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble h8500 instructions.
|
||||
Copyright 1993, 1998, 2000, 2001, 2002, 2004, 2005, 2007
|
||||
Copyright 1993, 1998, 2000, 2001, 2002, 2004, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,12 +19,12 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define DISASSEMBLER_TABLE
|
||||
#define DEFINE_TABLE
|
||||
|
||||
#include "sysdep.h"
|
||||
#include "h8500-opc.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* i370-dis.c -- Disassemble Instruction 370 (ESA/390) instructions
|
||||
Copyright 1994, 2000, 2003, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1994, 2000, 2003, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
PowerPC version written by Ian Lance Taylor, Cygnus Support
|
||||
Rewritten for i370 ESA/390 support by Linas Vepstas <linas@linas.org>
|
||||
|
||||
@ -20,8 +21,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/i370.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* i370-opc.c -- Instruction 370 (ESA/390) architecture opcode list
|
||||
Copyright 1994, 1999, 2000, 2001, 2003, 2005, 2007
|
||||
Copyright 1994, 1999, 2000, 2001, 2003, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
PowerPC version written by Ian Lance Taylor, Cygnus Support
|
||||
Rewritten for i370 ESA/390 support by Linas Vepstas <linas@linas.org> 1998, 1999
|
||||
@ -21,8 +21,8 @@
|
||||
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/i370.h"
|
||||
|
||||
/* This file holds the i370 opcode table. The opcode table
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Disassemble MN10200 instructions.
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,9 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/mn10200.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble MN10300 instructions.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,9 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/mn10300.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* micromips-opc.c. microMIPS opcode table.
|
||||
Copyright 2008 Free Software Foundation, Inc.
|
||||
Copyright 2008, 2012 Free Software Foundation, Inc.
|
||||
Contributed by Chao-ying Fu, MIPS Technologies, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +19,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/mips.h"
|
||||
|
||||
#define UBD INSN_UNCOND_BRANCH_DELAY
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* mips-opc.c -- MIPS opcode list.
|
||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Ralph Campbell and OSF
|
||||
Commented and modified by Ian Lance Taylor, Cygnus Support
|
||||
Extended for MIPS32 support by Anders Norlander, and by SiByte, Inc.
|
||||
@ -24,8 +25,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/mips.h"
|
||||
|
||||
/* Short hand so the lines aren't too long. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* mips16-opc.c. Mips16 opcode table.
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2006, 2007
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2006, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Ian Lance Taylor, Cygnus Support
|
||||
|
||||
@ -20,8 +20,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/mips.h"
|
||||
|
||||
/* This is the opcodes table for the mips16 processor. The format of
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble moxie instructions.
|
||||
Copyright 2009
|
||||
Copyright 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +19,9 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define STATIC_TABLE
|
||||
#define DEFINE_TABLE
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Table of opcodes for the OpenRISC 1000 ISA.
|
||||
Copyright 2002, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
Copyright 2002, 2004, 2005, 2007, 2008, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Damjan Lampret (lampret@opencores.org).
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,18 +20,17 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/* We treat all letters the same in encode/decode routines so
|
||||
we need to assign some characteristics to them like signess etc. */
|
||||
#include "sysdep.h"
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "safe-ctype.h"
|
||||
#include "ansidecl.h"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "opcode/or32.h"
|
||||
|
||||
/* We treat all letters the same in encode/decode routines so
|
||||
we need to assign some characteristics to them like signess etc. */
|
||||
|
||||
const struct or32_letter or32_letters[] =
|
||||
{
|
||||
{ 'A', NUM_UNSIGNED },
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* pj-dis.c -- Disassemble picoJava instructions.
|
||||
Copyright 1999, 2000, 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1999, 2000, 2001, 2002, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Steve Chamberlain, of Transmeta (sac@pobox.com).
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +20,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/pj.h"
|
||||
#include "dis-asm.h"
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "dis-asm.h"
|
||||
#include "elf-bfd.h"
|
||||
#include "elf32-ppc.h"
|
||||
|
@ -21,8 +21,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/ppc.h"
|
||||
#include "opintl.h"
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
#line 1 "rl78-decode.opc"
|
||||
/* -*- c -*- */
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "ansidecl.h"
|
||||
#include "opcode/rl78.h"
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
/* -*- c -*- */
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "ansidecl.h"
|
||||
#include "opcode/rl78.h"
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
#line 1 "rx-decode.opc"
|
||||
/* -*- c -*- */
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "ansidecl.h"
|
||||
#include "opcode/rx.h"
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
/* -*- c -*- */
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "ansidecl.h"
|
||||
#include "opcode/rx.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* s390-dis.c -- Disassemble S390 instructions
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007, 2008
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "ansidecl.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
#include "opcode/s390.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Disassemble SH instructions.
|
||||
Copyright 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||
2006, 2007 Free Software Foundation, Inc.
|
||||
2006, 2007, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -19,8 +19,9 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define STATIC_TABLE
|
||||
#define DEFINE_TABLE
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Disassemble SH64 instructions.
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,10 +19,9 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "dis-asm.h"
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "dis-asm.h"
|
||||
#include "sh64-opc.h"
|
||||
#include "libiberty.h"
|
||||
/* We need to refer to the ELF header structure. */
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Print SPARC instructions.
|
||||
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
|
||||
2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -20,9 +20,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/sparc.h"
|
||||
#include "dis-asm.h"
|
||||
#include "libiberty.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Table of opcodes for the sparc.
|
||||
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2002, 2004, 2005, 2006, 2007, 2008, 2011
|
||||
2000, 2002, 2004, 2005, 2006, 2007, 2008, 2011, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -25,8 +25,8 @@
|
||||
instruction's name rather than the args. This would make gas faster, pinsn
|
||||
slower, but would mess up some macros a bit. xoxorich. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/sparc.h"
|
||||
|
||||
/* Some defines to make life easy. */
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Disassemble SPU instructions
|
||||
|
||||
Copyright 2006, 2007 Free Software Foundation, Inc.
|
||||
Copyright 2006, 2007, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -19,8 +19,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/spu.h"
|
||||
|
||||
|
@ -27,6 +27,10 @@
|
||||
trying to replace often did that. If it can be dropped from this
|
||||
file (check in a non-ANSI environment!), it should be. */
|
||||
|
||||
#ifdef PACKAGE
|
||||
#error sysdep.h must be included in lieu of config.h
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ansidecl.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassembly routines for TMS320C30 architecture
|
||||
Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2009
|
||||
Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/tic30.h"
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Disassembly routines for TMS320C54X architecture
|
||||
Copyright 1999, 2000, 2001, 2005, 2007, 2009 Free Software Foundation, Inc.
|
||||
Copyright 1999, 2000, 2001, 2005, 2007, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Timothy Wall (twall@cygnus.com)
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,10 +20,10 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/tic54x.h"
|
||||
#include "coff/tic54x.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Print TI TMS320C80 (MVP) instructions
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 2000, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,9 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/tic80.h"
|
||||
#include "dis-asm.h"
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Opcode table for TI TMS320C80 (MVP).
|
||||
Copyright 1996, 1997, 2000, 2005, 2007 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 2000, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,8 +19,8 @@
|
||||
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/tic80.h"
|
||||
|
||||
/* This file holds various tables for the TMS320C80 (MVP).
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* tilegx-dis.c. Disassembly routines for the TILE-Gx architecture.
|
||||
Copyright 2011 Free Software Foundation, Inc.
|
||||
Copyright 2011, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,12 +18,12 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
#include "bfd.h"
|
||||
#include "elf/tilegx.h"
|
||||
#include "elf-bfd.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/tilegx.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* tilepro-dis.c. Disassembly routines for the TILEPro architecture.
|
||||
Copyright 2011 Free Software Foundation, Inc.
|
||||
Copyright 2011, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -18,12 +18,12 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
#include "bfd.h"
|
||||
#include "elf/tilepro.h"
|
||||
#include "elf-bfd.h"
|
||||
#include "sysdep.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opcode/tilepro.h"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Disassemble V850 instructions.
|
||||
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2010,
|
||||
2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
@ -20,9 +20,8 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/v850.h"
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
|
@ -19,8 +19,8 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/v850.h"
|
||||
#include "bfd.h"
|
||||
#include "opintl.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Print VAX instructions.
|
||||
Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007, 2009
|
||||
Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007, 2009, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Pauline Middelink <middelin@polyware.iaf.nl>
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <setjmp.h>
|
||||
#include <string.h>
|
||||
#include "sysdep.h"
|
||||
#include "opcode/vax.h"
|
||||
#include "dis-asm.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Disassemble WDC 65816 instructions.
|
||||
Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007
|
||||
Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007, 2012
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
@ -19,8 +19,9 @@
|
||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define STATIC_TABLE
|
||||
#define DEFINE_TABLE
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* xgate-dis.c -- Freescale XGATE disassembly
|
||||
Copyright 2009, 2010, 2011
|
||||
Copyright 2009, 2010, 2011, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Written by Sean Keys (skeys@ipdatasys.com)
|
||||
|
||||
@ -18,11 +18,10 @@
|
||||
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.
|
||||
*/
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#include <assert.h>
|
||||
#include "sysdep.h"
|
||||
#include <assert.h>
|
||||
#include "dis-asm.h"
|
||||
#include "opintl.h"
|
||||
#include "libiberty.h"
|
||||
@ -35,34 +34,31 @@
|
||||
#define XGATE_NINE_SIGNBIT 0x100
|
||||
#define XGATE_TEN_SIGNBIT 0x200
|
||||
|
||||
/* Structures */
|
||||
struct decodeInfo {
|
||||
/* Structures. */
|
||||
struct decodeInfo
|
||||
{
|
||||
unsigned int operMask;
|
||||
unsigned int operMasksRegisterBits;
|
||||
struct xgate_opcode *opcodePTR;
|
||||
};
|
||||
|
||||
/* Prototypes for local functions. */
|
||||
static int
|
||||
print_insn( bfd_vma, struct disassemble_info *);
|
||||
static int
|
||||
read_memory( bfd_vma, bfd_byte*, int, struct disassemble_info *);
|
||||
static int
|
||||
ripBits(unsigned int *, int,
|
||||
struct xgate_opcode *, unsigned int);
|
||||
int
|
||||
macro_search(char *, char *);
|
||||
struct decodeInfo *
|
||||
find_match(unsigned int raw_code);
|
||||
static int print_insn (bfd_vma, struct disassemble_info *);
|
||||
static int read_memory (bfd_vma, bfd_byte*, int, struct disassemble_info *);
|
||||
static int ripBits (unsigned int *, int,
|
||||
struct xgate_opcode *, unsigned int);
|
||||
static int macro_search (char *, char *);
|
||||
static struct decodeInfo * find_match (unsigned int);
|
||||
|
||||
/* statics */
|
||||
/* Statics. */
|
||||
static struct decodeInfo *decodeTable;
|
||||
static int initialized;
|
||||
static char previousOpName[10];
|
||||
static unsigned int perviousBin;
|
||||
|
||||
/* Disassemble one instruction at address 'memaddr'. Returns the number
|
||||
of bytes used by that instruction. */
|
||||
of bytes used by that instruction. */
|
||||
|
||||
static int
|
||||
print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
{
|
||||
@ -82,11 +78,11 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
bfd_vma absAddress;
|
||||
|
||||
unsigned int operMaskReg = 0;
|
||||
/* initialize our array of opcode masks and check them against our constant
|
||||
table */
|
||||
/* Initialize our array of opcode masks and check them against our constant
|
||||
table. */
|
||||
if (!initialized)
|
||||
{
|
||||
decodeTable = xmalloc(sizeof(struct decodeInfo) * xgate_num_opcodes);
|
||||
decodeTable = xmalloc (sizeof (struct decodeInfo) * xgate_num_opcodes);
|
||||
for (i = 0, decodeTablePTR = decodeTable; i < xgate_num_opcodes;
|
||||
i++, decodeTablePTR++, opcodePTR++)
|
||||
{
|
||||
@ -101,33 +97,35 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
mask |= (*s == '0' || *s == '1');
|
||||
operandRegisterBits |= (*s == 'r');
|
||||
}
|
||||
/* asserting will uncover inconsistencies in our table */
|
||||
assert(
|
||||
(s - opcodePTR->format) == 16 || (s - opcodePTR->format) == 32);
|
||||
assert(opcodePTR->bin_opcode == bin);
|
||||
/* Asserting will uncover inconsistencies in our table. */
|
||||
assert ((s - opcodePTR->format) == 16 || (s - opcodePTR->format) == 32);
|
||||
assert (opcodePTR->bin_opcode == bin);
|
||||
|
||||
decodeTablePTR->operMask = mask;
|
||||
decodeTablePTR->operMasksRegisterBits = operandRegisterBits;
|
||||
decodeTablePTR->opcodePTR = opcodePTR;
|
||||
}
|
||||
initialized = 1;
|
||||
}
|
||||
/* read 16 bits */
|
||||
|
||||
/* Read 16 bits. */
|
||||
bytesRead += XGATE_TWO_BYTES;
|
||||
status = read_memory(memaddr, buffer, XGATE_TWO_BYTES, info);
|
||||
status = read_memory (memaddr, buffer, XGATE_TWO_BYTES, info);
|
||||
if (status == 0)
|
||||
{
|
||||
raw_code = buffer[0];
|
||||
raw_code <<= 8;
|
||||
raw_code += buffer[1];
|
||||
|
||||
decodePTR = find_match(raw_code);
|
||||
decodePTR = find_match (raw_code);
|
||||
if (decodePTR)
|
||||
{
|
||||
operMaskReg = decodePTR->operMasksRegisterBits;
|
||||
(*info->fprintf_func)(info->stream, "%s", decodePTR->opcodePTR->name);
|
||||
|
||||
/* First we compare the shorthand format of the constraints. If we
|
||||
still are unable to pinpoint the operands
|
||||
we analyze the opcodes constraint string. */
|
||||
still are unable to pinpoint the operands
|
||||
we analyze the opcodes constraint string. */
|
||||
switch (decodePTR->opcodePTR->sh_format)
|
||||
{
|
||||
case XG_R_C:
|
||||
@ -145,13 +143,13 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
case XG_INH:
|
||||
break;
|
||||
case XG_R_R_R:
|
||||
if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_TRI))
|
||||
if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_TRI))
|
||||
{
|
||||
(*info->fprintf_func)(info->stream, " R%x, R%x, R%x",
|
||||
(raw_code >> 8) & 0x7, (raw_code >> 5) & 0x7,
|
||||
(raw_code >> 2) & 0x7);
|
||||
}
|
||||
else if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_IDR))
|
||||
else if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_IDR))
|
||||
{
|
||||
if (raw_code & 0x01)
|
||||
{
|
||||
@ -179,19 +177,19 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
}
|
||||
break;
|
||||
case XG_R_R:
|
||||
if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_DYA_MON))
|
||||
if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_DYA_MON))
|
||||
{
|
||||
operandOne = ripBits(&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
operandOne = ripBits (&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
raw_code);
|
||||
operandTwo = ripBits(&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
operandTwo = ripBits (&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
raw_code);
|
||||
(*info->fprintf_func)(info->stream, " R%x, R%x", operandOne,
|
||||
operandTwo);
|
||||
}
|
||||
else if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_DYA))
|
||||
else if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_DYA))
|
||||
{
|
||||
operandOne = ripBits(&operMaskReg, 3, opcodePTR, raw_code);
|
||||
operandTwo = ripBits(&operMaskReg, 3, opcodePTR, raw_code);
|
||||
operandOne = ripBits (&operMaskReg, 3, opcodePTR, raw_code);
|
||||
operandTwo = ripBits (&operMaskReg, 3, opcodePTR, raw_code);
|
||||
(*info->fprintf_func)(info->stream, " R%x, R%x", operandOne,
|
||||
operandTwo);
|
||||
}
|
||||
@ -206,20 +204,20 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
(raw_code >> 8) & 0x7, (raw_code >> 5) & 0x7, raw_code & 0x1f);
|
||||
break;
|
||||
case XG_R:
|
||||
operandOne = ripBits(&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
operandOne = ripBits (&operMaskReg, 3, decodePTR->opcodePTR,
|
||||
raw_code);
|
||||
(*info->fprintf_func)(info->stream, " R%x", operandOne);
|
||||
break;
|
||||
case XG_I | XG_PCREL:
|
||||
if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_REL9))
|
||||
if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_REL9))
|
||||
{
|
||||
/* if address is negative handle it accordingly */
|
||||
/* If address is negative handle it accordingly. */
|
||||
if (raw_code & XGATE_NINE_SIGNBIT)
|
||||
{
|
||||
relAddr = XGATE_NINE_BITS >> 1; /* clip sign bit */
|
||||
relAddr = ~relAddr; /* make signed */
|
||||
relAddr |= (raw_code & 0xFF) + 1; /* apply our value */
|
||||
relAddr <<= 1; /* multiply by two as per processor docs */
|
||||
relAddr = XGATE_NINE_BITS >> 1; /* Clip sign bit. */
|
||||
relAddr = ~relAddr; /* Make signed. */
|
||||
relAddr |= (raw_code & 0xFF) + 1; /* Apply our value. */
|
||||
relAddr <<= 1; /* Multiply by two as per processor docs. */
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -230,15 +228,15 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
(*info->fprintf_func)(info->stream, " Abs* 0x");
|
||||
(*info->print_address_func)(memaddr + relAddr, info);
|
||||
}
|
||||
else if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_REL10))
|
||||
else if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_REL10))
|
||||
{
|
||||
/* if address is negative handle it accordingly */
|
||||
/* If address is negative handle it accordingly. */
|
||||
if (raw_code & XGATE_TEN_SIGNBIT)
|
||||
{
|
||||
relAddr = XGATE_TEN_BITS >> 1; /* clip sign bit */
|
||||
relAddr = ~relAddr; /* make signed */
|
||||
relAddr |= (raw_code & 0x1FF) + 1; /* apply our value */
|
||||
relAddr <<= 1; /* multiply by two as per processor docs */
|
||||
relAddr = XGATE_TEN_BITS >> 1; /* Clip sign bit. */
|
||||
relAddr = ~relAddr; /* Make signed. */
|
||||
relAddr |= (raw_code & 0x1FF) + 1; /* Apply our value. */
|
||||
relAddr <<= 1; /* Multiply by two as per processor docs. */
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -257,14 +255,14 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
}
|
||||
break;
|
||||
case XG_R_I:
|
||||
if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_IMM4))
|
||||
if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_IMM4))
|
||||
{
|
||||
(*info->fprintf_func)(info->stream, " R%x, #0x%02x",
|
||||
(raw_code >> 8) & 0x7, (raw_code >> 4) & 0xF);
|
||||
}
|
||||
else if (!strcmp(decodePTR->opcodePTR->constraints, XGATE_OP_IMM8))
|
||||
else if (!strcmp (decodePTR->opcodePTR->constraints, XGATE_OP_IMM8))
|
||||
{
|
||||
if (macro_search(decodePTR->opcodePTR->name, previousOpName) &&
|
||||
if (macro_search (decodePTR->opcodePTR->name, previousOpName) &&
|
||||
previousOpName[0])
|
||||
{
|
||||
absAddress = (0xFF & raw_code) << 8;
|
||||
@ -276,7 +274,7 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(previousOpName, decodePTR->opcodePTR->name);
|
||||
strcpy (previousOpName, decodePTR->opcodePTR->name);
|
||||
(*info->fprintf_func)(info->stream, " R%x, #0x%02x",
|
||||
(raw_code >> 8) & 0x7, raw_code & 0xff);
|
||||
}
|
||||
@ -302,7 +300,7 @@ print_insn (bfd_vma memaddr, struct disassemble_info* info)
|
||||
else
|
||||
{
|
||||
(*info->fprintf_func)(info->stream,
|
||||
" unable to find opcode match #0%x", raw_code);
|
||||
" unable to find opcode match #0%x", raw_code);
|
||||
}
|
||||
}
|
||||
return bytesRead;
|
||||
@ -329,45 +327,51 @@ read_memory (bfd_vma memaddr, bfd_byte* buffer, int size,
|
||||
}
|
||||
|
||||
static int
|
||||
ripBits(unsigned int *operandBitsRemaining, int numBitsRequested,
|
||||
struct xgate_opcode *opcodePTR, unsigned int memory)
|
||||
ripBits (unsigned int *operandBitsRemaining,
|
||||
int numBitsRequested,
|
||||
struct xgate_opcode *opcodePTR,
|
||||
unsigned int memory)
|
||||
{
|
||||
unsigned int currentBit;
|
||||
int operand;
|
||||
int numBitsFound;
|
||||
|
||||
for (operand = 0, numBitsFound = 0, currentBit = 1
|
||||
<< ((opcodePTR->size * 8) - 1);
|
||||
(numBitsFound < numBitsRequested) && currentBit; currentBit >>= 1)
|
||||
<< ((opcodePTR->size * 8) - 1);
|
||||
(numBitsFound < numBitsRequested) && currentBit; currentBit >>= 1)
|
||||
{
|
||||
if(currentBit & *operandBitsRemaining) {
|
||||
*operandBitsRemaining &= ~(currentBit); /* consume the current bit */
|
||||
operand <<= 1; /* make room for our next bit */
|
||||
numBitsFound++;
|
||||
operand |= (currentBit & memory) > 0;
|
||||
}
|
||||
}
|
||||
if (currentBit & *operandBitsRemaining)
|
||||
{
|
||||
*operandBitsRemaining &= ~(currentBit); /* Consume the current bit. */
|
||||
operand <<= 1; /* Make room for our next bit. */
|
||||
numBitsFound++;
|
||||
operand |= (currentBit & memory) > 0;
|
||||
}
|
||||
}
|
||||
return operand;
|
||||
}
|
||||
|
||||
int
|
||||
macro_search(char *currentName, char *lastName)
|
||||
static int
|
||||
macro_search (char *currentName, char *lastName)
|
||||
{
|
||||
int i;
|
||||
int length = 0;
|
||||
char *where;
|
||||
|
||||
for (i = 0; i < xgate_num_opcodes; i++)
|
||||
{
|
||||
where = strstr(xgate_opcodes[i].constraints, lastName);
|
||||
where = strstr (xgate_opcodes[i].constraints, lastName);
|
||||
|
||||
if (where)
|
||||
{
|
||||
length = strlen(where);
|
||||
length = strlen (where);
|
||||
}
|
||||
if (length)
|
||||
{
|
||||
where = strstr(xgate_opcodes[i].constraints, currentName);
|
||||
where = strstr (xgate_opcodes[i].constraints, currentName);
|
||||
if (where)
|
||||
{
|
||||
length = strlen(where);
|
||||
length = strlen (where);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@ -375,8 +379,8 @@ macro_search(char *currentName, char *lastName)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct decodeInfo*
|
||||
find_match(unsigned int raw_code)
|
||||
static struct decodeInfo *
|
||||
find_match (unsigned int raw_code)
|
||||
{
|
||||
struct decodeInfo *decodeTablePTR = 0;
|
||||
int i;
|
||||
@ -387,16 +391,14 @@ find_match(unsigned int raw_code)
|
||||
if ((raw_code & decodeTablePTR->operMask)
|
||||
== decodeTablePTR->opcodePTR->bin_opcode)
|
||||
{
|
||||
/* make sure we didn't run into a macro or alias */
|
||||
/* Make sure we didn't run into a macro or alias. */
|
||||
if (decodeTablePTR->opcodePTR->cycles_min != 0)
|
||||
{
|
||||
return decodeTablePTR;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user