revision 1264:74ad81710528
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1264:74ad81710528 |
parent | 1263:b3de98d19faf |
child | 1265:7c6c5d26fd2e |
author | nkeynes |
date | Tue Mar 06 12:19:08 2012 +1000 (10 years ago) |
Move x86dasm/* files under xlat/disasm
1.1 --- a/src/Makefile.am Tue Mar 06 09:04:34 2012 +10001.2 +++ b/src/Makefile.am Tue Mar 06 12:19:08 2012 +10001.3 @@ -88,15 +88,15 @@1.4 xlat/x86/ia32abi.h xlat/x86/amd64abi.h \1.5 xlat/xlatdasm.c xlat/xlatdasm.h \1.6 sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c sh4/shadow.c \1.7 - x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \1.8 - x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \1.9 - x86dasm/symcat.h x86dasm/sysdep.h1.10 + xlat/disasm/i386-dis.c xlat/disasm/dis-init.c xlat/disasm/dis-buf.c \1.11 + xlat/disasm/ansidecl.h xlat/disasm/bfd.h xlat/disasm/dis-asm.h \1.12 + xlat/disasm/symcat.h xlat/disasm/sysdep.h1.14 test_testsh4x86_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@1.15 test_testsh4x86_CPPFLAGS = @LXDREAMCPPFLAGS@1.16 test_testsh4x86_SOURCES = test/testsh4x86.c xlat/xlatdasm.c \1.17 - xlat/xlatdasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \1.18 - x86dasm/dis-buf.c \1.19 + xlat/xlatdasm.h xlat/disasm/i386-dis.c xlat/disasm/dis-init.c \1.20 + xlat/disasm/dis-buf.c \1.21 sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c sh4/sh4dasm.c \1.22 xlat/xltcache.h mem.c util.c cpu.c
2.1 --- a/src/Makefile.in Tue Mar 06 09:04:34 2012 +10002.2 +++ b/src/Makefile.in Tue Mar 06 12:19:08 2012 +10002.3 @@ -47,9 +47,9 @@2.4 @BUILD_SH4X86_TRUE@ xlat/x86/ia32abi.h xlat/x86/amd64abi.h \2.5 @BUILD_SH4X86_TRUE@ xlat/xlatdasm.c xlat/xlatdasm.h \2.6 @BUILD_SH4X86_TRUE@ sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c sh4/shadow.c \2.7 -@BUILD_SH4X86_TRUE@ x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \2.8 -@BUILD_SH4X86_TRUE@ x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \2.9 -@BUILD_SH4X86_TRUE@ x86dasm/symcat.h x86dasm/sysdep.h2.10 +@BUILD_SH4X86_TRUE@ xlat/disasm/i386-dis.c xlat/disasm/dis-init.c xlat/disasm/dis-buf.c \2.11 +@BUILD_SH4X86_TRUE@ xlat/disasm/ansidecl.h xlat/disasm/bfd.h xlat/disasm/dis-asm.h \2.12 +@BUILD_SH4X86_TRUE@ xlat/disasm/symcat.h xlat/disasm/sysdep.h2.14 @BUILD_SH4X86_TRUE@am__append_3 = test/testsh4x862.15 @GUI_GTK_TRUE@am__append_4 = gtkui/gtkui.c gtkui/gtkui.h \2.16 @@ -146,11 +146,12 @@2.17 hotkeys.c hotkeys.h sh4/sh4x86.c xlat/x86/x86op.h \2.18 xlat/x86/ia32abi.h xlat/x86/amd64abi.h xlat/xlatdasm.c \2.19 xlat/xlatdasm.h sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \2.20 - sh4/shadow.c x86dasm/i386-dis.c x86dasm/dis-init.c \2.21 - x86dasm/dis-buf.c x86dasm/ansidecl.h x86dasm/bfd.h \2.22 - x86dasm/dis-asm.h x86dasm/symcat.h x86dasm/sysdep.h \2.23 - cocoaui/paths_osx.m drivers/io_osx.m drivers/mac_keymap.h \2.24 - drivers/mac_keymap.txt paths_unix.c drivers/io_glib.c2.25 + sh4/shadow.c xlat/disasm/i386-dis.c xlat/disasm/dis-init.c \2.26 + xlat/disasm/dis-buf.c xlat/disasm/ansidecl.h xlat/disasm/bfd.h \2.27 + xlat/disasm/dis-asm.h xlat/disasm/symcat.h \2.28 + xlat/disasm/sysdep.h cocoaui/paths_osx.m drivers/io_osx.m \2.29 + drivers/mac_keymap.h drivers/mac_keymap.txt paths_unix.c \2.30 + drivers/io_glib.c2.31 @BUILD_SH4X86_TRUE@am__objects_1 = liblxdream_core_a-sh4x86.$(OBJEXT) \2.32 @BUILD_SH4X86_TRUE@ liblxdream_core_a-xlatdasm.$(OBJEXT) \2.33 @BUILD_SH4X86_TRUE@ liblxdream_core_a-sh4trans.$(OBJEXT) \2.34 @@ -353,9 +354,10 @@2.35 test_testlxpaths_DEPENDENCIES =2.36 am__dirstamp = $(am__leading_dot)dirstamp2.37 am__test_testsh4x86_SOURCES_DIST = test/testsh4x86.c xlat/xlatdasm.c \2.38 - xlat/xlatdasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \2.39 - x86dasm/dis-buf.c sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c \2.40 - sh4/sh4dasm.c xlat/xltcache.h mem.c util.c cpu.c2.41 + xlat/xlatdasm.h xlat/disasm/i386-dis.c xlat/disasm/dis-init.c \2.42 + xlat/disasm/dis-buf.c sh4/sh4trans.c sh4/sh4x86.c \2.43 + xlat/xltcache.c sh4/sh4dasm.c xlat/xltcache.h mem.c util.c \2.44 + cpu.c2.45 @BUILD_SH4X86_TRUE@am_test_testsh4x86_OBJECTS = \2.46 @BUILD_SH4X86_TRUE@ test_testsh4x86-testsh4x86.$(OBJEXT) \2.47 @BUILD_SH4X86_TRUE@ test_testsh4x86-xlatdasm.$(OBJEXT) \2.48 @@ -695,8 +697,8 @@2.49 @BUILD_SH4X86_TRUE@test_testsh4x86_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@2.50 @BUILD_SH4X86_TRUE@test_testsh4x86_CPPFLAGS = @LXDREAMCPPFLAGS@2.51 @BUILD_SH4X86_TRUE@test_testsh4x86_SOURCES = test/testsh4x86.c xlat/xlatdasm.c \2.52 -@BUILD_SH4X86_TRUE@ xlat/xlatdasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \2.53 -@BUILD_SH4X86_TRUE@ x86dasm/dis-buf.c \2.54 +@BUILD_SH4X86_TRUE@ xlat/xlatdasm.h xlat/disasm/i386-dis.c xlat/disasm/dis-init.c \2.55 +@BUILD_SH4X86_TRUE@ xlat/disasm/dis-buf.c \2.56 @BUILD_SH4X86_TRUE@ sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c sh4/sh4dasm.c \2.57 @BUILD_SH4X86_TRUE@ xlat/xltcache.h mem.c util.c cpu.c2.59 @@ -2171,47 +2173,47 @@2.60 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.61 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-shadow.obj `if test -f 'sh4/shadow.c'; then $(CYGPATH_W) 'sh4/shadow.c'; else $(CYGPATH_W) '$(srcdir)/sh4/shadow.c'; fi`2.63 -liblxdream_core_a-i386-dis.o: x86dasm/i386-dis.c2.64 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-i386-dis.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" -c -o liblxdream_core_a-i386-dis.o `test -f 'x86dasm/i386-dis.c' || echo '$(srcdir)/'`x86dasm/i386-dis.c; \2.65 +liblxdream_core_a-i386-dis.o: xlat/disasm/i386-dis.c2.66 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-i386-dis.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" -c -o liblxdream_core_a-i386-dis.o `test -f 'xlat/disasm/i386-dis.c' || echo '$(srcdir)/'`xlat/disasm/i386-dis.c; \2.67 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" "$(DEPDIR)/liblxdream_core_a-i386-dis.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo"; exit 1; fi2.68 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/i386-dis.c' object='liblxdream_core_a-i386-dis.o' libtool=no @AMDEPBACKSLASH@2.69 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/i386-dis.c' object='liblxdream_core_a-i386-dis.o' libtool=no @AMDEPBACKSLASH@2.70 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.71 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-i386-dis.o `test -f 'x86dasm/i386-dis.c' || echo '$(srcdir)/'`x86dasm/i386-dis.c2.72 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-i386-dis.o `test -f 'xlat/disasm/i386-dis.c' || echo '$(srcdir)/'`xlat/disasm/i386-dis.c2.74 -liblxdream_core_a-i386-dis.obj: x86dasm/i386-dis.c2.75 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-i386-dis.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" -c -o liblxdream_core_a-i386-dis.obj `if test -f 'x86dasm/i386-dis.c'; then $(CYGPATH_W) 'x86dasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/i386-dis.c'; fi`; \2.76 +liblxdream_core_a-i386-dis.obj: xlat/disasm/i386-dis.c2.77 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-i386-dis.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" -c -o liblxdream_core_a-i386-dis.obj `if test -f 'xlat/disasm/i386-dis.c'; then $(CYGPATH_W) 'xlat/disasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/i386-dis.c'; fi`; \2.78 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo" "$(DEPDIR)/liblxdream_core_a-i386-dis.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-i386-dis.Tpo"; exit 1; fi2.79 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/i386-dis.c' object='liblxdream_core_a-i386-dis.obj' libtool=no @AMDEPBACKSLASH@2.80 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/i386-dis.c' object='liblxdream_core_a-i386-dis.obj' libtool=no @AMDEPBACKSLASH@2.81 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.82 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-i386-dis.obj `if test -f 'x86dasm/i386-dis.c'; then $(CYGPATH_W) 'x86dasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/i386-dis.c'; fi`2.83 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-i386-dis.obj `if test -f 'xlat/disasm/i386-dis.c'; then $(CYGPATH_W) 'xlat/disasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/i386-dis.c'; fi`2.85 -liblxdream_core_a-dis-init.o: x86dasm/dis-init.c2.86 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-init.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" -c -o liblxdream_core_a-dis-init.o `test -f 'x86dasm/dis-init.c' || echo '$(srcdir)/'`x86dasm/dis-init.c; \2.87 +liblxdream_core_a-dis-init.o: xlat/disasm/dis-init.c2.88 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-init.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" -c -o liblxdream_core_a-dis-init.o `test -f 'xlat/disasm/dis-init.c' || echo '$(srcdir)/'`xlat/disasm/dis-init.c; \2.89 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" "$(DEPDIR)/liblxdream_core_a-dis-init.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo"; exit 1; fi2.90 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-init.c' object='liblxdream_core_a-dis-init.o' libtool=no @AMDEPBACKSLASH@2.91 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-init.c' object='liblxdream_core_a-dis-init.o' libtool=no @AMDEPBACKSLASH@2.92 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.93 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-init.o `test -f 'x86dasm/dis-init.c' || echo '$(srcdir)/'`x86dasm/dis-init.c2.94 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-init.o `test -f 'xlat/disasm/dis-init.c' || echo '$(srcdir)/'`xlat/disasm/dis-init.c2.96 -liblxdream_core_a-dis-init.obj: x86dasm/dis-init.c2.97 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-init.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" -c -o liblxdream_core_a-dis-init.obj `if test -f 'x86dasm/dis-init.c'; then $(CYGPATH_W) 'x86dasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-init.c'; fi`; \2.98 +liblxdream_core_a-dis-init.obj: xlat/disasm/dis-init.c2.99 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-init.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" -c -o liblxdream_core_a-dis-init.obj `if test -f 'xlat/disasm/dis-init.c'; then $(CYGPATH_W) 'xlat/disasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-init.c'; fi`; \2.100 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo" "$(DEPDIR)/liblxdream_core_a-dis-init.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-dis-init.Tpo"; exit 1; fi2.101 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-init.c' object='liblxdream_core_a-dis-init.obj' libtool=no @AMDEPBACKSLASH@2.102 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-init.c' object='liblxdream_core_a-dis-init.obj' libtool=no @AMDEPBACKSLASH@2.103 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.104 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-init.obj `if test -f 'x86dasm/dis-init.c'; then $(CYGPATH_W) 'x86dasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-init.c'; fi`2.105 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-init.obj `if test -f 'xlat/disasm/dis-init.c'; then $(CYGPATH_W) 'xlat/disasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-init.c'; fi`2.107 -liblxdream_core_a-dis-buf.o: x86dasm/dis-buf.c2.108 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-buf.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" -c -o liblxdream_core_a-dis-buf.o `test -f 'x86dasm/dis-buf.c' || echo '$(srcdir)/'`x86dasm/dis-buf.c; \2.109 +liblxdream_core_a-dis-buf.o: xlat/disasm/dis-buf.c2.110 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-buf.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" -c -o liblxdream_core_a-dis-buf.o `test -f 'xlat/disasm/dis-buf.c' || echo '$(srcdir)/'`xlat/disasm/dis-buf.c; \2.111 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" "$(DEPDIR)/liblxdream_core_a-dis-buf.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo"; exit 1; fi2.112 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-buf.c' object='liblxdream_core_a-dis-buf.o' libtool=no @AMDEPBACKSLASH@2.113 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-buf.c' object='liblxdream_core_a-dis-buf.o' libtool=no @AMDEPBACKSLASH@2.114 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.115 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-buf.o `test -f 'x86dasm/dis-buf.c' || echo '$(srcdir)/'`x86dasm/dis-buf.c2.116 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-buf.o `test -f 'xlat/disasm/dis-buf.c' || echo '$(srcdir)/'`xlat/disasm/dis-buf.c2.118 -liblxdream_core_a-dis-buf.obj: x86dasm/dis-buf.c2.119 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-buf.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" -c -o liblxdream_core_a-dis-buf.obj `if test -f 'x86dasm/dis-buf.c'; then $(CYGPATH_W) 'x86dasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-buf.c'; fi`; \2.120 +liblxdream_core_a-dis-buf.obj: xlat/disasm/dis-buf.c2.121 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-dis-buf.obj -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" -c -o liblxdream_core_a-dis-buf.obj `if test -f 'xlat/disasm/dis-buf.c'; then $(CYGPATH_W) 'xlat/disasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-buf.c'; fi`; \2.122 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo" "$(DEPDIR)/liblxdream_core_a-dis-buf.Po"; else rm -f "$(DEPDIR)/liblxdream_core_a-dis-buf.Tpo"; exit 1; fi2.123 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-buf.c' object='liblxdream_core_a-dis-buf.obj' libtool=no @AMDEPBACKSLASH@2.124 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-buf.c' object='liblxdream_core_a-dis-buf.obj' libtool=no @AMDEPBACKSLASH@2.125 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.126 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-buf.obj `if test -f 'x86dasm/dis-buf.c'; then $(CYGPATH_W) 'x86dasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-buf.c'; fi`2.127 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o liblxdream_core_a-dis-buf.obj `if test -f 'xlat/disasm/dis-buf.c'; then $(CYGPATH_W) 'xlat/disasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-buf.c'; fi`2.129 liblxdream_core_a-paths_unix.o: paths_unix.c2.130 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(liblxdream_core_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT liblxdream_core_a-paths_unix.o -MD -MP -MF "$(DEPDIR)/liblxdream_core_a-paths_unix.Tpo" -c -o liblxdream_core_a-paths_unix.o `test -f 'paths_unix.c' || echo '$(srcdir)/'`paths_unix.c; \2.131 @@ -2661,47 +2663,47 @@2.132 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.133 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-xlatdasm.obj `if test -f 'xlat/xlatdasm.c'; then $(CYGPATH_W) 'xlat/xlatdasm.c'; else $(CYGPATH_W) '$(srcdir)/xlat/xlatdasm.c'; fi`2.135 -test_testsh4x86-i386-dis.o: x86dasm/i386-dis.c2.136 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-i386-dis.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" -c -o test_testsh4x86-i386-dis.o `test -f 'x86dasm/i386-dis.c' || echo '$(srcdir)/'`x86dasm/i386-dis.c; \2.137 +test_testsh4x86-i386-dis.o: xlat/disasm/i386-dis.c2.138 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-i386-dis.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" -c -o test_testsh4x86-i386-dis.o `test -f 'xlat/disasm/i386-dis.c' || echo '$(srcdir)/'`xlat/disasm/i386-dis.c; \2.139 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" "$(DEPDIR)/test_testsh4x86-i386-dis.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo"; exit 1; fi2.140 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/i386-dis.c' object='test_testsh4x86-i386-dis.o' libtool=no @AMDEPBACKSLASH@2.141 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/i386-dis.c' object='test_testsh4x86-i386-dis.o' libtool=no @AMDEPBACKSLASH@2.142 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.143 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-i386-dis.o `test -f 'x86dasm/i386-dis.c' || echo '$(srcdir)/'`x86dasm/i386-dis.c2.144 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-i386-dis.o `test -f 'xlat/disasm/i386-dis.c' || echo '$(srcdir)/'`xlat/disasm/i386-dis.c2.146 -test_testsh4x86-i386-dis.obj: x86dasm/i386-dis.c2.147 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-i386-dis.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" -c -o test_testsh4x86-i386-dis.obj `if test -f 'x86dasm/i386-dis.c'; then $(CYGPATH_W) 'x86dasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/i386-dis.c'; fi`; \2.148 +test_testsh4x86-i386-dis.obj: xlat/disasm/i386-dis.c2.149 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-i386-dis.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" -c -o test_testsh4x86-i386-dis.obj `if test -f 'xlat/disasm/i386-dis.c'; then $(CYGPATH_W) 'xlat/disasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/i386-dis.c'; fi`; \2.150 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo" "$(DEPDIR)/test_testsh4x86-i386-dis.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-i386-dis.Tpo"; exit 1; fi2.151 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/i386-dis.c' object='test_testsh4x86-i386-dis.obj' libtool=no @AMDEPBACKSLASH@2.152 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/i386-dis.c' object='test_testsh4x86-i386-dis.obj' libtool=no @AMDEPBACKSLASH@2.153 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.154 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-i386-dis.obj `if test -f 'x86dasm/i386-dis.c'; then $(CYGPATH_W) 'x86dasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/i386-dis.c'; fi`2.155 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-i386-dis.obj `if test -f 'xlat/disasm/i386-dis.c'; then $(CYGPATH_W) 'xlat/disasm/i386-dis.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/i386-dis.c'; fi`2.157 -test_testsh4x86-dis-init.o: x86dasm/dis-init.c2.158 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-init.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" -c -o test_testsh4x86-dis-init.o `test -f 'x86dasm/dis-init.c' || echo '$(srcdir)/'`x86dasm/dis-init.c; \2.159 +test_testsh4x86-dis-init.o: xlat/disasm/dis-init.c2.160 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-init.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" -c -o test_testsh4x86-dis-init.o `test -f 'xlat/disasm/dis-init.c' || echo '$(srcdir)/'`xlat/disasm/dis-init.c; \2.161 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" "$(DEPDIR)/test_testsh4x86-dis-init.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-dis-init.Tpo"; exit 1; fi2.162 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-init.c' object='test_testsh4x86-dis-init.o' libtool=no @AMDEPBACKSLASH@2.163 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-init.c' object='test_testsh4x86-dis-init.o' libtool=no @AMDEPBACKSLASH@2.164 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.165 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-init.o `test -f 'x86dasm/dis-init.c' || echo '$(srcdir)/'`x86dasm/dis-init.c2.166 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-init.o `test -f 'xlat/disasm/dis-init.c' || echo '$(srcdir)/'`xlat/disasm/dis-init.c2.168 -test_testsh4x86-dis-init.obj: x86dasm/dis-init.c2.169 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-init.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" -c -o test_testsh4x86-dis-init.obj `if test -f 'x86dasm/dis-init.c'; then $(CYGPATH_W) 'x86dasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-init.c'; fi`; \2.170 +test_testsh4x86-dis-init.obj: xlat/disasm/dis-init.c2.171 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-init.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" -c -o test_testsh4x86-dis-init.obj `if test -f 'xlat/disasm/dis-init.c'; then $(CYGPATH_W) 'xlat/disasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-init.c'; fi`; \2.172 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-dis-init.Tpo" "$(DEPDIR)/test_testsh4x86-dis-init.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-dis-init.Tpo"; exit 1; fi2.173 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-init.c' object='test_testsh4x86-dis-init.obj' libtool=no @AMDEPBACKSLASH@2.174 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-init.c' object='test_testsh4x86-dis-init.obj' libtool=no @AMDEPBACKSLASH@2.175 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.176 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-init.obj `if test -f 'x86dasm/dis-init.c'; then $(CYGPATH_W) 'x86dasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-init.c'; fi`2.177 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-init.obj `if test -f 'xlat/disasm/dis-init.c'; then $(CYGPATH_W) 'xlat/disasm/dis-init.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-init.c'; fi`2.179 -test_testsh4x86-dis-buf.o: x86dasm/dis-buf.c2.180 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-buf.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" -c -o test_testsh4x86-dis-buf.o `test -f 'x86dasm/dis-buf.c' || echo '$(srcdir)/'`x86dasm/dis-buf.c; \2.181 +test_testsh4x86-dis-buf.o: xlat/disasm/dis-buf.c2.182 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-buf.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" -c -o test_testsh4x86-dis-buf.o `test -f 'xlat/disasm/dis-buf.c' || echo '$(srcdir)/'`xlat/disasm/dis-buf.c; \2.183 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" "$(DEPDIR)/test_testsh4x86-dis-buf.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo"; exit 1; fi2.184 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-buf.c' object='test_testsh4x86-dis-buf.o' libtool=no @AMDEPBACKSLASH@2.185 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-buf.c' object='test_testsh4x86-dis-buf.o' libtool=no @AMDEPBACKSLASH@2.186 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.187 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-buf.o `test -f 'x86dasm/dis-buf.c' || echo '$(srcdir)/'`x86dasm/dis-buf.c2.188 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-buf.o `test -f 'xlat/disasm/dis-buf.c' || echo '$(srcdir)/'`xlat/disasm/dis-buf.c2.190 -test_testsh4x86-dis-buf.obj: x86dasm/dis-buf.c2.191 -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-buf.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" -c -o test_testsh4x86-dis-buf.obj `if test -f 'x86dasm/dis-buf.c'; then $(CYGPATH_W) 'x86dasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-buf.c'; fi`; \2.192 +test_testsh4x86-dis-buf.obj: xlat/disasm/dis-buf.c2.193 +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-dis-buf.obj -MD -MP -MF "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" -c -o test_testsh4x86-dis-buf.obj `if test -f 'xlat/disasm/dis-buf.c'; then $(CYGPATH_W) 'xlat/disasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-buf.c'; fi`; \2.194 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo" "$(DEPDIR)/test_testsh4x86-dis-buf.Po"; else rm -f "$(DEPDIR)/test_testsh4x86-dis-buf.Tpo"; exit 1; fi2.195 -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x86dasm/dis-buf.c' object='test_testsh4x86-dis-buf.obj' libtool=no @AMDEPBACKSLASH@2.196 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xlat/disasm/dis-buf.c' object='test_testsh4x86-dis-buf.obj' libtool=no @AMDEPBACKSLASH@2.197 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@2.198 -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-buf.obj `if test -f 'x86dasm/dis-buf.c'; then $(CYGPATH_W) 'x86dasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/x86dasm/dis-buf.c'; fi`2.199 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_testsh4x86-dis-buf.obj `if test -f 'xlat/disasm/dis-buf.c'; then $(CYGPATH_W) 'xlat/disasm/dis-buf.c'; else $(CYGPATH_W) '$(srcdir)/xlat/disasm/dis-buf.c'; fi`2.201 test_testsh4x86-sh4trans.o: sh4/sh4trans.c2.202 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_testsh4x86_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_testsh4x86-sh4trans.o -MD -MP -MF "$(DEPDIR)/test_testsh4x86-sh4trans.Tpo" -c -o test_testsh4x86-sh4trans.o `test -f 'sh4/sh4trans.c' || echo '$(srcdir)/'`sh4/sh4trans.c; \
3.1 --- a/src/x86dasm/README Tue Mar 06 09:04:34 2012 +10003.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00003.3 @@ -1,1 +0,0 @@3.4 -i386-dis extracted from binutils 2.16.1 and modified to play with lxdream.
4.1 --- a/src/x86dasm/ansidecl.h Tue Mar 06 09:04:34 2012 +10004.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00004.3 @@ -1,346 +0,0 @@4.4 -/* ANSI and traditional C compatability macros4.5 - Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 20014.6 - Free Software Foundation, Inc.4.7 - This file is part of the GNU C Library.4.8 -4.9 -This program is free software; you can redistribute it and/or modify4.10 -it under the terms of the GNU General Public License as published by4.11 -the Free Software Foundation; either version 2 of the License, or4.12 -(at your option) any later version.4.13 -4.14 -This program is distributed in the hope that it will be useful,4.15 -but WITHOUT ANY WARRANTY; without even the implied warranty of4.16 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the4.17 -GNU General Public License for more details.4.18 -4.19 -You should have received a copy of the GNU General Public License4.20 -along with this program; if not, write to the Free Software4.21 -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */4.22 -4.23 -/* ANSI and traditional C compatibility macros4.24 -4.25 - ANSI C is assumed if __STDC__ is #defined.4.26 -4.27 - Macro ANSI C definition Traditional C definition4.28 - ----- ---- - ---------- ----------- - ----------4.29 - ANSI_PROTOTYPES 1 not defined4.30 - PTR `void *' `char *'4.31 - PTRCONST `void *const' `char *'4.32 - LONG_DOUBLE `long double' `double'4.33 - const not defined `'4.34 - volatile not defined `'4.35 - signed not defined `'4.36 - VA_START(ap, var) va_start(ap, var) va_start(ap)4.37 -4.38 - Note that it is safe to write "void foo();" indicating a function4.39 - with no return value, in all K+R compilers we have been able to test.4.40 -4.41 - For declaring functions with prototypes, we also provide these:4.42 -4.43 - PARAMS ((prototype))4.44 - -- for functions which take a fixed number of arguments. Use this4.45 - when declaring the function. When defining the function, write a4.46 - K+R style argument list. For example:4.47 -4.48 - char *strcpy PARAMS ((char *dest, char *source));4.49 - ...4.50 - char *4.51 - strcpy (dest, source)4.52 - char *dest;4.53 - char *source;4.54 - { ... }4.55 -4.56 -4.57 - VPARAMS ((prototype, ...))4.58 - -- for functions which take a variable number of arguments. Use4.59 - PARAMS to declare the function, VPARAMS to define it. For example:4.60 -4.61 - int printf PARAMS ((const char *format, ...));4.62 - ...4.63 - int4.64 - printf VPARAMS ((const char *format, ...))4.65 - {4.66 - ...4.67 - }4.68 -4.69 - For writing functions which take variable numbers of arguments, we4.70 - also provide the VA_OPEN, VA_CLOSE, and VA_FIXEDARG macros. These4.71 - hide the differences between K+R <varargs.h> and C89 <stdarg.h> more4.72 - thoroughly than the simple VA_START() macro mentioned above.4.73 -4.74 - VA_OPEN and VA_CLOSE are used *instead of* va_start and va_end.4.75 - Immediately after VA_OPEN, put a sequence of VA_FIXEDARG calls4.76 - corresponding to the list of fixed arguments. Then use va_arg4.77 - normally to get the variable arguments, or pass your va_list object4.78 - around. You do not declare the va_list yourself; VA_OPEN does it4.79 - for you.4.80 -4.81 - Here is a complete example:4.82 -4.83 - int4.84 - printf VPARAMS ((const char *format, ...))4.85 - {4.86 - int result;4.87 -4.88 - VA_OPEN (ap, format);4.89 - VA_FIXEDARG (ap, const char *, format);4.90 -4.91 - result = vfprintf (stdout, format, ap);4.92 - VA_CLOSE (ap);4.93 -4.94 - return result;4.95 - }4.96 -4.97 -4.98 - You can declare variables either before or after the VA_OPEN,4.99 - VA_FIXEDARG sequence. Also, VA_OPEN and VA_CLOSE are the beginning4.100 - and end of a block. They must appear at the same nesting level,4.101 - and any variables declared after VA_OPEN go out of scope at4.102 - VA_CLOSE. Unfortunately, with a K+R compiler, that includes the4.103 - argument list. You can have multiple instances of VA_OPEN/VA_CLOSE4.104 - pairs in a single function in case you need to traverse the4.105 - argument list more than once.4.106 -4.107 - For ease of writing code which uses GCC extensions but needs to be4.108 - portable to other compilers, we provide the GCC_VERSION macro that4.109 - simplifies testing __GNUC__ and __GNUC_MINOR__ together, and various4.110 - wrappers around __attribute__. Also, __extension__ will be #defined4.111 - to nothing if it doesn't work. See below.4.112 -4.113 - This header also defines a lot of obsolete macros:4.114 - CONST, VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID,4.115 - AND, DOTS, NOARGS. Don't use them. */4.116 -4.117 -#ifndef _ANSIDECL_H4.118 -#define _ANSIDECL_H 14.119 -4.120 -/* Every source file includes this file,4.121 - so they will all get the switch for lint. */4.122 -/* LINTLIBRARY */4.123 -4.124 -/* Using MACRO(x,y) in cpp #if conditionals does not work with some4.125 - older preprocessors. Thus we can't define something like this:4.126 -4.127 -#define HAVE_GCC_VERSION(MAJOR, MINOR) \4.128 - (__GNUC__ > (MAJOR) || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ >= (MINOR)))4.129 -4.130 -and then test "#if HAVE_GCC_VERSION(2,7)".4.131 -4.132 -So instead we use the macro below and test it against specific values. */4.133 -4.134 -/* This macro simplifies testing whether we are using gcc, and if it4.135 - is of a particular minimum version. (Both major & minor numbers are4.136 - significant.) This macro will evaluate to 0 if we are not using4.137 - gcc at all. */4.138 -#ifndef GCC_VERSION4.139 -#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)4.140 -#endif /* GCC_VERSION */4.141 -4.142 -#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus))4.143 -/* All known AIX compilers implement these things (but don't always4.144 - define __STDC__). The RISC/OS MIPS compiler defines these things4.145 - in SVR4 mode, but does not define __STDC__. */4.146 -/* eraxxon@alumni.rice.edu: The Compaq C++ compiler, unlike many other4.147 - C++ compilers, does not define __STDC__, though it acts as if this4.148 - was so. (Verified versions: 5.7, 6.2, 6.3, 6.5) */4.149 -4.150 -#define ANSI_PROTOTYPES 14.151 -#define PTR void *4.152 -#define PTRCONST void *const4.153 -#define LONG_DOUBLE long double4.154 -4.155 -/* PARAMS is often defined elsewhere (e.g. by libintl.h), so wrap it in4.156 - a #ifndef. */4.157 -#ifndef PARAMS4.158 -#define PARAMS(ARGS) ARGS4.159 -#endif4.160 -4.161 -#define VPARAMS(ARGS) ARGS4.162 -#define VA_START(VA_LIST, VAR) va_start(VA_LIST, VAR)4.163 -4.164 -/* variadic function helper macros */4.165 -/* "struct Qdmy" swallows the semicolon after VA_OPEN/VA_FIXEDARG's4.166 - use without inhibiting further decls and without declaring an4.167 - actual variable. */4.168 -#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP, VAR); { struct Qdmy4.169 -#define VA_CLOSE(AP) } va_end(AP); }4.170 -#define VA_FIXEDARG(AP, T, N) struct Qdmy4.171 -4.172 -#undef const4.173 -#undef volatile4.174 -#undef signed4.175 -4.176 -/* inline requires special treatment; it's in C99, and GCC >=2.7 supports4.177 - it too, but it's not in C89. */4.178 -#undef inline4.179 -#if __STDC_VERSION__ > 199901L4.180 -/* it's a keyword */4.181 -#else4.182 -# if GCC_VERSION >= 20074.183 -# define inline __inline__ /* __inline__ prevents -pedantic warnings */4.184 -# else4.185 -# define inline /* nothing */4.186 -# endif4.187 -#endif4.188 -4.189 -/* These are obsolete. Do not use. */4.190 -#ifndef IN_GCC4.191 -#define CONST const4.192 -#define VOLATILE volatile4.193 -#define SIGNED signed4.194 -4.195 -#define PROTO(type, name, arglist) type name arglist4.196 -#define EXFUN(name, proto) name proto4.197 -#define DEFUN(name, arglist, args) name(args)4.198 -#define DEFUN_VOID(name) name(void)4.199 -#define AND ,4.200 -#define DOTS , ...4.201 -#define NOARGS void4.202 -#endif /* ! IN_GCC */4.203 -4.204 -#else /* Not ANSI C. */4.205 -4.206 -#undef ANSI_PROTOTYPES4.207 -#define PTR char *4.208 -#define PTRCONST PTR4.209 -#define LONG_DOUBLE double4.210 -4.211 -#define PARAMS(args) ()4.212 -#define VPARAMS(args) (va_alist) va_dcl4.213 -#define VA_START(va_list, var) va_start(va_list)4.214 -4.215 -#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP); { struct Qdmy4.216 -#define VA_CLOSE(AP) } va_end(AP); }4.217 -#define VA_FIXEDARG(AP, TYPE, NAME) TYPE NAME = va_arg(AP, TYPE)4.218 -4.219 -/* some systems define these in header files for non-ansi mode */4.220 -#undef const4.221 -#undef volatile4.222 -#undef signed4.223 -#undef inline4.224 -#define const4.225 -#define volatile4.226 -#define signed4.227 -#define inline4.228 -4.229 -#ifndef IN_GCC4.230 -#define CONST4.231 -#define VOLATILE4.232 -#define SIGNED4.233 -4.234 -#define PROTO(type, name, arglist) type name ()4.235 -#define EXFUN(name, proto) name()4.236 -#define DEFUN(name, arglist, args) name arglist args;4.237 -#define DEFUN_VOID(name) name()4.238 -#define AND ;4.239 -#define DOTS4.240 -#define NOARGS4.241 -#endif /* ! IN_GCC */4.242 -4.243 -#endif /* ANSI C. */4.244 -4.245 -/* Define macros for some gcc attributes. This permits us to use the4.246 - macros freely, and know that they will come into play for the4.247 - version of gcc in which they are supported. */4.248 -4.249 -#if (GCC_VERSION < 2007)4.250 -# define __attribute__(x)4.251 -#endif4.252 -4.253 -/* Attribute __malloc__ on functions was valid as of gcc 2.96. */4.254 -#ifndef ATTRIBUTE_MALLOC4.255 -# if (GCC_VERSION >= 2096)4.256 -# define ATTRIBUTE_MALLOC __attribute__ ((__malloc__))4.257 -# else4.258 -# define ATTRIBUTE_MALLOC4.259 -# endif /* GNUC >= 2.96 */4.260 -#endif /* ATTRIBUTE_MALLOC */4.261 -4.262 -/* Attributes on labels were valid as of gcc 2.93. */4.263 -#ifndef ATTRIBUTE_UNUSED_LABEL4.264 -# if (GCC_VERSION >= 2093)4.265 -# define ATTRIBUTE_UNUSED_LABEL ATTRIBUTE_UNUSED4.266 -# else4.267 -# define ATTRIBUTE_UNUSED_LABEL4.268 -# endif /* GNUC >= 2.93 */4.269 -#endif /* ATTRIBUTE_UNUSED_LABEL */4.270 -4.271 -#ifndef ATTRIBUTE_UNUSED4.272 -#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))4.273 -#endif /* ATTRIBUTE_UNUSED */4.274 -4.275 -/* Before GCC 3.4, the C++ frontend couldn't parse attributes placed after the4.276 - identifier name. */4.277 -#if ! defined(__cplusplus) || (GCC_VERSION >= 3004)4.278 -# define ARG_UNUSED(NAME) NAME ATTRIBUTE_UNUSED4.279 -#else /* !__cplusplus || GNUC >= 3.4 */4.280 -# define ARG_UNUSED(NAME) NAME4.281 -#endif /* !__cplusplus || GNUC >= 3.4 */4.282 -4.283 -#ifndef ATTRIBUTE_NORETURN4.284 -#define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))4.285 -#endif /* ATTRIBUTE_NORETURN */4.286 -4.287 -/* Attribute `nonnull' was valid as of gcc 3.3. */4.288 -#ifndef ATTRIBUTE_NONNULL4.289 -# if (GCC_VERSION >= 3003)4.290 -# define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))4.291 -# else4.292 -# define ATTRIBUTE_NONNULL(m)4.293 -# endif /* GNUC >= 3.3 */4.294 -#endif /* ATTRIBUTE_NONNULL */4.295 -4.296 -/* Attribute `pure' was valid as of gcc 3.0. */4.297 -#ifndef ATTRIBUTE_PURE4.298 -# if (GCC_VERSION >= 3000)4.299 -# define ATTRIBUTE_PURE __attribute__ ((__pure__))4.300 -# else4.301 -# define ATTRIBUTE_PURE4.302 -# endif /* GNUC >= 3.0 */4.303 -#endif /* ATTRIBUTE_PURE */4.304 -4.305 -/* Use ATTRIBUTE_PRINTF when the format specifier must not be NULL.4.306 - This was the case for the `printf' format attribute by itself4.307 - before GCC 3.3, but as of 3.3 we need to add the `nonnull'4.308 - attribute to retain this behavior. */4.309 -#ifndef ATTRIBUTE_PRINTF4.310 -#define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m)4.311 -#define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)4.312 -#define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)4.313 -#define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)4.314 -#define ATTRIBUTE_PRINTF_4 ATTRIBUTE_PRINTF(4, 5)4.315 -#define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)4.316 -#endif /* ATTRIBUTE_PRINTF */4.317 -4.318 -/* Use ATTRIBUTE_NULL_PRINTF when the format specifier may be NULL. A4.319 - NULL format specifier was allowed as of gcc 3.3. */4.320 -#ifndef ATTRIBUTE_NULL_PRINTF4.321 -# if (GCC_VERSION >= 3003)4.322 -# define ATTRIBUTE_NULL_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n)))4.323 -# else4.324 -# define ATTRIBUTE_NULL_PRINTF(m, n)4.325 -# endif /* GNUC >= 3.3 */4.326 -# define ATTRIBUTE_NULL_PRINTF_1 ATTRIBUTE_NULL_PRINTF(1, 2)4.327 -# define ATTRIBUTE_NULL_PRINTF_2 ATTRIBUTE_NULL_PRINTF(2, 3)4.328 -# define ATTRIBUTE_NULL_PRINTF_3 ATTRIBUTE_NULL_PRINTF(3, 4)4.329 -# define ATTRIBUTE_NULL_PRINTF_4 ATTRIBUTE_NULL_PRINTF(4, 5)4.330 -# define ATTRIBUTE_NULL_PRINTF_5 ATTRIBUTE_NULL_PRINTF(5, 6)4.331 -#endif /* ATTRIBUTE_NULL_PRINTF */4.332 -4.333 -/* Attribute `sentinel' was valid as of gcc 3.5. */4.334 -#ifndef ATTRIBUTE_SENTINEL4.335 -# if (GCC_VERSION >= 3005)4.336 -# define ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))4.337 -# else4.338 -# define ATTRIBUTE_SENTINEL4.339 -# endif /* GNUC >= 3.5 */4.340 -#endif /* ATTRIBUTE_SENTINEL */4.341 -4.342 -/* We use __extension__ in some places to suppress -pedantic warnings4.343 - about GCC extensions. This feature didn't work properly before4.344 - gcc 2.8. */4.345 -#if GCC_VERSION < 20084.346 -#define __extension__4.347 -#endif4.348 -4.349 -#endif /* ansidecl.h */
5.1 --- a/src/x86dasm/bfd.h Tue Mar 06 09:04:34 2012 +10005.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00005.3 @@ -1,4714 +0,0 @@5.4 -/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically5.5 - generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",5.6 - "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c",5.7 - "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",5.8 - "linker.c" and "simple.c".5.9 - Run "make headers" in your build bfd/ to regenerate. */5.10 -5.11 -/* Main header file for the bfd library -- portable access to object files.5.12 -5.13 - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,5.14 - 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.5.15 -5.16 - Contributed by Cygnus Support.5.17 -5.18 - This file is part of BFD, the Binary File Descriptor library.5.19 -5.20 - This program is free software; you can redistribute it and/or modify5.21 - it under the terms of the GNU General Public License as published by5.22 - the Free Software Foundation; either version 2 of the License, or5.23 - (at your option) any later version.5.24 -5.25 - This program is distributed in the hope that it will be useful,5.26 - but WITHOUT ANY WARRANTY; without even the implied warranty of5.27 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5.28 - GNU General Public License for more details.5.29 -5.30 - You should have received a copy of the GNU General Public License5.31 - along with this program; if not, write to the Free Software5.32 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */5.33 -5.34 -#ifndef __BFD_H_SEEN__5.35 -#define __BFD_H_SEEN__5.36 -5.37 -#ifdef __cplusplus5.38 -extern "C" {5.39 -#endif5.40 -5.41 -#include "x86dasm/ansidecl.h"5.42 -#include "x86dasm/symcat.h"5.43 -#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)5.44 -#ifndef SABER5.45 -/* This hack is to avoid a problem with some strict ANSI C preprocessors.5.46 - The problem is, "32_" is not a valid preprocessing token, and we don't5.47 - want extra underscores (e.g., "nlm_32_"). The XCONCAT2 macro will5.48 - cause the inner CONCAT2 macros to be evaluated first, producing5.49 - still-valid pp-tokens. Then the final concatenation can be done. */5.50 -#undef CONCAT45.51 -#define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))5.52 -#endif5.53 -#endif5.54 -5.55 -/* The word size used by BFD on the host. This may be 64 with a 325.56 - bit target if the host is 64 bit, or if other 64 bit targets have5.57 - been selected with --enable-targets, or if --enable-64-bit-bfd. */5.58 -#define BFD_ARCH_SIZE 645.59 -5.60 -/* The word size of the default bfd target. */5.61 -#define BFD_DEFAULT_TARGET_SIZE 325.62 -5.63 -#define BFD_HOST_64BIT_LONG 05.64 -#define BFD_HOST_LONG_LONG 15.65 -#if 15.66 -#define BFD_HOST_64_BIT long long5.67 -#define BFD_HOST_U_64_BIT unsigned long long5.68 -typedef BFD_HOST_64_BIT bfd_int64_t;5.69 -typedef BFD_HOST_U_64_BIT bfd_uint64_t;5.70 -#endif5.71 -5.72 -#if BFD_ARCH_SIZE >= 645.73 -#define BFD645.74 -#endif5.75 -5.76 -#ifndef INLINE5.77 -#if __GNUC__ >= 25.78 -#define INLINE __inline__5.79 -#else5.80 -#define INLINE5.81 -#endif5.82 -#endif5.83 -5.84 -/* Forward declaration. */5.85 -typedef struct bfd bfd;5.86 -5.87 -/* Boolean type used in bfd. Too many systems define their own5.88 - versions of "boolean" for us to safely typedef a "boolean" of5.89 - our own. Using an enum for "bfd_boolean" has its own set of5.90 - problems, with strange looking casts required to avoid warnings5.91 - on some older compilers. Thus we just use an int.5.92 -5.93 - General rule: Functions which are bfd_boolean return TRUE on5.94 - success and FALSE on failure (unless they're a predicate). */5.95 -5.96 -typedef int bfd_boolean;5.97 -#undef FALSE5.98 -#undef TRUE5.99 -#define FALSE 05.100 -#define TRUE 15.101 -5.102 -#ifdef BFD645.103 -5.104 -#ifndef BFD_HOST_64_BIT5.105 - #error No 64 bit integer type available5.106 -#endif /* ! defined (BFD_HOST_64_BIT) */5.107 -5.108 -typedef BFD_HOST_U_64_BIT bfd_vma;5.109 -typedef BFD_HOST_64_BIT bfd_signed_vma;5.110 -typedef BFD_HOST_U_64_BIT bfd_size_type;5.111 -typedef BFD_HOST_U_64_BIT symvalue;5.112 -5.113 -#ifndef fprintf_vma5.114 -#if BFD_HOST_64BIT_LONG5.115 -#define sprintf_vma(s,x) sprintf (s, "%016lx", x)5.116 -#define fprintf_vma(f,x) fprintf (f, "%016lx", x)5.117 -#else5.118 -#define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))5.119 -#define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))5.120 -#define fprintf_vma(s,x) \5.121 - fprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))5.122 -#define sprintf_vma(s,x) \5.123 - sprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))5.124 -#endif5.125 -#endif5.126 -5.127 -#else /* not BFD64 */5.128 -5.129 -/* Represent a target address. Also used as a generic unsigned type5.130 - which is guaranteed to be big enough to hold any arithmetic types5.131 - we need to deal with. */5.132 -typedef unsigned long bfd_vma;5.133 -5.134 -/* A generic signed type which is guaranteed to be big enough to hold any5.135 - arithmetic types we need to deal with. Can be assumed to be compatible5.136 - with bfd_vma in the same way that signed and unsigned ints are compatible5.137 - (as parameters, in assignment, etc). */5.138 -typedef long bfd_signed_vma;5.139 -5.140 -typedef unsigned long symvalue;5.141 -typedef unsigned long bfd_size_type;5.142 -5.143 -/* Print a bfd_vma x on stream s. */5.144 -#define fprintf_vma(s,x) fprintf (s, "%08lx", x)5.145 -#define sprintf_vma(s,x) sprintf (s, "%08lx", x)5.146 -5.147 -#endif /* not BFD64 */5.148 -5.149 -#ifndef BFD_HOST_64_BIT5.150 -/* Fall back on a 32 bit type. The idea is to make these types always5.151 - available for function return types, but in the case that5.152 - BFD_HOST_64_BIT is undefined such a function should abort or5.153 - otherwise signal an error. */5.154 -typedef bfd_signed_vma bfd_int64_t;5.155 -typedef bfd_vma bfd_uint64_t;5.156 -#endif5.157 -5.158 -/* An offset into a file. BFD always uses the largest possible offset5.159 - based on the build time availability of fseek, fseeko, or fseeko64. */5.160 -typedef BFD_HOST_64_BIT file_ptr;5.161 -typedef unsigned BFD_HOST_64_BIT ufile_ptr;5.162 -5.163 -extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);5.164 -extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);5.165 -5.166 -#define printf_vma(x) fprintf_vma(stdout,x)5.167 -#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)5.168 -5.169 -typedef unsigned int flagword; /* 32 bits of flags */5.170 -typedef unsigned char bfd_byte;5.171 -5.172 -/* File formats. */5.173 -5.174 -typedef enum bfd_format5.175 -{5.176 - bfd_unknown = 0, /* File format is unknown. */5.177 - bfd_object, /* Linker/assembler/compiler output. */5.178 - bfd_archive, /* Object archive file. */5.179 - bfd_core, /* Core dump. */5.180 - bfd_type_end /* Marks the end; don't use it! */5.181 -}5.182 -bfd_format;5.183 -5.184 -/* Values that may appear in the flags field of a BFD. These also5.185 - appear in the object_flags field of the bfd_target structure, where5.186 - they indicate the set of flags used by that backend (not all flags5.187 - are meaningful for all object file formats) (FIXME: at the moment,5.188 - the object_flags values have mostly just been copied from backend5.189 - to another, and are not necessarily correct). */5.190 -5.191 -/* No flags. */5.192 -#define BFD_NO_FLAGS 0x005.193 -5.194 -/* BFD contains relocation entries. */5.195 -#define HAS_RELOC 0x015.196 -5.197 -/* BFD is directly executable. */5.198 -#define EXEC_P 0x025.199 -5.200 -/* BFD has line number information (basically used for F_LNNO in a5.201 - COFF header). */5.202 -#define HAS_LINENO 0x045.203 -5.204 -/* BFD has debugging information. */5.205 -#define HAS_DEBUG 0x085.206 -5.207 -/* BFD has symbols. */5.208 -#define HAS_SYMS 0x105.209 -5.210 -/* BFD has local symbols (basically used for F_LSYMS in a COFF5.211 - header). */5.212 -#define HAS_LOCALS 0x205.213 -5.214 -/* BFD is a dynamic object. */5.215 -#define DYNAMIC 0x405.216 -5.217 -/* Text section is write protected (if D_PAGED is not set, this is5.218 - like an a.out NMAGIC file) (the linker sets this by default, but5.219 - clears it for -r or -N). */5.220 -#define WP_TEXT 0x805.221 -5.222 -/* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the5.223 - linker sets this by default, but clears it for -r or -n or -N). */5.224 -#define D_PAGED 0x1005.225 -5.226 -/* BFD is relaxable (this means that bfd_relax_section may be able to5.227 - do something) (sometimes bfd_relax_section can do something even if5.228 - this is not set). */5.229 -#define BFD_IS_RELAXABLE 0x2005.230 -5.231 -/* This may be set before writing out a BFD to request using a5.232 - traditional format. For example, this is used to request that when5.233 - writing out an a.out object the symbols not be hashed to eliminate5.234 - duplicates. */5.235 -#define BFD_TRADITIONAL_FORMAT 0x4005.236 -5.237 -/* This flag indicates that the BFD contents are actually cached in5.238 - memory. If this is set, iostream points to a bfd_in_memory struct. */5.239 -#define BFD_IN_MEMORY 0x8005.240 -5.241 -/* The sections in this BFD specify a memory page. */5.242 -#define HAS_LOAD_PAGE 0x10005.243 -5.244 -/* This BFD has been created by the linker and doesn't correspond5.245 - to any input file. */5.246 -#define BFD_LINKER_CREATED 0x20005.247 -5.248 -/* Symbols and relocation. */5.249 -5.250 -/* A count of carsyms (canonical archive symbols). */5.251 -typedef unsigned long symindex;5.252 -5.253 -/* How to perform a relocation. */5.254 -typedef const struct reloc_howto_struct reloc_howto_type;5.255 -5.256 -#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)5.257 -5.258 -/* General purpose part of a symbol X;5.259 - target specific parts are in libcoff.h, libaout.h, etc. */5.260 -5.261 -#define bfd_get_section(x) ((x)->section)5.262 -#define bfd_get_output_section(x) ((x)->section->output_section)5.263 -#define bfd_set_section(x,y) ((x)->section) = (y)5.264 -#define bfd_asymbol_base(x) ((x)->section->vma)5.265 -#define bfd_asymbol_value(x) (bfd_asymbol_base(x) + (x)->value)5.266 -#define bfd_asymbol_name(x) ((x)->name)5.267 -/*Perhaps future: #define bfd_asymbol_bfd(x) ((x)->section->owner)*/5.268 -#define bfd_asymbol_bfd(x) ((x)->the_bfd)5.269 -#define bfd_asymbol_flavour(x) (bfd_asymbol_bfd(x)->xvec->flavour)5.270 -5.271 -/* A canonical archive symbol. */5.272 -/* This is a type pun with struct ranlib on purpose! */5.273 -typedef struct carsym5.274 -{5.275 - char *name;5.276 - file_ptr file_offset; /* Look here to find the file. */5.277 -}5.278 -carsym; /* To make these you call a carsymogen. */5.279 -5.280 -/* Used in generating armaps (archive tables of contents).5.281 - Perhaps just a forward definition would do? */5.282 -struct orl /* Output ranlib. */5.283 -{5.284 - char **name; /* Symbol name. */5.285 - union5.286 - {5.287 - file_ptr pos;5.288 - bfd *abfd;5.289 - } u; /* bfd* or file position. */5.290 - int namidx; /* Index into string table. */5.291 -};5.292 -5.293 -/* Linenumber stuff. */5.294 -typedef struct lineno_cache_entry5.295 -{5.296 - unsigned int line_number; /* Linenumber from start of function. */5.297 - union5.298 - {5.299 - struct bfd_symbol *sym; /* Function name. */5.300 - bfd_vma offset; /* Offset into section. */5.301 - } u;5.302 -}5.303 -alent;5.304 -5.305 -/* Object and core file sections. */5.306 -5.307 -#define align_power(addr, align) \5.308 - (((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))5.309 -5.310 -typedef struct bfd_section *sec_ptr;5.311 -5.312 -#define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)5.313 -#define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)5.314 -#define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0)5.315 -#define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0)5.316 -#define bfd_section_name(bfd, ptr) ((ptr)->name)5.317 -#define bfd_section_size(bfd, ptr) ((ptr)->size)5.318 -#define bfd_get_section_size(ptr) ((ptr)->size)5.319 -#define bfd_section_vma(bfd, ptr) ((ptr)->vma)5.320 -#define bfd_section_lma(bfd, ptr) ((ptr)->lma)5.321 -#define bfd_section_alignment(bfd, ptr) ((ptr)->alignment_power)5.322 -#define bfd_get_section_flags(bfd, ptr) ((ptr)->flags + 0)5.323 -#define bfd_get_section_userdata(bfd, ptr) ((ptr)->userdata)5.324 -5.325 -#define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)5.326 -5.327 -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)5.328 -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)5.329 -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)5.330 -/* Find the address one past the end of SEC. */5.331 -#define bfd_get_section_limit(bfd, sec) \5.332 - (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \5.333 - / bfd_octets_per_byte (bfd))5.334 -5.335 -typedef struct stat stat_type;5.336 -5.337 -typedef enum bfd_print_symbol5.338 -{5.339 - bfd_print_symbol_name,5.340 - bfd_print_symbol_more,5.341 - bfd_print_symbol_all5.342 -} bfd_print_symbol_type;5.343 -5.344 -/* Information about a symbol that nm needs. */5.345 -5.346 -typedef struct _symbol_info5.347 -{5.348 - symvalue value;5.349 - char type;5.350 - const char *name; /* Symbol name. */5.351 - unsigned char stab_type; /* Stab type. */5.352 - char stab_other; /* Stab other. */5.353 - short stab_desc; /* Stab desc. */5.354 - const char *stab_name; /* String for stab type. */5.355 -} symbol_info;5.356 -5.357 -/* Get the name of a stabs type code. */5.358 -5.359 -extern const char *bfd_get_stab_name (int);5.360 -5.361 -/* Hash table routines. There is no way to free up a hash table. */5.362 -5.363 -/* An element in the hash table. Most uses will actually use a larger5.364 - structure, and an instance of this will be the first field. */5.365 -5.366 -struct bfd_hash_entry5.367 -{5.368 - /* Next entry for this hash code. */5.369 - struct bfd_hash_entry *next;5.370 - /* String being hashed. */5.371 - const char *string;5.372 - /* Hash code. This is the full hash code, not the index into the5.373 - table. */5.374 - unsigned long hash;5.375 -};5.376 -5.377 -/* A hash table. */5.378 -5.379 -struct bfd_hash_table5.380 -{5.381 - /* The hash array. */5.382 - struct bfd_hash_entry **table;5.383 - /* The number of slots in the hash table. */5.384 - unsigned int size;5.385 - /* A function used to create new elements in the hash table. The5.386 - first entry is itself a pointer to an element. When this5.387 - function is first invoked, this pointer will be NULL. However,5.388 - having the pointer permits a hierarchy of method functions to be5.389 - built each of which calls the function in the superclass. Thus5.390 - each function should be written to allocate a new block of memory5.391 - only if the argument is NULL. */5.392 - struct bfd_hash_entry *(*newfunc)5.393 - (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);5.394 - /* An objalloc for this hash table. This is a struct objalloc *,5.395 - but we use void * to avoid requiring the inclusion of objalloc.h. */5.396 - void *memory;5.397 -};5.398 -5.399 -/* Initialize a hash table. */5.400 -extern bfd_boolean bfd_hash_table_init5.401 - (struct bfd_hash_table *,5.402 - struct bfd_hash_entry *(*) (struct bfd_hash_entry *,5.403 - struct bfd_hash_table *,5.404 - const char *));5.405 -5.406 -/* Initialize a hash table specifying a size. */5.407 -extern bfd_boolean bfd_hash_table_init_n5.408 - (struct bfd_hash_table *,5.409 - struct bfd_hash_entry *(*) (struct bfd_hash_entry *,5.410 - struct bfd_hash_table *,5.411 - const char *),5.412 - unsigned int size);5.413 -5.414 -/* Free up a hash table. */5.415 -extern void bfd_hash_table_free5.416 - (struct bfd_hash_table *);5.417 -5.418 -/* Look up a string in a hash table. If CREATE is TRUE, a new entry5.419 - will be created for this string if one does not already exist. The5.420 - COPY argument must be TRUE if this routine should copy the string5.421 - into newly allocated memory when adding an entry. */5.422 -extern struct bfd_hash_entry *bfd_hash_lookup5.423 - (struct bfd_hash_table *, const char *, bfd_boolean create,5.424 - bfd_boolean copy);5.425 -5.426 -/* Replace an entry in a hash table. */5.427 -extern void bfd_hash_replace5.428 - (struct bfd_hash_table *, struct bfd_hash_entry *old,5.429 - struct bfd_hash_entry *nw);5.430 -5.431 -/* Base method for creating a hash table entry. */5.432 -extern struct bfd_hash_entry *bfd_hash_newfunc5.433 - (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);5.434 -5.435 -/* Grab some space for a hash table entry. */5.436 -extern void *bfd_hash_allocate5.437 - (struct bfd_hash_table *, unsigned int);5.438 -5.439 -/* Traverse a hash table in a random order, calling a function on each5.440 - element. If the function returns FALSE, the traversal stops. The5.441 - INFO argument is passed to the function. */5.442 -extern void bfd_hash_traverse5.443 - (struct bfd_hash_table *,5.444 - bfd_boolean (*) (struct bfd_hash_entry *, void *),5.445 - void *info);5.446 -5.447 -/* Allows the default size of a hash table to be configured. New hash5.448 - tables allocated using bfd_hash_table_init will be created with5.449 - this size. */5.450 -extern void bfd_hash_set_default_size (bfd_size_type);5.451 -5.452 -/* This structure is used to keep track of stabs in sections5.453 - information while linking. */5.454 -5.455 -struct stab_info5.456 -{5.457 - /* A hash table used to hold stabs strings. */5.458 - struct bfd_strtab_hash *strings;5.459 - /* The header file hash table. */5.460 - struct bfd_hash_table includes;5.461 - /* The first .stabstr section. */5.462 - struct bfd_section *stabstr;5.463 -};5.464 -5.465 -#define COFF_SWAP_TABLE (void *) &bfd_coff_std_swap_table5.466 -5.467 -/* User program access to BFD facilities. */5.468 -5.469 -/* Direct I/O routines, for programs which know more about the object5.470 - file than BFD does. Use higher level routines if possible. */5.471 -5.472 -extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);5.473 -extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);5.474 -extern int bfd_seek (bfd *, file_ptr, int);5.475 -extern file_ptr bfd_tell (bfd *);5.476 -extern int bfd_flush (bfd *);5.477 -extern int bfd_stat (bfd *, struct stat *);5.478 -5.479 -/* Deprecated old routines. */5.480 -#if __GNUC__5.481 -#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \5.482 - (warn_deprecated ("bfd_read", __FILE__, __LINE__, __FUNCTION__), \5.483 - bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))5.484 -#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD) \5.485 - (warn_deprecated ("bfd_write", __FILE__, __LINE__, __FUNCTION__), \5.486 - bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))5.487 -#else5.488 -#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \5.489 - (warn_deprecated ("bfd_read", (const char *) 0, 0, (const char *) 0), \5.490 - bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))5.491 -#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD) \5.492 - (warn_deprecated ("bfd_write", (const char *) 0, 0, (const char *) 0),\5.493 - bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))5.494 -#endif5.495 -extern void warn_deprecated (const char *, const char *, int, const char *);5.496 -5.497 -/* Cast from const char * to char * so that caller can assign to5.498 - a char * without a warning. */5.499 -#define bfd_get_filename(abfd) ((char *) (abfd)->filename)5.500 -#define bfd_get_cacheable(abfd) ((abfd)->cacheable)5.501 -#define bfd_get_format(abfd) ((abfd)->format)5.502 -#define bfd_get_target(abfd) ((abfd)->xvec->name)5.503 -#define bfd_get_flavour(abfd) ((abfd)->xvec->flavour)5.504 -#define bfd_family_coff(abfd) \5.505 - (bfd_get_flavour (abfd) == bfd_target_coff_flavour || \5.506 - bfd_get_flavour (abfd) == bfd_target_xcoff_flavour)5.507 -#define bfd_big_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_BIG)5.508 -#define bfd_little_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_LITTLE)5.509 -#define bfd_header_big_endian(abfd) \5.510 - ((abfd)->xvec->header_byteorder == BFD_ENDIAN_BIG)5.511 -#define bfd_header_little_endian(abfd) \5.512 - ((abfd)->xvec->header_byteorder == BFD_ENDIAN_LITTLE)5.513 -#define bfd_get_file_flags(abfd) ((abfd)->flags)5.514 -#define bfd_applicable_file_flags(abfd) ((abfd)->xvec->object_flags)5.515 -#define bfd_applicable_section_flags(abfd) ((abfd)->xvec->section_flags)5.516 -#define bfd_my_archive(abfd) ((abfd)->my_archive)5.517 -#define bfd_has_map(abfd) ((abfd)->has_armap)5.518 -5.519 -#define bfd_valid_reloc_types(abfd) ((abfd)->xvec->valid_reloc_types)5.520 -#define bfd_usrdata(abfd) ((abfd)->usrdata)5.521 -5.522 -#define bfd_get_start_address(abfd) ((abfd)->start_address)5.523 -#define bfd_get_symcount(abfd) ((abfd)->symcount)5.524 -#define bfd_get_outsymbols(abfd) ((abfd)->outsymbols)5.525 -#define bfd_count_sections(abfd) ((abfd)->section_count)5.526 -5.527 -#define bfd_get_dynamic_symcount(abfd) ((abfd)->dynsymcount)5.528 -5.529 -#define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)5.530 -5.531 -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)5.532 -5.533 -extern bfd_boolean bfd_cache_close5.534 - (bfd *abfd);5.535 -/* NB: This declaration should match the autogenerated one in libbfd.h. */5.536 -5.537 -extern bfd_boolean bfd_cache_close_all (void);5.538 -5.539 -extern bfd_boolean bfd_record_phdr5.540 - (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,5.541 - bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);5.542 -5.543 -/* Byte swapping routines. */5.544 -5.545 -bfd_uint64_t bfd_getb64 (const void *);5.546 -bfd_uint64_t bfd_getl64 (const void *);5.547 -bfd_int64_t bfd_getb_signed_64 (const void *);5.548 -bfd_int64_t bfd_getl_signed_64 (const void *);5.549 -bfd_vma bfd_getb32 (const void *);5.550 -bfd_vma bfd_getl32 (const void *);5.551 -bfd_signed_vma bfd_getb_signed_32 (const void *);5.552 -bfd_signed_vma bfd_getl_signed_32 (const void *);5.553 -bfd_vma bfd_getb16 (const void *);5.554 -bfd_vma bfd_getl16 (const void *);5.555 -bfd_signed_vma bfd_getb_signed_16 (const void *);5.556 -bfd_signed_vma bfd_getl_signed_16 (const void *);5.557 -void bfd_putb64 (bfd_uint64_t, void *);5.558 -void bfd_putl64 (bfd_uint64_t, void *);5.559 -void bfd_putb32 (bfd_vma, void *);5.560 -void bfd_putl32 (bfd_vma, void *);5.561 -void bfd_putb16 (bfd_vma, void *);5.562 -void bfd_putl16 (bfd_vma, void *);5.563 -5.564 -/* Byte swapping routines which take size and endiannes as arguments. */5.565 -5.566 -bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean);5.567 -void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean);5.568 -5.569 -extern bfd_boolean bfd_section_already_linked_table_init (void);5.570 -extern void bfd_section_already_linked_table_free (void);5.571 -5.572 -/* Externally visible ECOFF routines. */5.573 -5.574 -#if defined(__STDC__) || defined(ALMOST_STDC)5.575 -struct ecoff_debug_info;5.576 -struct ecoff_debug_swap;5.577 -struct ecoff_extr;5.578 -struct bfd_symbol;5.579 -struct bfd_link_info;5.580 -struct bfd_link_hash_entry;5.581 -struct bfd_elf_version_tree;5.582 -#endif5.583 -extern bfd_vma bfd_ecoff_get_gp_value5.584 - (bfd * abfd);5.585 -extern bfd_boolean bfd_ecoff_set_gp_value5.586 - (bfd *abfd, bfd_vma gp_value);5.587 -extern bfd_boolean bfd_ecoff_set_regmasks5.588 - (bfd *abfd, unsigned long gprmask, unsigned long fprmask,5.589 - unsigned long *cprmask);5.590 -extern void *bfd_ecoff_debug_init5.591 - (bfd *output_bfd, struct ecoff_debug_info *output_debug,5.592 - const struct ecoff_debug_swap *output_swap, struct bfd_link_info *);5.593 -extern void bfd_ecoff_debug_free5.594 - (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,5.595 - const struct ecoff_debug_swap *output_swap, struct bfd_link_info *);5.596 -extern bfd_boolean bfd_ecoff_debug_accumulate5.597 - (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,5.598 - const struct ecoff_debug_swap *output_swap, bfd *input_bfd,5.599 - struct ecoff_debug_info *input_debug,5.600 - const struct ecoff_debug_swap *input_swap, struct bfd_link_info *);5.601 -extern bfd_boolean bfd_ecoff_debug_accumulate_other5.602 - (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,5.603 - const struct ecoff_debug_swap *output_swap, bfd *input_bfd,5.604 - struct bfd_link_info *);5.605 -extern bfd_boolean bfd_ecoff_debug_externals5.606 - (bfd *abfd, struct ecoff_debug_info *debug,5.607 - const struct ecoff_debug_swap *swap, bfd_boolean relocatable,5.608 - bfd_boolean (*get_extr) (struct bfd_symbol *, struct ecoff_extr *),5.609 - void (*set_index) (struct bfd_symbol *, bfd_size_type));5.610 -extern bfd_boolean bfd_ecoff_debug_one_external5.611 - (bfd *abfd, struct ecoff_debug_info *debug,5.612 - const struct ecoff_debug_swap *swap, const char *name,5.613 - struct ecoff_extr *esym);5.614 -extern bfd_size_type bfd_ecoff_debug_size5.615 - (bfd *abfd, struct ecoff_debug_info *debug,5.616 - const struct ecoff_debug_swap *swap);5.617 -extern bfd_boolean bfd_ecoff_write_debug5.618 - (bfd *abfd, struct ecoff_debug_info *debug,5.619 - const struct ecoff_debug_swap *swap, file_ptr where);5.620 -extern bfd_boolean bfd_ecoff_write_accumulated_debug5.621 - (void *handle, bfd *abfd, struct ecoff_debug_info *debug,5.622 - const struct ecoff_debug_swap *swap,5.623 - struct bfd_link_info *info, file_ptr where);5.624 -5.625 -/* Externally visible ELF routines. */5.626 -5.627 -struct bfd_link_needed_list5.628 -{5.629 - struct bfd_link_needed_list *next;5.630 - bfd *by;5.631 - const char *name;5.632 -};5.633 -5.634 -enum dynamic_lib_link_class {5.635 - DYN_NORMAL = 0,5.636 - DYN_AS_NEEDED = 1,5.637 - DYN_DT_NEEDED = 2,5.638 - DYN_NO_ADD_NEEDED = 4,5.639 - DYN_NO_NEEDED = 85.640 -};5.641 -5.642 -extern bfd_boolean bfd_elf_record_link_assignment5.643 - (bfd *, struct bfd_link_info *, const char *, bfd_boolean);5.644 -extern struct bfd_link_needed_list *bfd_elf_get_needed_list5.645 - (bfd *, struct bfd_link_info *);5.646 -extern bfd_boolean bfd_elf_get_bfd_needed_list5.647 - (bfd *, struct bfd_link_needed_list **);5.648 -extern bfd_boolean bfd_elf_size_dynamic_sections5.649 - (bfd *, const char *, const char *, const char *, const char * const *,5.650 - struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *);5.651 -extern void bfd_elf_set_dt_needed_name5.652 - (bfd *, const char *);5.653 -extern const char *bfd_elf_get_dt_soname5.654 - (bfd *);5.655 -extern void bfd_elf_set_dyn_lib_class5.656 - (bfd *, int);5.657 -extern int bfd_elf_get_dyn_lib_class5.658 - (bfd *);5.659 -extern struct bfd_link_needed_list *bfd_elf_get_runpath_list5.660 - (bfd *, struct bfd_link_info *);5.661 -extern bfd_boolean bfd_elf_discard_info5.662 - (bfd *, struct bfd_link_info *);5.663 -5.664 -/* Return an upper bound on the number of bytes required to store a5.665 - copy of ABFD's program header table entries. Return -1 if an error5.666 - occurs; bfd_get_error will return an appropriate code. */5.667 -extern long bfd_get_elf_phdr_upper_bound5.668 - (bfd *abfd);5.669 -5.670 -/* Copy ABFD's program header table entries to *PHDRS. The entries5.671 - will be stored as an array of Elf_Internal_Phdr structures, as5.672 - defined in include/elf/internal.h. To find out how large the5.673 - buffer needs to be, call bfd_get_elf_phdr_upper_bound.5.674 -5.675 - Return the number of program header table entries read, or -1 if an5.676 - error occurs; bfd_get_error will return an appropriate code. */5.677 -extern int bfd_get_elf_phdrs5.678 - (bfd *abfd, void *phdrs);5.679 -5.680 -/* Create a new BFD as if by bfd_openr. Rather than opening a file,5.681 - reconstruct an ELF file by reading the segments out of remote memory5.682 - based on the ELF file header at EHDR_VMA and the ELF program headers it5.683 - points to. If not null, *LOADBASEP is filled in with the difference5.684 - between the VMAs from which the segments were read, and the VMAs the5.685 - file headers (and hence BFD's idea of each section's VMA) put them at.5.686 -5.687 - The function TARGET_READ_MEMORY is called to copy LEN bytes from the5.688 - remote memory at target address VMA into the local buffer at MYADDR; it5.689 - should return zero on success or an `errno' code on failure. TEMPL must5.690 - be a BFD for an ELF target with the word size and byte order found in5.691 - the remote memory. */5.692 -extern bfd *bfd_elf_bfd_from_remote_memory5.693 - (bfd *templ, bfd_vma ehdr_vma, bfd_vma *loadbasep,5.694 - int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr, int len));5.695 -5.696 -/* Return the arch_size field of an elf bfd, or -1 if not elf. */5.697 -extern int bfd_get_arch_size5.698 - (bfd *);5.699 -5.700 -/* Return TRUE if address "naturally" sign extends, or -1 if not elf. */5.701 -extern int bfd_get_sign_extend_vma5.702 - (bfd *);5.703 -5.704 -extern struct bfd_section *_bfd_elf_tls_setup5.705 - (bfd *, struct bfd_link_info *);5.706 -5.707 -extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs5.708 - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);5.709 -5.710 -/* SunOS shared library support routines for the linker. */5.711 -5.712 -extern struct bfd_link_needed_list *bfd_sunos_get_needed_list5.713 - (bfd *, struct bfd_link_info *);5.714 -extern bfd_boolean bfd_sunos_record_link_assignment5.715 - (bfd *, struct bfd_link_info *, const char *);5.716 -extern bfd_boolean bfd_sunos_size_dynamic_sections5.717 - (bfd *, struct bfd_link_info *, struct bfd_section **, struct bfd_section **, struct bfd_section **);5.718 -5.719 -/* Linux shared library support routines for the linker. */5.720 -5.721 -extern bfd_boolean bfd_i386linux_size_dynamic_sections5.722 - (bfd *, struct bfd_link_info *);5.723 -extern bfd_boolean bfd_m68klinux_size_dynamic_sections5.724 - (bfd *, struct bfd_link_info *);5.725 -extern bfd_boolean bfd_sparclinux_size_dynamic_sections5.726 - (bfd *, struct bfd_link_info *);5.727 -5.728 -/* mmap hacks */5.729 -5.730 -struct _bfd_window_internal;5.731 -typedef struct _bfd_window_internal bfd_window_internal;5.732 -5.733 -typedef struct _bfd_window5.734 -{5.735 - /* What the user asked for. */5.736 - void *data;5.737 - bfd_size_type size;5.738 - /* The actual window used by BFD. Small user-requested read-only5.739 - regions sharing a page may share a single window into the object5.740 - file. Read-write versions shouldn't until I've fixed things to5.741 - keep track of which portions have been claimed by the5.742 - application; don't want to give the same region back when the5.743 - application wants two writable copies! */5.744 - struct _bfd_window_internal *i;5.745 -}5.746 -bfd_window;5.747 -5.748 -extern void bfd_init_window5.749 - (bfd_window *);5.750 -extern void bfd_free_window5.751 - (bfd_window *);5.752 -extern bfd_boolean bfd_get_file_window5.753 - (bfd *, file_ptr, bfd_size_type, bfd_window *, bfd_boolean);5.754 -5.755 -/* XCOFF support routines for the linker. */5.756 -5.757 -extern bfd_boolean bfd_xcoff_link_record_set5.758 - (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_size_type);5.759 -extern bfd_boolean bfd_xcoff_import_symbol5.760 - (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_vma,5.761 - const char *, const char *, const char *, unsigned int);5.762 -extern bfd_boolean bfd_xcoff_export_symbol5.763 - (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *);5.764 -extern bfd_boolean bfd_xcoff_link_count_reloc5.765 - (bfd *, struct bfd_link_info *, const char *);5.766 -extern bfd_boolean bfd_xcoff_record_link_assignment5.767 - (bfd *, struct bfd_link_info *, const char *);5.768 -extern bfd_boolean bfd_xcoff_size_dynamic_sections5.769 - (bfd *, struct bfd_link_info *, const char *, const char *,5.770 - unsigned long, unsigned long, unsigned long, bfd_boolean,5.771 - int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);5.772 -extern bfd_boolean bfd_xcoff_link_generate_rtinit5.773 - (bfd *, const char *, const char *, bfd_boolean);5.774 -5.775 -/* XCOFF support routines for ar. */5.776 -extern bfd_boolean bfd_xcoff_ar_archive_set_magic5.777 - (bfd *, char *);5.778 -5.779 -/* Externally visible COFF routines. */5.780 -5.781 -#if defined(__STDC__) || defined(ALMOST_STDC)5.782 -struct internal_syment;5.783 -union internal_auxent;5.784 -#endif5.785 -5.786 -extern bfd_boolean bfd_coff_get_syment5.787 - (bfd *, struct bfd_symbol *, struct internal_syment *);5.788 -5.789 -extern bfd_boolean bfd_coff_get_auxent5.790 - (bfd *, struct bfd_symbol *, int, union internal_auxent *);5.791 -5.792 -extern bfd_boolean bfd_coff_set_symbol_class5.793 - (bfd *, struct bfd_symbol *, unsigned int);5.794 -5.795 -extern bfd_boolean bfd_m68k_coff_create_embedded_relocs5.796 - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);5.797 -5.798 -/* ARM Interworking support. Called from linker. */5.799 -extern bfd_boolean bfd_arm_allocate_interworking_sections5.800 - (struct bfd_link_info *);5.801 -5.802 -extern bfd_boolean bfd_arm_process_before_allocation5.803 - (bfd *, struct bfd_link_info *, int);5.804 -5.805 -extern bfd_boolean bfd_arm_get_bfd_for_interworking5.806 - (bfd *, struct bfd_link_info *);5.807 -5.808 -/* PE ARM Interworking support. Called from linker. */5.809 -extern bfd_boolean bfd_arm_pe_allocate_interworking_sections5.810 - (struct bfd_link_info *);5.811 -5.812 -extern bfd_boolean bfd_arm_pe_process_before_allocation5.813 - (bfd *, struct bfd_link_info *, int);5.814 -5.815 -extern bfd_boolean bfd_arm_pe_get_bfd_for_interworking5.816 - (bfd *, struct bfd_link_info *);5.817 -5.818 -/* ELF ARM Interworking support. Called from linker. */5.819 -extern bfd_boolean bfd_elf32_arm_allocate_interworking_sections5.820 - (struct bfd_link_info *);5.821 -5.822 -extern bfd_boolean bfd_elf32_arm_process_before_allocation5.823 - (bfd *, struct bfd_link_info *, int);5.824 -5.825 -void bfd_elf32_arm_set_target_relocs5.826 - (struct bfd_link_info *, int, char *, int);5.827 -5.828 -extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking5.829 - (bfd *, struct bfd_link_info *);5.830 -5.831 -extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd5.832 - (bfd *, struct bfd_link_info *);5.833 -5.834 -/* ARM Note section processing. */5.835 -extern bfd_boolean bfd_arm_merge_machines5.836 - (bfd *, bfd *);5.837 -5.838 -extern bfd_boolean bfd_arm_update_notes5.839 - (bfd *, const char *);5.840 -5.841 -extern unsigned int bfd_arm_get_mach_from_notes5.842 - (bfd *, const char *);5.843 -5.844 -/* TI COFF load page support. */5.845 -extern void bfd_ticoff_set_section_load_page5.846 - (struct bfd_section *, int);5.847 -5.848 -extern int bfd_ticoff_get_section_load_page5.849 - (struct bfd_section *);5.850 -5.851 -/* H8/300 functions. */5.852 -extern bfd_vma bfd_h8300_pad_address5.853 - (bfd *, bfd_vma);5.854 -5.855 -/* IA64 Itanium code generation. Called from linker. */5.856 -extern void bfd_elf32_ia64_after_parse5.857 - (int);5.858 -5.859 -extern void bfd_elf64_ia64_after_parse5.860 - (int);5.861 -5.862 -/* This structure is used for a comdat section, as in PE. A comdat5.863 - section is associated with a particular symbol. When the linker5.864 - sees a comdat section, it keeps only one of the sections with a5.865 - given name and associated with a given symbol. */5.866 -5.867 -struct coff_comdat_info5.868 -{5.869 - /* The name of the symbol associated with a comdat section. */5.870 - const char *name;5.871 -5.872 - /* The local symbol table index of the symbol associated with a5.873 - comdat section. This is only meaningful to the object file format5.874 - specific code; it is not an index into the list returned by5.875 - bfd_canonicalize_symtab. */5.876 - long symbol;5.877 -};5.878 -5.879 -extern struct coff_comdat_info *bfd_coff_get_comdat_section5.880 - (bfd *, struct bfd_section *);5.881 -5.882 -/* Extracted from init.c. */5.883 -void bfd_init (void);5.884 -5.885 -/* Extracted from opncls.c. */5.886 -bfd *bfd_openr (const char *filename, const char *target);5.887 -5.888 -bfd *bfd_fdopenr (const char *filename, const char *target, int fd);5.889 -5.890 -bfd *bfd_openstreamr (const char *, const char *, void *);5.891 -5.892 -bfd *bfd_openr_iovec (const char *filename, const char *target,5.893 - void *(*open) (struct bfd *nbfd,5.894 - void *open_closure),5.895 - void *open_closure,5.896 - file_ptr (*pread) (struct bfd *nbfd,5.897 - void *stream,5.898 - void *buf,5.899 - file_ptr nbytes,5.900 - file_ptr offset),5.901 - int (*close) (struct bfd *nbfd,5.902 - void *stream));5.903 -5.904 -bfd *bfd_openw (const char *filename, const char *target);5.905 -5.906 -bfd_boolean bfd_close (bfd *abfd);5.907 -5.908 -bfd_boolean bfd_close_all_done (bfd *);5.909 -5.910 -bfd *bfd_create (const char *filename, bfd *templ);5.911 -5.912 -bfd_boolean bfd_make_writable (bfd *abfd);5.913 -5.914 -bfd_boolean bfd_make_readable (bfd *abfd);5.915 -5.916 -unsigned long bfd_calc_gnu_debuglink_crc325.917 - (unsigned long crc, const unsigned char *buf, bfd_size_type len);5.918 -5.919 -char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);5.920 -5.921 -struct bfd_section *bfd_create_gnu_debuglink_section5.922 - (bfd *abfd, const char *filename);5.923 -5.924 -bfd_boolean bfd_fill_in_gnu_debuglink_section5.925 - (bfd *abfd, struct bfd_section *sect, const char *filename);5.926 -5.927 -/* Extracted from libbfd.c. */5.928 -5.929 -/* Byte swapping macros for user section data. */5.930 -5.931 -#define bfd_put_8(abfd, val, ptr) \5.932 - ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))5.933 -#define bfd_put_signed_8 \5.934 - bfd_put_85.935 -#define bfd_get_8(abfd, ptr) \5.936 - (*(unsigned char *) (ptr) & 0xff)5.937 -#define bfd_get_signed_8(abfd, ptr) \5.938 - (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)5.939 -5.940 -#define bfd_put_16(abfd, val, ptr) \5.941 - BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))5.942 -#define bfd_put_signed_16 \5.943 - bfd_put_165.944 -#define bfd_get_16(abfd, ptr) \5.945 - BFD_SEND (abfd, bfd_getx16, (ptr))5.946 -#define bfd_get_signed_16(abfd, ptr) \5.947 - BFD_SEND (abfd, bfd_getx_signed_16, (ptr))5.948 -5.949 -#define bfd_put_32(abfd, val, ptr) \5.950 - BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))5.951 -#define bfd_put_signed_32 \5.952 - bfd_put_325.953 -#define bfd_get_32(abfd, ptr) \5.954 - BFD_SEND (abfd, bfd_getx32, (ptr))5.955 -#define bfd_get_signed_32(abfd, ptr) \5.956 - BFD_SEND (abfd, bfd_getx_signed_32, (ptr))5.957 -5.958 -#define bfd_put_64(abfd, val, ptr) \5.959 - BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))5.960 -#define bfd_put_signed_64 \5.961 - bfd_put_645.962 -#define bfd_get_64(abfd, ptr) \5.963 - BFD_SEND (abfd, bfd_getx64, (ptr))5.964 -#define bfd_get_signed_64(abfd, ptr) \5.965 - BFD_SEND (abfd, bfd_getx_signed_64, (ptr))5.966 -5.967 -#define bfd_get(bits, abfd, ptr) \5.968 - ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \5.969 - : (bits) == 16 ? bfd_get_16 (abfd, ptr) \5.970 - : (bits) == 32 ? bfd_get_32 (abfd, ptr) \5.971 - : (bits) == 64 ? bfd_get_64 (abfd, ptr) \5.972 - : (abort (), (bfd_vma) - 1))5.973 -5.974 -#define bfd_put(bits, abfd, val, ptr) \5.975 - ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \5.976 - : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \5.977 - : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \5.978 - : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \5.979 - : (abort (), (void) 0))5.980 -5.981 -5.982 -/* Byte swapping macros for file header data. */5.983 -5.984 -#define bfd_h_put_8(abfd, val, ptr) \5.985 - bfd_put_8 (abfd, val, ptr)5.986 -#define bfd_h_put_signed_8(abfd, val, ptr) \5.987 - bfd_put_8 (abfd, val, ptr)5.988 -#define bfd_h_get_8(abfd, ptr) \5.989 - bfd_get_8 (abfd, ptr)5.990 -#define bfd_h_get_signed_8(abfd, ptr) \5.991 - bfd_get_signed_8 (abfd, ptr)5.992 -5.993 -#define bfd_h_put_16(abfd, val, ptr) \5.994 - BFD_SEND (abfd, bfd_h_putx16, (val, ptr))5.995 -#define bfd_h_put_signed_16 \5.996 - bfd_h_put_165.997 -#define bfd_h_get_16(abfd, ptr) \5.998 - BFD_SEND (abfd, bfd_h_getx16, (ptr))5.999 -#define bfd_h_get_signed_16(abfd, ptr) \5.1000 - BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))5.1001 -5.1002 -#define bfd_h_put_32(abfd, val, ptr) \5.1003 - BFD_SEND (abfd, bfd_h_putx32, (val, ptr))5.1004 -#define bfd_h_put_signed_32 \5.1005 - bfd_h_put_325.1006 -#define bfd_h_get_32(abfd, ptr) \5.1007 - BFD_SEND (abfd, bfd_h_getx32, (ptr))5.1008 -#define bfd_h_get_signed_32(abfd, ptr) \5.1009 - BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))5.1010 -5.1011 -#define bfd_h_put_64(abfd, val, ptr) \5.1012 - BFD_SEND (abfd, bfd_h_putx64, (val, ptr))5.1013 -#define bfd_h_put_signed_64 \5.1014 - bfd_h_put_645.1015 -#define bfd_h_get_64(abfd, ptr) \5.1016 - BFD_SEND (abfd, bfd_h_getx64, (ptr))5.1017 -#define bfd_h_get_signed_64(abfd, ptr) \5.1018 - BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))5.1019 -5.1020 -/* Aliases for the above, which should eventually go away. */5.1021 -5.1022 -#define H_PUT_64 bfd_h_put_645.1023 -#define H_PUT_32 bfd_h_put_325.1024 -#define H_PUT_16 bfd_h_put_165.1025 -#define H_PUT_8 bfd_h_put_85.1026 -#define H_PUT_S64 bfd_h_put_signed_645.1027 -#define H_PUT_S32 bfd_h_put_signed_325.1028 -#define H_PUT_S16 bfd_h_put_signed_165.1029 -#define H_PUT_S8 bfd_h_put_signed_85.1030 -#define H_GET_64 bfd_h_get_645.1031 -#define H_GET_32 bfd_h_get_325.1032 -#define H_GET_16 bfd_h_get_165.1033 -#define H_GET_8 bfd_h_get_85.1034 -#define H_GET_S64 bfd_h_get_signed_645.1035 -#define H_GET_S32 bfd_h_get_signed_325.1036 -#define H_GET_S16 bfd_h_get_signed_165.1037 -#define H_GET_S8 bfd_h_get_signed_85.1038 -5.1039 -5.1040 -/* Extracted from bfdio.c. */5.1041 -long bfd_get_mtime (bfd *abfd);5.1042 -5.1043 -long bfd_get_size (bfd *abfd);5.1044 -5.1045 -/* Extracted from bfdwin.c. */5.1046 -/* Extracted from section.c. */5.1047 -typedef struct bfd_section5.1048 -{5.1049 - /* The name of the section; the name isn't a copy, the pointer is5.1050 - the same as that passed to bfd_make_section. */5.1051 - const char *name;5.1052 -5.1053 - /* A unique sequence number. */5.1054 - int id;5.1055 -5.1056 - /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */5.1057 - int index;5.1058 -5.1059 - /* The next section in the list belonging to the BFD, or NULL. */5.1060 - struct bfd_section *next;5.1061 -5.1062 - /* The field flags contains attributes of the section. Some5.1063 - flags are read in from the object file, and some are5.1064 - synthesized from other information. */5.1065 - flagword flags;5.1066 -5.1067 -#define SEC_NO_FLAGS 0x0005.1068 -5.1069 - /* Tells the OS to allocate space for this section when loading.5.1070 - This is clear for a section containing debug information only. */5.1071 -#define SEC_ALLOC 0x0015.1072 -5.1073 - /* Tells the OS to load the section from the file when loading.5.1074 - This is clear for a .bss section. */5.1075 -#define SEC_LOAD 0x0025.1076 -5.1077 - /* The section contains data still to be relocated, so there is5.1078 - some relocation information too. */5.1079 -#define SEC_RELOC 0x0045.1080 -5.1081 - /* A signal to the OS that the section contains read only data. */5.1082 -#define SEC_READONLY 0x0085.1083 -5.1084 - /* The section contains code only. */5.1085 -#define SEC_CODE 0x0105.1086 -5.1087 - /* The section contains data only. */5.1088 -#define SEC_DATA 0x0205.1089 -5.1090 - /* The section will reside in ROM. */5.1091 -#define SEC_ROM 0x0405.1092 -5.1093 - /* The section contains constructor information. This section5.1094 - type is used by the linker to create lists of constructors and5.1095 - destructors used by <<g++>>. When a back end sees a symbol5.1096 - which should be used in a constructor list, it creates a new5.1097 - section for the type of name (e.g., <<__CTOR_LIST__>>), attaches5.1098 - the symbol to it, and builds a relocation. To build the lists5.1099 - of constructors, all the linker has to do is catenate all the5.1100 - sections called <<__CTOR_LIST__>> and relocate the data5.1101 - contained within - exactly the operations it would peform on5.1102 - standard data. */5.1103 -#define SEC_CONSTRUCTOR 0x0805.1104 -5.1105 - /* The section has contents - a data section could be5.1106 - <<SEC_ALLOC>> | <<SEC_HAS_CONTENTS>>; a debug section could be5.1107 - <<SEC_HAS_CONTENTS>> */5.1108 -#define SEC_HAS_CONTENTS 0x1005.1109 -5.1110 - /* An instruction to the linker to not output the section5.1111 - even if it has information which would normally be written. */5.1112 -#define SEC_NEVER_LOAD 0x2005.1113 -5.1114 - /* The section contains thread local data. */5.1115 -#define SEC_THREAD_LOCAL 0x4005.1116 -5.1117 - /* The section has GOT references. This flag is only for the5.1118 - linker, and is currently only used by the elf32-hppa back end.5.1119 - It will be set if global offset table references were detected5.1120 - in this section, which indicate to the linker that the section5.1121 - contains PIC code, and must be handled specially when doing a5.1122 - static link. */5.1123 -#define SEC_HAS_GOT_REF 0x8005.1124 -5.1125 - /* The section contains common symbols (symbols may be defined5.1126 - multiple times, the value of a symbol is the amount of5.1127 - space it requires, and the largest symbol value is the one5.1128 - used). Most targets have exactly one of these (which we5.1129 - translate to bfd_com_section_ptr), but ECOFF has two. */5.1130 -#define SEC_IS_COMMON 0x10005.1131 -5.1132 - /* The section contains only debugging information. For5.1133 - example, this is set for ELF .debug and .stab sections.5.1134 - strip tests this flag to see if a section can be5.1135 - discarded. */5.1136 -#define SEC_DEBUGGING 0x20005.1137 -5.1138 - /* The contents of this section are held in memory pointed to5.1139 - by the contents field. This is checked by bfd_get_section_contents,5.1140 - and the data is retrieved from memory if appropriate. */5.1141 -#define SEC_IN_MEMORY 0x40005.1142 -5.1143 - /* The contents of this section are to be excluded by the5.1144 - linker for executable and shared objects unless those5.1145 - objects are to be further relocated. */5.1146 -#define SEC_EXCLUDE 0x80005.1147 -5.1148 - /* The contents of this section are to be sorted based on the sum of5.1149 - the symbol and addend values specified by the associated relocation5.1150 - entries. Entries without associated relocation entries will be5.1151 - appended to the end of the section in an unspecified order. */5.1152 -#define SEC_SORT_ENTRIES 0x100005.1153 -5.1154 - /* When linking, duplicate sections of the same name should be5.1155 - discarded, rather than being combined into a single section as5.1156 - is usually done. This is similar to how common symbols are5.1157 - handled. See SEC_LINK_DUPLICATES below. */5.1158 -#define SEC_LINK_ONCE 0x200005.1159 -5.1160 - /* If SEC_LINK_ONCE is set, this bitfield describes how the linker5.1161 - should handle duplicate sections. */5.1162 -#define SEC_LINK_DUPLICATES 0x400005.1163 -5.1164 - /* This value for SEC_LINK_DUPLICATES means that duplicate5.1165 - sections with the same name should simply be discarded. */5.1166 -#define SEC_LINK_DUPLICATES_DISCARD 0x05.1167 -5.1168 - /* This value for SEC_LINK_DUPLICATES means that the linker5.1169 - should warn if there are any duplicate sections, although5.1170 - it should still only link one copy. */5.1171 -#define SEC_LINK_DUPLICATES_ONE_ONLY 0x800005.1172 -5.1173 - /* This value for SEC_LINK_DUPLICATES means that the linker5.1174 - should warn if any duplicate sections are a different size. */5.1175 -#define SEC_LINK_DUPLICATES_SAME_SIZE 0x1000005.1176 -5.1177 - /* This value for SEC_LINK_DUPLICATES means that the linker5.1178 - should warn if any duplicate sections contain different5.1179 - contents. */5.1180 -#define SEC_LINK_DUPLICATES_SAME_CONTENTS \5.1181 - (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)5.1182 -5.1183 - /* This section was created by the linker as part of dynamic5.1184 - relocation or other arcane processing. It is skipped when5.1185 - going through the first-pass output, trusting that someone5.1186 - else up the line will take care of it later. */5.1187 -#define SEC_LINKER_CREATED 0x2000005.1188 -5.1189 - /* This section should not be subject to garbage collection. */5.1190 -#define SEC_KEEP 0x4000005.1191 -5.1192 - /* This section contains "short" data, and should be placed5.1193 - "near" the GP. */5.1194 -#define SEC_SMALL_DATA 0x8000005.1195 -5.1196 - /* Attempt to merge identical entities in the section.5.1197 - Entity size is given in the entsize field. */5.1198 -#define SEC_MERGE 0x10000005.1199 -5.1200 - /* If given with SEC_MERGE, entities to merge are zero terminated5.1201 - strings where entsize specifies character size instead of fixed5.1202 - size entries. */5.1203 -#define SEC_STRINGS 0x20000005.1204 -5.1205 - /* This section contains data about section groups. */5.1206 -#define SEC_GROUP 0x40000005.1207 -5.1208 - /* The section is a COFF shared library section. This flag is5.1209 - only for the linker. If this type of section appears in5.1210 - the input file, the linker must copy it to the output file5.1211 - without changing the vma or size. FIXME: Although this5.1212 - was originally intended to be general, it really is COFF5.1213 - specific (and the flag was renamed to indicate this). It5.1214 - might be cleaner to have some more general mechanism to5.1215 - allow the back end to control what the linker does with5.1216 - sections. */5.1217 -#define SEC_COFF_SHARED_LIBRARY 0x100000005.1218 -5.1219 - /* This section contains data which may be shared with other5.1220 - executables or shared objects. This is for COFF only. */5.1221 -#define SEC_COFF_SHARED 0x200000005.1222 -5.1223 - /* When a section with this flag is being linked, then if the size of5.1224 - the input section is less than a page, it should not cross a page5.1225 - boundary. If the size of the input section is one page or more,5.1226 - it should be aligned on a page boundary. This is for TI5.1227 - TMS320C54X only. */5.1228 -#define SEC_TIC54X_BLOCK 0x400000005.1229 -5.1230 - /* Conditionally link this section; do not link if there are no5.1231 - references found to any symbol in the section. This is for TI5.1232 - TMS320C54X only. */5.1233 -#define SEC_TIC54X_CLINK 0x800000005.1234 -5.1235 - /* End of section flags. */5.1236 -5.1237 - /* Some internal packed boolean fields. */5.1238 -5.1239 - /* See the vma field. */5.1240 - unsigned int user_set_vma : 1;5.1241 -5.1242 - /* A mark flag used by some of the linker backends. */5.1243 - unsigned int linker_mark : 1;5.1244 -5.1245 - /* Another mark flag used by some of the linker backends. Set for5.1246 - output sections that have an input section. */5.1247 - unsigned int linker_has_input : 1;5.1248 -5.1249 - /* A mark flag used by some linker backends for garbage collection. */5.1250 - unsigned int gc_mark : 1;5.1251 -5.1252 - /* The following flags are used by the ELF linker. */5.1253 -5.1254 - /* Mark sections which have been allocated to segments. */5.1255 - unsigned int segment_mark : 1;5.1256 -5.1257 - /* Type of sec_info information. */5.1258 - unsigned int sec_info_type:3;5.1259 -#define ELF_INFO_TYPE_NONE 05.1260 -#define ELF_INFO_TYPE_STABS 15.1261 -#define ELF_INFO_TYPE_MERGE 25.1262 -#define ELF_INFO_TYPE_EH_FRAME 35.1263 -#define ELF_INFO_TYPE_JUST_SYMS 45.1264 -5.1265 - /* Nonzero if this section uses RELA relocations, rather than REL. */5.1266 - unsigned int use_rela_p:1;5.1267 -5.1268 - /* Bits used by various backends. The generic code doesn't touch5.1269 - these fields. */5.1270 -5.1271 - /* Nonzero if this section has TLS related relocations. */5.1272 - unsigned int has_tls_reloc:1;5.1273 -5.1274 - /* Nonzero if this section has a gp reloc. */5.1275 - unsigned int has_gp_reloc:1;5.1276 -5.1277 - /* Nonzero if this section needs the relax finalize pass. */5.1278 - unsigned int need_finalize_relax:1;5.1279 -5.1280 - /* Whether relocations have been processed. */5.1281 - unsigned int reloc_done : 1;5.1282 -5.1283 - /* End of internal packed boolean fields. */5.1284 -5.1285 - /* The virtual memory address of the section - where it will be5.1286 - at run time. The symbols are relocated against this. The5.1287 - user_set_vma flag is maintained by bfd; if it's not set, the5.1288 - backend can assign addresses (for example, in <<a.out>>, where5.1289 - the default address for <<.data>> is dependent on the specific5.1290 - target and various flags). */5.1291 - bfd_vma vma;5.1292 -5.1293 - /* The load address of the section - where it would be in a5.1294 - rom image; really only used for writing section header5.1295 - information. */5.1296 - bfd_vma lma;5.1297 -5.1298 - /* The size of the section in octets, as it will be output.5.1299 - Contains a value even if the section has no contents (e.g., the5.1300 - size of <<.bss>>). */5.1301 - bfd_size_type size;5.1302 -5.1303 - /* For input sections, the original size on disk of the section, in5.1304 - octets. This field is used by the linker relaxation code. It is5.1305 - currently only set for sections where the linker relaxation scheme5.1306 - doesn't cache altered section and reloc contents (stabs, eh_frame,5.1307 - SEC_MERGE, some coff relaxing targets), and thus the original size5.1308 - needs to be kept to read the section multiple times.5.1309 - For output sections, rawsize holds the section size calculated on5.1310 - a previous linker relaxation pass. */5.1311 - bfd_size_type rawsize;5.1312 -5.1313 - /* If this section is going to be output, then this value is the5.1314 - offset in *bytes* into the output section of the first byte in the5.1315 - input section (byte ==> smallest addressable unit on the5.1316 - target). In most cases, if this was going to start at the5.1317 - 100th octet (8-bit quantity) in the output section, this value5.1318 - would be 100. However, if the target byte size is 16 bits5.1319 - (bfd_octets_per_byte is "2"), this value would be 50. */5.1320 - bfd_vma output_offset;5.1321 -5.1322 - /* The output section through which to map on output. */5.1323 - struct bfd_section *output_section;5.1324 -5.1325 - /* The alignment requirement of the section, as an exponent of 2 -5.1326 - e.g., 3 aligns to 2^3 (or 8). */5.1327 - unsigned int alignment_power;5.1328 -5.1329 - /* If an input section, a pointer to a vector of relocation5.1330 - records for the data in this section. */5.1331 - struct reloc_cache_entry *relocation;5.1332 -5.1333 - /* If an output section, a pointer to a vector of pointers to5.1334 - relocation records for the data in this section. */5.1335 - struct reloc_cache_entry **orelocation;5.1336 -5.1337 - /* The number of relocation records in one of the above. */5.1338 - unsigned reloc_count;5.1339 -5.1340 - /* Information below is back end specific - and not always used5.1341 - or updated. */5.1342 -5.1343 - /* File position of section data. */5.1344 - file_ptr filepos;5.1345 -5.1346 - /* File position of relocation info. */5.1347 - file_ptr rel_filepos;5.1348 -5.1349 - /* File position of line data. */5.1350 - file_ptr line_filepos;5.1351 -5.1352 - /* Pointer to data for applications. */5.1353 - void *userdata;5.1354 -5.1355 - /* If the SEC_IN_MEMORY flag is set, this points to the actual5.1356 - contents. */5.1357 - unsigned char *contents;5.1358 -5.1359 - /* Attached line number information. */5.1360 - alent *lineno;5.1361 -5.1362 - /* Number of line number records. */5.1363 - unsigned int lineno_count;5.1364 -5.1365 - /* Entity size for merging purposes. */5.1366 - unsigned int entsize;5.1367 -5.1368 - /* Points to the kept section if this section is a link-once section,5.1369 - and is discarded. */5.1370 - struct bfd_section *kept_section;5.1371 -5.1372 - /* When a section is being output, this value changes as more5.1373 - linenumbers are written out. */5.1374 - file_ptr moving_line_filepos;5.1375 -5.1376 - /* What the section number is in the target world. */5.1377 - int target_index;5.1378 -5.1379 - void *used_by_bfd;5.1380 -5.1381 - /* If this is a constructor section then here is a list of the5.1382 - relocations created to relocate items within it. */5.1383 - struct relent_chain *constructor_chain;5.1384 -5.1385 - /* The BFD which owns the section. */5.1386 - bfd *owner;5.1387 -5.1388 - /* A symbol which points at this section only. */5.1389 - struct bfd_symbol *symbol;5.1390 - struct bfd_symbol **symbol_ptr_ptr;5.1391 -5.1392 - struct bfd_link_order *link_order_head;5.1393 - struct bfd_link_order *link_order_tail;5.1394 -} asection;5.1395 -5.1396 -/* These sections are global, and are managed by BFD. The application5.1397 - and target back end are not permitted to change the values in5.1398 - these sections. New code should use the section_ptr macros rather5.1399 - than referring directly to the const sections. The const sections5.1400 - may eventually vanish. */5.1401 -#define BFD_ABS_SECTION_NAME "*ABS*"5.1402 -#define BFD_UND_SECTION_NAME "*UND*"5.1403 -#define BFD_COM_SECTION_NAME "*COM*"5.1404 -#define BFD_IND_SECTION_NAME "*IND*"5.1405 -5.1406 -/* The absolute section. */5.1407 -extern asection bfd_abs_section;5.1408 -#define bfd_abs_section_ptr ((asection *) &bfd_abs_section)5.1409 -#define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)5.1410 -/* Pointer to the undefined section. */5.1411 -extern asection bfd_und_section;5.1412 -#define bfd_und_section_ptr ((asection *) &bfd_und_section)5.1413 -#define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)5.1414 -/* Pointer to the common section. */5.1415 -extern asection bfd_com_section;5.1416 -#define bfd_com_section_ptr ((asection *) &bfd_com_section)5.1417 -/* Pointer to the indirect section. */5.1418 -extern asection bfd_ind_section;5.1419 -#define bfd_ind_section_ptr ((asection *) &bfd_ind_section)5.1420 -#define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr)5.1421 -5.1422 -#define bfd_is_const_section(SEC) \5.1423 - ( ((SEC) == bfd_abs_section_ptr) \5.1424 - || ((SEC) == bfd_und_section_ptr) \5.1425 - || ((SEC) == bfd_com_section_ptr) \5.1426 - || ((SEC) == bfd_ind_section_ptr))5.1427 -5.1428 -extern const struct bfd_symbol * const bfd_abs_symbol;5.1429 -extern const struct bfd_symbol * const bfd_com_symbol;5.1430 -extern const struct bfd_symbol * const bfd_und_symbol;5.1431 -extern const struct bfd_symbol * const bfd_ind_symbol;5.1432 -5.1433 -/* Macros to handle insertion and deletion of a bfd's sections. These5.1434 - only handle the list pointers, ie. do not adjust section_count,5.1435 - target_index etc. */5.1436 -#define bfd_section_list_remove(ABFD, PS) \5.1437 - do \5.1438 - { \5.1439 - asection **_ps = PS; \5.1440 - asection *_s = *_ps; \5.1441 - *_ps = _s->next; \5.1442 - if (_s->next == NULL) \5.1443 - (ABFD)->section_tail = _ps; \5.1444 - } \5.1445 - while (0)5.1446 -#define bfd_section_list_insert(ABFD, PS, S) \5.1447 - do \5.1448 - { \5.1449 - asection **_ps = PS; \5.1450 - asection *_s = S; \5.1451 - _s->next = *_ps; \5.1452 - *_ps = _s; \5.1453 - if (_s->next == NULL) \5.1454 - (ABFD)->section_tail = &_s->next; \5.1455 - } \5.1456 - while (0)5.1457 -5.1458 -void bfd_section_list_clear (bfd *);5.1459 -5.1460 -asection *bfd_get_section_by_name (bfd *abfd, const char *name);5.1461 -5.1462 -asection *bfd_get_section_by_name_if5.1463 - (bfd *abfd,5.1464 - const char *name,5.1465 - bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),5.1466 - void *obj);5.1467 -5.1468 -char *bfd_get_unique_section_name5.1469 - (bfd *abfd, const char *templat, int *count);5.1470 -5.1471 -asection *bfd_make_section_old_way (bfd *abfd, const char *name);5.1472 -5.1473 -asection *bfd_make_section_anyway (bfd *abfd, const char *name);5.1474 -5.1475 -asection *bfd_make_section (bfd *, const char *name);5.1476 -5.1477 -bfd_boolean bfd_set_section_flags5.1478 - (bfd *abfd, asection *sec, flagword flags);5.1479 -5.1480 -void bfd_map_over_sections5.1481 - (bfd *abfd,5.1482 - void (*func) (bfd *abfd, asection *sect, void *obj),5.1483 - void *obj);5.1484 -5.1485 -asection *bfd_sections_find_if5.1486 - (bfd *abfd,5.1487 - bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),5.1488 - void *obj);5.1489 -5.1490 -bfd_boolean bfd_set_section_size5.1491 - (bfd *abfd, asection *sec, bfd_size_type val);5.1492 -5.1493 -bfd_boolean bfd_set_section_contents5.1494 - (bfd *abfd, asection *section, const void *data,5.1495 - file_ptr offset, bfd_size_type count);5.1496 -5.1497 -bfd_boolean bfd_get_section_contents5.1498 - (bfd *abfd, asection *section, void *location, file_ptr offset,5.1499 - bfd_size_type count);5.1500 -5.1501 -bfd_boolean bfd_malloc_and_get_section5.1502 - (bfd *abfd, asection *section, bfd_byte **buf);5.1503 -5.1504 -bfd_boolean bfd_copy_private_section_data5.1505 - (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);5.1506 -5.1507 -#define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \5.1508 - BFD_SEND (obfd, _bfd_copy_private_section_data, \5.1509 - (ibfd, isection, obfd, osection))5.1510 -void _bfd_strip_section_from_output5.1511 - (struct bfd_link_info *info, asection *section);5.1512 -5.1513 -bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);5.1514 -5.1515 -bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);5.1516 -5.1517 -/* Extracted from archures.c. */5.1518 -enum bfd_architecture5.1519 -{5.1520 - bfd_arch_unknown, /* File arch not known. */5.1521 - bfd_arch_obscure, /* Arch known, not one of these. */5.1522 - bfd_arch_m68k, /* Motorola 68xxx */5.1523 -#define bfd_mach_m68000 15.1524 -#define bfd_mach_m68008 25.1525 -#define bfd_mach_m68010 35.1526 -#define bfd_mach_m68020 45.1527 -#define bfd_mach_m68030 55.1528 -#define bfd_mach_m68040 65.1529 -#define bfd_mach_m68060 75.1530 -#define bfd_mach_cpu32 85.1531 -#define bfd_mach_mcf5200 95.1532 -#define bfd_mach_mcf5206e 105.1533 -#define bfd_mach_mcf5307 115.1534 -#define bfd_mach_mcf5407 125.1535 -#define bfd_mach_mcf528x 135.1536 -#define bfd_mach_mcfv4e 145.1537 -#define bfd_mach_mcf521x 155.1538 -#define bfd_mach_mcf5249 165.1539 -#define bfd_mach_mcf547x 175.1540 -#define bfd_mach_mcf548x 185.1541 - bfd_arch_vax, /* DEC Vax */5.1542 - bfd_arch_i960, /* Intel 960 */5.1543 - /* The order of the following is important.5.1544 - lower number indicates a machine type that5.1545 - only accepts a subset of the instructions5.1546 - available to machines with higher numbers.5.1547 - The exception is the "ca", which is5.1548 - incompatible with all other machines except5.1549 - "core". */5.1550 -5.1551 -#define bfd_mach_i960_core 15.1552 -#define bfd_mach_i960_ka_sa 25.1553 -#define bfd_mach_i960_kb_sb 35.1554 -#define bfd_mach_i960_mc 45.1555 -#define bfd_mach_i960_xa 55.1556 -#define bfd_mach_i960_ca 65.1557 -#define bfd_mach_i960_jx 75.1558 -#define bfd_mach_i960_hx 85.1559 -5.1560 - bfd_arch_or32, /* OpenRISC 32 */5.1561 -5.1562 - bfd_arch_a29k, /* AMD 29000 */5.1563 - bfd_arch_sparc, /* SPARC */5.1564 -#define bfd_mach_sparc 15.1565 -/* The difference between v8plus and v9 is that v9 is a true 64 bit env. */5.1566 -#define bfd_mach_sparc_sparclet 25.1567 -#define bfd_mach_sparc_sparclite 35.1568 -#define bfd_mach_sparc_v8plus 45.1569 -#define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */5.1570 -#define bfd_mach_sparc_sparclite_le 65.1571 -#define bfd_mach_sparc_v9 75.1572 -#define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */5.1573 -#define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */5.1574 -#define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */5.1575 -/* Nonzero if MACH has the v9 instruction set. */5.1576 -#define bfd_mach_sparc_v9_p(mach) \5.1577 - ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \5.1578 - && (mach) != bfd_mach_sparc_sparclite_le)5.1579 -/* Nonzero if MACH is a 64 bit sparc architecture. */5.1580 -#define bfd_mach_sparc_64bit_p(mach) \5.1581 - ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb)5.1582 - bfd_arch_mips, /* MIPS Rxxxx */5.1583 -#define bfd_mach_mips3000 30005.1584 -#define bfd_mach_mips3900 39005.1585 -#define bfd_mach_mips4000 40005.1586 -#define bfd_mach_mips4010 40105.1587 -#define bfd_mach_mips4100 41005.1588 -#define bfd_mach_mips4111 41115.1589 -#define bfd_mach_mips4120 41205.1590 -#define bfd_mach_mips4300 43005.1591 -#define bfd_mach_mips4400 44005.1592 -#define bfd_mach_mips4600 46005.1593 -#define bfd_mach_mips4650 46505.1594 -#define bfd_mach_mips5000 50005.1595 -#define bfd_mach_mips5400 54005.1596 -#define bfd_mach_mips5500 55005.1597 -#define bfd_mach_mips6000 60005.1598 -#define bfd_mach_mips7000 70005.1599 -#define bfd_mach_mips8000 80005.1600 -#define bfd_mach_mips9000 90005.1601 -#define bfd_mach_mips10000 100005.1602 -#define bfd_mach_mips12000 120005.1603 -#define bfd_mach_mips16 165.1604 -#define bfd_mach_mips5 55.1605 -#define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */5.1606 -#define bfd_mach_mipsisa32 325.1607 -#define bfd_mach_mipsisa32r2 335.1608 -#define bfd_mach_mipsisa64 645.1609 -#define bfd_mach_mipsisa64r2 655.1610 - bfd_arch_i386, /* Intel 386 */5.1611 -#define bfd_mach_i386_i386 15.1612 -#define bfd_mach_i386_i8086 25.1613 -#define bfd_mach_i386_i386_intel_syntax 35.1614 -#define bfd_mach_x86_64 645.1615 -#define bfd_mach_x86_64_intel_syntax 655.1616 - bfd_arch_we32k, /* AT&T WE32xxx */5.1617 - bfd_arch_tahoe, /* CCI/Harris Tahoe */5.1618 - bfd_arch_i860, /* Intel 860 */5.1619 - bfd_arch_i370, /* IBM 360/370 Mainframes */5.1620 - bfd_arch_romp, /* IBM ROMP PC/RT */5.1621 - bfd_arch_alliant, /* Alliant */5.1622 - bfd_arch_convex, /* Convex */5.1623 - bfd_arch_m88k, /* Motorola 88xxx */5.1624 - bfd_arch_m98k, /* Motorola 98xxx */5.1625 - bfd_arch_pyramid, /* Pyramid Technology */5.1626 - bfd_arch_h8300, /* Renesas H8/300 (formerly Hitachi H8/300) */5.1627 -#define bfd_mach_h8300 15.1628 -#define bfd_mach_h8300h 25.1629 -#define bfd_mach_h8300s 35.1630 -#define bfd_mach_h8300hn 45.1631 -#define bfd_mach_h8300sn 55.1632 -#define bfd_mach_h8300sx 65.1633 -#define bfd_mach_h8300sxn 75.1634 - bfd_arch_pdp11, /* DEC PDP-11 */5.1635 - bfd_arch_powerpc, /* PowerPC */5.1636 -#define bfd_mach_ppc 325.1637 -#define bfd_mach_ppc64 645.1638 -#define bfd_mach_ppc_403 4035.1639 -#define bfd_mach_ppc_403gc 40305.1640 -#define bfd_mach_ppc_505 5055.1641 -#define bfd_mach_ppc_601 6015.1642 -#define bfd_mach_ppc_602 6025.1643 -#define bfd_mach_ppc_603 6035.1644 -#define bfd_mach_ppc_ec603e 60315.1645 -#define bfd_mach_ppc_604 6045.1646 -#define bfd_mach_ppc_620 6205.1647 -#define bfd_mach_ppc_630 6305.1648 -#define bfd_mach_ppc_750 7505.1649 -#define bfd_mach_ppc_860 8605.1650 -#define bfd_mach_ppc_a35 355.1651 -#define bfd_mach_ppc_rs64ii 6425.1652 -#define bfd_mach_ppc_rs64iii 6435.1653 -#define bfd_mach_ppc_7400 74005.1654 -#define bfd_mach_ppc_e500 5005.1655 - bfd_arch_rs6000, /* IBM RS/6000 */5.1656 -#define bfd_mach_rs6k 60005.1657 -#define bfd_mach_rs6k_rs1 60015.1658 -#define bfd_mach_rs6k_rsc 60035.1659 -#define bfd_mach_rs6k_rs2 60025.1660 - bfd_arch_hppa, /* HP PA RISC */5.1661 -#define bfd_mach_hppa10 105.1662 -#define bfd_mach_hppa11 115.1663 -#define bfd_mach_hppa20 205.1664 -#define bfd_mach_hppa20w 255.1665 - bfd_arch_d10v, /* Mitsubishi D10V */5.1666 -#define bfd_mach_d10v 15.1667 -#define bfd_mach_d10v_ts2 25.1668 -#define bfd_mach_d10v_ts3 35.1669 - bfd_arch_d30v, /* Mitsubishi D30V */5.1670 - bfd_arch_dlx, /* DLX */5.1671 - bfd_arch_m68hc11, /* Motorola 68HC11 */5.1672 - bfd_arch_m68hc12, /* Motorola 68HC12 */5.1673 -#define bfd_mach_m6812_default 05.1674 -#define bfd_mach_m6812 15.1675 -#define bfd_mach_m6812s 25.1676 - bfd_arch_z8k, /* Zilog Z8000 */5.1677 -#define bfd_mach_z8001 15.1678 -#define bfd_mach_z8002 25.1679 - bfd_arch_h8500, /* Renesas H8/500 (formerly Hitachi H8/500) */5.1680 - bfd_arch_sh, /* Renesas / SuperH SH (formerly Hitachi SH) */5.1681 -#define bfd_mach_sh 15.1682 -#define bfd_mach_sh2 0x205.1683 -#define bfd_mach_sh_dsp 0x2d5.1684 -#define bfd_mach_sh2a 0x2a5.1685 -#define bfd_mach_sh2a_nofpu 0x2b5.1686 -#define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a15.1687 -#define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a25.1688 -#define bfd_mach_sh2a_or_sh4 0x2a35.1689 -#define bfd_mach_sh2a_or_sh3e 0x2a45.1690 -#define bfd_mach_sh2e 0x2e5.1691 -#define bfd_mach_sh3 0x305.1692 -#define bfd_mach_sh3_nommu 0x315.1693 -#define bfd_mach_sh3_dsp 0x3d5.1694 -#define bfd_mach_sh3e 0x3e5.1695 -#define bfd_mach_sh4 0x405.1696 -#define bfd_mach_sh4_nofpu 0x415.1697 -#define bfd_mach_sh4_nommu_nofpu 0x425.1698 -#define bfd_mach_sh4a 0x4a5.1699 -#define bfd_mach_sh4a_nofpu 0x4b5.1700 -#define bfd_mach_sh4al_dsp 0x4d5.1701 -#define bfd_mach_sh5 0x505.1702 - bfd_arch_alpha, /* Dec Alpha */5.1703 -#define bfd_mach_alpha_ev4 0x105.1704 -#define bfd_mach_alpha_ev5 0x205.1705 -#define bfd_mach_alpha_ev6 0x305.1706 - bfd_arch_arm, /* Advanced Risc Machines ARM. */5.1707 -#define bfd_mach_arm_unknown 05.1708 -#define bfd_mach_arm_2 15.1709 -#define bfd_mach_arm_2a 25.1710 -#define bfd_mach_arm_3 35.1711 -#define bfd_mach_arm_3M 45.1712 -#define bfd_mach_arm_4 55.1713 -#define bfd_mach_arm_4T 65.1714 -#define bfd_mach_arm_5 75.1715 -#define bfd_mach_arm_5T 85.1716 -#define bfd_mach_arm_5TE 95.1717 -#define bfd_mach_arm_XScale 105.1718 -#define bfd_mach_arm_ep9312 115.1719 -#define bfd_mach_arm_iWMMXt 125.1720 - bfd_arch_ns32k, /* National Semiconductors ns32000 */5.1721 - bfd_arch_w65, /* WDC 65816 */5.1722 - bfd_arch_tic30, /* Texas Instruments TMS320C30 */5.1723 - bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X */5.1724 -#define bfd_mach_tic3x 305.1725 -#define bfd_mach_tic4x 405.1726 - bfd_arch_tic54x, /* Texas Instruments TMS320C54X */5.1727 - bfd_arch_tic80, /* TI TMS320c80 (MVP) */5.1728 - bfd_arch_v850, /* NEC V850 */5.1729 -#define bfd_mach_v850 15.1730 -#define bfd_mach_v850e 'E'5.1731 -#define bfd_mach_v850e1 '1'5.1732 - bfd_arch_arc, /* ARC Cores */5.1733 -#define bfd_mach_arc_5 55.1734 -#define bfd_mach_arc_6 65.1735 -#define bfd_mach_arc_7 75.1736 -#define bfd_mach_arc_8 85.1737 - bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D) */5.1738 -#define bfd_mach_m32r 1 /* For backwards compatibility. */5.1739 -#define bfd_mach_m32rx 'x'5.1740 -#define bfd_mach_m32r2 '2'5.1741 - bfd_arch_mn10200, /* Matsushita MN10200 */5.1742 - bfd_arch_mn10300, /* Matsushita MN10300 */5.1743 -#define bfd_mach_mn10300 3005.1744 -#define bfd_mach_am33 3305.1745 -#define bfd_mach_am33_2 3325.1746 - bfd_arch_fr30,5.1747 -#define bfd_mach_fr30 0x465233305.1748 - bfd_arch_frv,5.1749 -#define bfd_mach_frv 15.1750 -#define bfd_mach_frvsimple 25.1751 -#define bfd_mach_fr300 3005.1752 -#define bfd_mach_fr400 4005.1753 -#define bfd_mach_fr450 4505.1754 -#define bfd_mach_frvtomcat 499 /* fr500 prototype */5.1755 -#define bfd_mach_fr500 5005.1756 -#define bfd_mach_fr550 5505.1757 - bfd_arch_mcore,5.1758 - bfd_arch_ia64, /* HP/Intel ia64 */5.1759 -#define bfd_mach_ia64_elf64 645.1760 -#define bfd_mach_ia64_elf32 325.1761 - bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */5.1762 -#define bfd_mach_ip2022 15.1763 -#define bfd_mach_ip2022ext 25.1764 - bfd_arch_iq2000, /* Vitesse IQ2000. */5.1765 -#define bfd_mach_iq2000 15.1766 -#define bfd_mach_iq10 25.1767 - bfd_arch_pj,5.1768 - bfd_arch_avr, /* Atmel AVR microcontrollers. */5.1769 -#define bfd_mach_avr1 15.1770 -#define bfd_mach_avr2 25.1771 -#define bfd_mach_avr3 35.1772 -#define bfd_mach_avr4 45.1773 -#define bfd_mach_avr5 55.1774 - bfd_arch_cr16c, /* National Semiconductor CompactRISC. */5.1775 -#define bfd_mach_cr16c 15.1776 - bfd_arch_crx, /* National Semiconductor CRX. */5.1777 -#define bfd_mach_crx 15.1778 - bfd_arch_cris, /* Axis CRIS */5.1779 -#define bfd_mach_cris_v0_v10 2555.1780 -#define bfd_mach_cris_v32 325.1781 -#define bfd_mach_cris_v10_v32 10325.1782 - bfd_arch_s390, /* IBM s390 */5.1783 -#define bfd_mach_s390_31 315.1784 -#define bfd_mach_s390_64 645.1785 - bfd_arch_openrisc, /* OpenRISC */5.1786 - bfd_arch_mmix, /* Donald Knuth's educational processor. */5.1787 - bfd_arch_xstormy16,5.1788 -#define bfd_mach_xstormy16 15.1789 - bfd_arch_msp430, /* Texas Instruments MSP430 architecture. */5.1790 -#define bfd_mach_msp11 115.1791 -#define bfd_mach_msp110 1105.1792 -#define bfd_mach_msp12 125.1793 -#define bfd_mach_msp13 135.1794 -#define bfd_mach_msp14 145.1795 -#define bfd_mach_msp15 155.1796 -#define bfd_mach_msp16 165.1797 -#define bfd_mach_msp31 315.1798 -#define bfd_mach_msp32 325.1799 -#define bfd_mach_msp33 335.1800 -#define bfd_mach_msp41 415.1801 -#define bfd_mach_msp42 425.1802 -#define bfd_mach_msp43 435.1803 -#define bfd_mach_msp44 445.1804 - bfd_arch_xtensa, /* Tensilica's Xtensa cores. */5.1805 -#define bfd_mach_xtensa 15.1806 - bfd_arch_maxq, /* Dallas MAXQ 10/20 */5.1807 -#define bfd_mach_maxq10 105.1808 -#define bfd_mach_maxq20 205.1809 - bfd_arch_last5.1810 - };5.1811 -5.1812 -typedef struct bfd_arch_info5.1813 -{5.1814 - int bits_per_word;5.1815 - int bits_per_address;5.1816 - int bits_per_byte;5.1817 - enum bfd_architecture arch;5.1818 - unsigned long mach;5.1819 - const char *arch_name;5.1820 - const char *printable_name;5.1821 - unsigned int section_align_power;5.1822 - /* TRUE if this is the default machine for the architecture.5.1823 - The default arch should be the first entry for an arch so that5.1824 - all the entries for that arch can be accessed via <<next>>. */5.1825 - bfd_boolean the_default;5.1826 - const struct bfd_arch_info * (*compatible)5.1827 - (const struct bfd_arch_info *a, const struct bfd_arch_info *b);5.1828 -5.1829 - bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);5.1830 -5.1831 - const struct bfd_arch_info *next;5.1832 -}5.1833 -bfd_arch_info_type;5.1834 -5.1835 -const char *bfd_printable_name (bfd *abfd);5.1836 -5.1837 -const bfd_arch_info_type *bfd_scan_arch (const char *string);5.1838 -5.1839 -const char **bfd_arch_list (void);5.1840 -5.1841 -const bfd_arch_info_type *bfd_arch_get_compatible5.1842 - (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);5.1843 -5.1844 -void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);5.1845 -5.1846 -enum bfd_architecture bfd_get_arch (bfd *abfd);5.1847 -5.1848 -unsigned long bfd_get_mach (bfd *abfd);5.1849 -5.1850 -unsigned int bfd_arch_bits_per_byte (bfd *abfd);5.1851 -5.1852 -unsigned int bfd_arch_bits_per_address (bfd *abfd);5.1853 -5.1854 -const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);5.1855 -5.1856 -const bfd_arch_info_type *bfd_lookup_arch5.1857 - (enum bfd_architecture arch, unsigned long machine);5.1858 -5.1859 -const char *bfd_printable_arch_mach5.1860 - (enum bfd_architecture arch, unsigned long machine);5.1861 -5.1862 -unsigned int bfd_octets_per_byte (bfd *abfd);5.1863 -5.1864 -unsigned int bfd_arch_mach_octets_per_byte5.1865 - (enum bfd_architecture arch, unsigned long machine);5.1866 -5.1867 -/* Extracted from reloc.c. */5.1868 -typedef enum bfd_reloc_status5.1869 -{5.1870 - /* No errors detected. */5.1871 - bfd_reloc_ok,5.1872 -5.1873 - /* The relocation was performed, but there was an overflow. */5.1874 - bfd_reloc_overflow,5.1875 -5.1876 - /* The address to relocate was not within the section supplied. */5.1877 - bfd_reloc_outofrange,5.1878 -5.1879 - /* Used by special functions. */5.1880 - bfd_reloc_continue,5.1881 -5.1882 - /* Unsupported relocation size requested. */5.1883 - bfd_reloc_notsupported,5.1884 -5.1885 - /* Unused. */5.1886 - bfd_reloc_other,5.1887 -5.1888 - /* The symbol to relocate against was undefined. */5.1889 - bfd_reloc_undefined,5.1890 -5.1891 - /* The relocation was performed, but may not be ok - presently5.1892 - generated only when linking i960 coff files with i960 b.out5.1893 - symbols. If this type is returned, the error_message argument5.1894 - to bfd_perform_relocation will be set. */5.1895 - bfd_reloc_dangerous5.1896 - }5.1897 - bfd_reloc_status_type;5.1898 -5.1899 -5.1900 -typedef struct reloc_cache_entry5.1901 -{5.1902 - /* A pointer into the canonical table of pointers. */5.1903 - struct bfd_symbol **sym_ptr_ptr;5.1904 -5.1905 - /* offset in section. */5.1906 - bfd_size_type address;5.1907 -5.1908 - /* addend for relocation value. */5.1909 - bfd_vma addend;5.1910 -5.1911 - /* Pointer to how to perform the required relocation. */5.1912 - reloc_howto_type *howto;5.1913 -5.1914 -}5.1915 -arelent;5.1916 -5.1917 -enum complain_overflow5.1918 -{5.1919 - /* Do not complain on overflow. */5.1920 - complain_overflow_dont,5.1921 -5.1922 - /* Complain if the bitfield overflows, whether it is considered5.1923 - as signed or unsigned. */5.1924 - complain_overflow_bitfield,5.1925 -5.1926 - /* Complain if the value overflows when considered as signed5.1927 - number. */5.1928 - complain_overflow_signed,5.1929 -5.1930 - /* Complain if the value overflows when considered as an5.1931 - unsigned number. */5.1932 - complain_overflow_unsigned5.1933 -};5.1934 -5.1935 -struct reloc_howto_struct5.1936 -{5.1937 - /* The type field has mainly a documentary use - the back end can5.1938 - do what it wants with it, though normally the back end's5.1939 - external idea of what a reloc number is stored5.1940 - in this field. For example, a PC relative word relocation5.1941 - in a coff environment has the type 023 - because that's5.1942 - what the outside world calls a R_PCRWORD reloc. */5.1943 - unsigned int type;5.1944 -5.1945 - /* The value the final relocation is shifted right by. This drops5.1946 - unwanted data from the relocation. */5.1947 - unsigned int rightshift;5.1948 -5.1949 - /* The size of the item to be relocated. This is *not* a5.1950 - power-of-two measure. To get the number of bytes operated5.1951 - on by a type of relocation, use bfd_get_reloc_size. */5.1952 - int size;5.1953 -5.1954 - /* The number of bits in the item to be relocated. This is used5.1955 - when doing overflow checking. */5.1956 - unsigned int bitsize;5.1957 -5.1958 - /* Notes that the relocation is relative to the location in the5.1959 - data section of the addend. The relocation function will5.1960 - subtract from the relocation value the address of the location5.1961 - being relocated. */5.1962 - bfd_boolean pc_relative;5.1963 -5.1964 - /* The bit position of the reloc value in the destination.5.1965 - The relocated value is left shifted by this amount. */5.1966 - unsigned int bitpos;5.1967 -5.1968 - /* What type of overflow error should be checked for when5.1969 - relocating. */5.1970 - enum complain_overflow complain_on_overflow;5.1971 -5.1972 - /* If this field is non null, then the supplied function is5.1973 - called rather than the normal function. This allows really5.1974 - strange relocation methods to be accommodated (e.g., i960 callj5.1975 - instructions). */5.1976 - bfd_reloc_status_type (*special_function)5.1977 - (bfd *, arelent *, struct bfd_symbol *, void *, asection *,5.1978 - bfd *, char **);5.1979 -5.1980 - /* The textual name of the relocation type. */5.1981 - char *name;5.1982 -5.1983 - /* Some formats record a relocation addend in the section contents5.1984 - rather than with the relocation. For ELF formats this is the5.1985 - distinction between USE_REL and USE_RELA (though the code checks5.1986 - for USE_REL == 1/0). The value of this field is TRUE if the5.1987 - addend is recorded with the section contents; when performing a5.1988 - partial link (ld -r) the section contents (the data) will be5.1989 - modified. The value of this field is FALSE if addends are5.1990 - recorded with the relocation (in arelent.addend); when performing5.1991 - a partial link the relocation will be modified.5.1992 - All relocations for all ELF USE_RELA targets should set this field5.1993 - to FALSE (values of TRUE should be looked on with suspicion).5.1994 - However, the converse is not true: not all relocations of all ELF5.1995 - USE_REL targets set this field to TRUE. Why this is so is peculiar5.1996 - to each particular target. For relocs that aren't used in partial5.1997 - links (e.g. GOT stuff) it doesn't matter what this is set to. */5.1998 - bfd_boolean partial_inplace;5.1999 -5.2000 - /* src_mask selects the part of the instruction (or data) to be used5.2001 - in the relocation sum. If the target relocations don't have an5.2002 - addend in the reloc, eg. ELF USE_REL, src_mask will normally equal5.2003 - dst_mask to extract the addend from the section contents. If5.2004 - relocations do have an addend in the reloc, eg. ELF USE_RELA, this5.2005 - field should be zero. Non-zero values for ELF USE_RELA targets are5.2006 - bogus as in those cases the value in the dst_mask part of the5.2007 - section contents should be treated as garbage. */5.2008 - bfd_vma src_mask;5.2009 -5.2010 - /* dst_mask selects which parts of the instruction (or data) are5.2011 - replaced with a relocated value. */5.2012 - bfd_vma dst_mask;5.2013 -5.2014 - /* When some formats create PC relative instructions, they leave5.2015 - the value of the pc of the place being relocated in the offset5.2016 - slot of the instruction, so that a PC relative relocation can5.2017 - be made just by adding in an ordinary offset (e.g., sun3 a.out).5.2018 - Some formats leave the displacement part of an instruction5.2019 - empty (e.g., m88k bcs); this flag signals the fact. */5.2020 - bfd_boolean pcrel_offset;5.2021 -};5.2022 -5.2023 -#define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \5.2024 - { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC }5.2025 -#define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \5.2026 - HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \5.2027 - NAME, FALSE, 0, 0, IN)5.2028 -5.2029 -#define EMPTY_HOWTO(C) \5.2030 - HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \5.2031 - NULL, FALSE, 0, 0, FALSE)5.2032 -5.2033 -#define HOWTO_PREPARE(relocation, symbol) \5.2034 - { \5.2035 - if (symbol != NULL) \5.2036 - { \5.2037 - if (bfd_is_com_section (symbol->section)) \5.2038 - { \5.2039 - relocation = 0; \5.2040 - } \5.2041 - else \5.2042 - { \5.2043 - relocation = symbol->value; \5.2044 - } \5.2045 - } \5.2046 - }5.2047 -5.2048 -unsigned int bfd_get_reloc_size (reloc_howto_type *);5.2049 -5.2050 -typedef struct relent_chain5.2051 -{5.2052 - arelent relent;5.2053 - struct relent_chain *next;5.2054 -}5.2055 -arelent_chain;5.2056 -5.2057 -bfd_reloc_status_type bfd_check_overflow5.2058 - (enum complain_overflow how,5.2059 - unsigned int bitsize,5.2060 - unsigned int rightshift,5.2061 - unsigned int addrsize,5.2062 - bfd_vma relocation);5.2063 -5.2064 -bfd_reloc_status_type bfd_perform_relocation5.2065 - (bfd *abfd,5.2066 - arelent *reloc_entry,5.2067 - void *data,5.2068 - asection *input_section,5.2069 - bfd *output_bfd,5.2070 - char **error_message);5.2071 -5.2072 -bfd_reloc_status_type bfd_install_relocation5.2073 - (bfd *abfd,5.2074 - arelent *reloc_entry,5.2075 - void *data, bfd_vma data_start,5.2076 - asection *input_section,5.2077 - char **error_message);5.2078 -5.2079 -enum bfd_reloc_code_real {5.2080 - _dummy_first_bfd_reloc_code_real,5.2081 -5.2082 -5.2083 -/* Basic absolute relocations of N bits. */5.2084 - BFD_RELOC_64,5.2085 - BFD_RELOC_32,5.2086 - BFD_RELOC_26,5.2087 - BFD_RELOC_24,5.2088 - BFD_RELOC_16,5.2089 - BFD_RELOC_14,5.2090 - BFD_RELOC_8,5.2091 -5.2092 -/* PC-relative relocations. Sometimes these are relative to the address5.2093 -of the relocation itself; sometimes they are relative to the start of5.2094 -the section containing the relocation. It depends on the specific target.5.2095 -5.2096 -The 24-bit relocation is used in some Intel 960 configurations. */5.2097 - BFD_RELOC_64_PCREL,5.2098 - BFD_RELOC_32_PCREL,5.2099 - BFD_RELOC_24_PCREL,5.2100 - BFD_RELOC_16_PCREL,5.2101 - BFD_RELOC_12_PCREL,5.2102 - BFD_RELOC_8_PCREL,5.2103 -5.2104 -/* Section relative relocations. Some targets need this for DWARF2. */5.2105 - BFD_RELOC_32_SECREL,5.2106 -5.2107 -/* For ELF. */5.2108 - BFD_RELOC_32_GOT_PCREL,5.2109 - BFD_RELOC_16_GOT_PCREL,5.2110 - BFD_RELOC_8_GOT_PCREL,5.2111 - BFD_RELOC_32_GOTOFF,5.2112 - BFD_RELOC_16_GOTOFF,5.2113 - BFD_RELOC_LO16_GOTOFF,5.2114 - BFD_RELOC_HI16_GOTOFF,5.2115 - BFD_RELOC_HI16_S_GOTOFF,5.2116 - BFD_RELOC_8_GOTOFF,5.2117 - BFD_RELOC_64_PLT_PCREL,5.2118 - BFD_RELOC_32_PLT_PCREL,5.2119 - BFD_RELOC_24_PLT_PCREL,5.2120 - BFD_RELOC_16_PLT_PCREL,5.2121 - BFD_RELOC_8_PLT_PCREL,5.2122 - BFD_RELOC_64_PLTOFF,5.2123 - BFD_RELOC_32_PLTOFF,5.2124 - BFD_RELOC_16_PLTOFF,5.2125 - BFD_RELOC_LO16_PLTOFF,5.2126 - BFD_RELOC_HI16_PLTOFF,5.2127 - BFD_RELOC_HI16_S_PLTOFF,5.2128 - BFD_RELOC_8_PLTOFF,5.2129 -5.2130 -/* Relocations used by 68K ELF. */5.2131 - BFD_RELOC_68K_GLOB_DAT,5.2132 - BFD_RELOC_68K_JMP_SLOT,5.2133 - BFD_RELOC_68K_RELATIVE,5.2134 -5.2135 -/* Linkage-table relative. */5.2136 - BFD_RELOC_32_BASEREL,5.2137 - BFD_RELOC_16_BASEREL,5.2138 - BFD_RELOC_LO16_BASEREL,5.2139 - BFD_RELOC_HI16_BASEREL,5.2140 - BFD_RELOC_HI16_S_BASEREL,5.2141 - BFD_RELOC_8_BASEREL,5.2142 - BFD_RELOC_RVA,5.2143 -5.2144 -/* Absolute 8-bit relocation, but used to form an address like 0xFFnn. */5.2145 - BFD_RELOC_8_FFnn,5.2146 -5.2147 -/* These PC-relative relocations are stored as word displacements --5.2148 -i.e., byte displacements shifted right two bits. The 30-bit word5.2149 -displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the5.2150 -SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The5.2151 -signed 16-bit displacement is used on the MIPS, and the 23-bit5.2152 -displacement is used on the Alpha. */5.2153 - BFD_RELOC_32_PCREL_S2,5.2154 - BFD_RELOC_16_PCREL_S2,5.2155 - BFD_RELOC_23_PCREL_S2,5.2156 -5.2157 -/* High 22 bits and low 10 bits of 32-bit value, placed into lower bits of5.2158 -the target word. These are used on the SPARC. */5.2159 - BFD_RELOC_HI22,5.2160 - BFD_RELOC_LO10,5.2161 -5.2162 -/* For systems that allocate a Global Pointer register, these are5.2163 -displacements off that register. These relocation types are5.2164 -handled specially, because the value the register will have is5.2165 -decided relatively late. */5.2166 - BFD_RELOC_GPREL16,5.2167 - BFD_RELOC_GPREL32,5.2168 -5.2169 -/* Reloc types used for i960/b.out. */5.2170 - BFD_RELOC_I960_CALLJ,5.2171 -5.2172 -/* SPARC ELF relocations. There is probably some overlap with other5.2173 -relocation types already defined. */5.2174 - BFD_RELOC_NONE,5.2175 - BFD_RELOC_SPARC_WDISP22,5.2176 - BFD_RELOC_SPARC22,5.2177 - BFD_RELOC_SPARC13,5.2178 - BFD_RELOC_SPARC_GOT10,5.2179 - BFD_RELOC_SPARC_GOT13,5.2180 - BFD_RELOC_SPARC_GOT22,5.2181 - BFD_RELOC_SPARC_PC10,5.2182 - BFD_RELOC_SPARC_PC22,5.2183 - BFD_RELOC_SPARC_WPLT30,5.2184 - BFD_RELOC_SPARC_COPY,5.2185 - BFD_RELOC_SPARC_GLOB_DAT,5.2186 - BFD_RELOC_SPARC_JMP_SLOT,5.2187 - BFD_RELOC_SPARC_RELATIVE,5.2188 - BFD_RELOC_SPARC_UA16,5.2189 - BFD_RELOC_SPARC_UA32,5.2190 - BFD_RELOC_SPARC_UA64,5.2191 -5.2192 -/* I think these are specific to SPARC a.out (e.g., Sun 4). */5.2193 - BFD_RELOC_SPARC_BASE13,5.2194 - BFD_RELOC_SPARC_BASE22,5.2195 -5.2196 -/* SPARC64 relocations */5.2197 -#define BFD_RELOC_SPARC_64 BFD_RELOC_645.2198 - BFD_RELOC_SPARC_10,5.2199 - BFD_RELOC_SPARC_11,5.2200 - BFD_RELOC_SPARC_OLO10,5.2201 - BFD_RELOC_SPARC_HH22,5.2202 - BFD_RELOC_SPARC_HM10,5.2203 - BFD_RELOC_SPARC_LM22,5.2204 - BFD_RELOC_SPARC_PC_HH22,5.2205 - BFD_RELOC_SPARC_PC_HM10,5.2206 - BFD_RELOC_SPARC_PC_LM22,5.2207 - BFD_RELOC_SPARC_WDISP16,5.2208 - BFD_RELOC_SPARC_WDISP19,5.2209 - BFD_RELOC_SPARC_7,5.2210 - BFD_RELOC_SPARC_6,5.2211 - BFD_RELOC_SPARC_5,5.2212 -#define BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL5.2213 - BFD_RELOC_SPARC_PLT32,5.2214 - BFD_RELOC_SPARC_PLT64,5.2215 - BFD_RELOC_SPARC_HIX22,5.2216 - BFD_RELOC_SPARC_LOX10,5.2217 - BFD_RELOC_SPARC_H44,5.2218 - BFD_RELOC_SPARC_M44,5.2219 - BFD_RELOC_SPARC_L44,5.2220 - BFD_RELOC_SPARC_REGISTER,5.2221 -5.2222 -/* SPARC little endian relocation */5.2223 - BFD_RELOC_SPARC_REV32,5.2224 -5.2225 -/* SPARC TLS relocations */5.2226 - BFD_RELOC_SPARC_TLS_GD_HI22,5.2227 - BFD_RELOC_SPARC_TLS_GD_LO10,5.2228 - BFD_RELOC_SPARC_TLS_GD_ADD,5.2229 - BFD_RELOC_SPARC_TLS_GD_CALL,5.2230 - BFD_RELOC_SPARC_TLS_LDM_HI22,5.2231 - BFD_RELOC_SPARC_TLS_LDM_LO10,5.2232 - BFD_RELOC_SPARC_TLS_LDM_ADD,5.2233 - BFD_RELOC_SPARC_TLS_LDM_CALL,5.2234 - BFD_RELOC_SPARC_TLS_LDO_HIX22,5.2235 - BFD_RELOC_SPARC_TLS_LDO_LOX10,5.2236 - BFD_RELOC_SPARC_TLS_LDO_ADD,5.2237 - BFD_RELOC_SPARC_TLS_IE_HI22,5.2238 - BFD_RELOC_SPARC_TLS_IE_LO10,5.2239 - BFD_RELOC_SPARC_TLS_IE_LD,5.2240 - BFD_RELOC_SPARC_TLS_IE_LDX,5.2241 - BFD_RELOC_SPARC_TLS_IE_ADD,5.2242 - BFD_RELOC_SPARC_TLS_LE_HIX22,5.2243 - BFD_RELOC_SPARC_TLS_LE_LOX10,5.2244 - BFD_RELOC_SPARC_TLS_DTPMOD32,5.2245 - BFD_RELOC_SPARC_TLS_DTPMOD64,5.2246 - BFD_RELOC_SPARC_TLS_DTPOFF32,5.2247 - BFD_RELOC_SPARC_TLS_DTPOFF64,5.2248 - BFD_RELOC_SPARC_TLS_TPOFF32,5.2249 - BFD_RELOC_SPARC_TLS_TPOFF64,5.2250 -5.2251 -/* Alpha ECOFF and ELF relocations. Some of these treat the symbol or5.2252 -"addend" in some special way.5.2253 -For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when5.2254 -writing; when reading, it will be the absolute section symbol. The5.2255 -addend is the displacement in bytes of the "lda" instruction from5.2256 -the "ldah" instruction (which is at the address of this reloc). */5.2257 - BFD_RELOC_ALPHA_GPDISP_HI16,5.2258 -5.2259 -/* For GPDISP_LO16 ("ignore") relocations, the symbol is handled as5.2260 -with GPDISP_HI16 relocs. The addend is ignored when writing the5.2261 -relocations out, and is filled in with the file's GP value on5.2262 -reading, for convenience. */5.2263 - BFD_RELOC_ALPHA_GPDISP_LO16,5.2264 -5.2265 -/* The ELF GPDISP relocation is exactly the same as the GPDISP_HI165.2266 -relocation except that there is no accompanying GPDISP_LO165.2267 -relocation. */5.2268 - BFD_RELOC_ALPHA_GPDISP,5.2269 -5.2270 -/* The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;5.2271 -the assembler turns it into a LDQ instruction to load the address of5.2272 -the symbol, and then fills in a register in the real instruction.5.2273 -5.2274 -The LITERAL reloc, at the LDQ instruction, refers to the .lita5.2275 -section symbol. The addend is ignored when writing, but is filled5.2276 -in with the file's GP value on reading, for convenience, as with the5.2277 -GPDISP_LO16 reloc.5.2278 -5.2279 -The ELF_LITERAL reloc is somewhere between 16_GOTOFF and GPDISP_LO16.5.2280 -It should refer to the symbol to be referenced, as with 16_GOTOFF,5.2281 -but it generates output not based on the position within the .got5.2282 -section, but relative to the GP value chosen for the file during the5.2283 -final link stage.5.2284 -5.2285 -The LITUSE reloc, on the instruction using the loaded address, gives5.2286 -information to the linker that it might be able to use to optimize5.2287 -away some literal section references. The symbol is ignored (read5.2288 -as the absolute section symbol), and the "addend" indicates the type5.2289 -of instruction using the register:5.2290 -1 - "memory" fmt insn5.2291 -2 - byte-manipulation (byte offset reg)5.2292 -3 - jsr (target of branch) */5.2293 - BFD_RELOC_ALPHA_LITERAL,5.2294 - BFD_RELOC_ALPHA_ELF_LITERAL,5.2295 - BFD_RELOC_ALPHA_LITUSE,5.2296 -5.2297 -/* The HINT relocation indicates a value that should be filled into the5.2298 -"hint" field of a jmp/jsr/ret instruction, for possible branch-5.2299 -prediction logic which may be provided on some processors. */5.2300 - BFD_RELOC_ALPHA_HINT,5.2301 -5.2302 -/* The LINKAGE relocation outputs a linkage pair in the object file,5.2303 -which is filled by the linker. */5.2304 - BFD_RELOC_ALPHA_LINKAGE,5.2305 -5.2306 -/* The CODEADDR relocation outputs a STO_CA in the object file,5.2307 -which is filled by the linker. */5.2308 - BFD_RELOC_ALPHA_CODEADDR,5.2309 -5.2310 -/* The GPREL_HI/LO relocations together form a 32-bit offset from the5.2311 -GP register. */5.2312 - BFD_RELOC_ALPHA_GPREL_HI16,5.2313 - BFD_RELOC_ALPHA_GPREL_LO16,5.2314 -5.2315 -/* Like BFD_RELOC_23_PCREL_S2, except that the source and target must5.2316 -share a common GP, and the target address is adjusted for5.2317 -STO_ALPHA_STD_GPLOAD. */5.2318 - BFD_RELOC_ALPHA_BRSGP,5.2319 -5.2320 -/* Alpha thread-local storage relocations. */5.2321 - BFD_RELOC_ALPHA_TLSGD,5.2322 - BFD_RELOC_ALPHA_TLSLDM,5.2323 - BFD_RELOC_ALPHA_DTPMOD64,5.2324 - BFD_RELOC_ALPHA_GOTDTPREL16,5.2325 - BFD_RELOC_ALPHA_DTPREL64,5.2326 - BFD_RELOC_ALPHA_DTPREL_HI16,5.2327 - BFD_RELOC_ALPHA_DTPREL_LO16,5.2328 - BFD_RELOC_ALPHA_DTPREL16,5.2329 - BFD_RELOC_ALPHA_GOTTPREL16,5.2330 - BFD_RELOC_ALPHA_TPREL64,5.2331 - BFD_RELOC_ALPHA_TPREL_HI16,5.2332 - BFD_RELOC_ALPHA_TPREL_LO16,5.2333 - BFD_RELOC_ALPHA_TPREL16,5.2334 -5.2335 -/* Bits 27..2 of the relocation address shifted right 2 bits;5.2336 -simple reloc otherwise. */5.2337 - BFD_RELOC_MIPS_JMP,5.2338 -5.2339 -/* The MIPS16 jump instruction. */5.2340 - BFD_RELOC_MIPS16_JMP,5.2341 -5.2342 -/* MIPS16 GP relative reloc. */5.2343 - BFD_RELOC_MIPS16_GPREL,5.2344 -5.2345 -/* High 16 bits of 32-bit value; simple reloc. */5.2346 - BFD_RELOC_HI16,5.2347 -5.2348 -/* High 16 bits of 32-bit value but the low 16 bits will be sign5.2349 -extended and added to form the final result. If the low 165.2350 -bits form a negative number, we need to add one to the high value5.2351 -to compensate for the borrow when the low bits are added. */5.2352 - BFD_RELOC_HI16_S,5.2353 -5.2354 -/* Low 16 bits. */5.2355 - BFD_RELOC_LO16,5.2356 -5.2357 -/* MIPS16 high 16 bits of 32-bit value. */5.2358 - BFD_RELOC_MIPS16_HI16,5.2359 -5.2360 -/* MIPS16 high 16 bits of 32-bit value but the low 16 bits will be sign5.2361 -extended and added to form the final result. If the low 165.2362 -bits form a negative number, we need to add one to the high value5.2363 -to compensate for the borrow when the low bits are added. */5.2364 - BFD_RELOC_MIPS16_HI16_S,5.2365 -5.2366 -/* MIPS16 low 16 bits. */5.2367 - BFD_RELOC_MIPS16_LO16,5.2368 -5.2369 -/* Relocation against a MIPS literal section. */5.2370 - BFD_RELOC_MIPS_LITERAL,5.2371 -5.2372 -/* MIPS ELF relocations. */5.2373 - BFD_RELOC_MIPS_GOT16,5.2374 - BFD_RELOC_MIPS_CALL16,5.2375 - BFD_RELOC_MIPS_GOT_HI16,5.2376 - BFD_RELOC_MIPS_GOT_LO16,5.2377 - BFD_RELOC_MIPS_CALL_HI16,5.2378 - BFD_RELOC_MIPS_CALL_LO16,5.2379 - BFD_RELOC_MIPS_SUB,5.2380 - BFD_RELOC_MIPS_GOT_PAGE,5.2381 - BFD_RELOC_MIPS_GOT_OFST,5.2382 - BFD_RELOC_MIPS_GOT_DISP,5.2383 - BFD_RELOC_MIPS_SHIFT5,5.2384 - BFD_RELOC_MIPS_SHIFT6,5.2385 - BFD_RELOC_MIPS_INSERT_A,5.2386 - BFD_RELOC_MIPS_INSERT_B,5.2387 - BFD_RELOC_MIPS_DELETE,5.2388 - BFD_RELOC_MIPS_HIGHEST,5.2389 - BFD_RELOC_MIPS_HIGHER,5.2390 - BFD_RELOC_MIPS_SCN_DISP,5.2391 - BFD_RELOC_MIPS_REL16,5.2392 - BFD_RELOC_MIPS_RELGOT,5.2393 - BFD_RELOC_MIPS_JALR,5.2394 - BFD_RELOC_MIPS_TLS_DTPMOD32,5.2395 - BFD_RELOC_MIPS_TLS_DTPREL32,5.2396 - BFD_RELOC_MIPS_TLS_DTPMOD64,5.2397 - BFD_RELOC_MIPS_TLS_DTPREL64,5.2398 - BFD_RELOC_MIPS_TLS_GD,5.2399 - BFD_RELOC_MIPS_TLS_LDM,5.2400 - BFD_RELOC_MIPS_TLS_DTPREL_HI16,5.2401 - BFD_RELOC_MIPS_TLS_DTPREL_LO16,5.2402 - BFD_RELOC_MIPS_TLS_GOTTPREL,5.2403 - BFD_RELOC_MIPS_TLS_TPREL32,5.2404 - BFD_RELOC_MIPS_TLS_TPREL64,5.2405 - BFD_RELOC_MIPS_TLS_TPREL_HI16,5.2406 - BFD_RELOC_MIPS_TLS_TPREL_LO16,5.2407 -5.2408 -5.2409 -/* Fujitsu Frv Relocations. */5.2410 - BFD_RELOC_FRV_LABEL16,5.2411 - BFD_RELOC_FRV_LABEL24,5.2412 - BFD_RELOC_FRV_LO16,5.2413 - BFD_RELOC_FRV_HI16,5.2414 - BFD_RELOC_FRV_GPREL12,5.2415 - BFD_RELOC_FRV_GPRELU12,5.2416 - BFD_RELOC_FRV_GPREL32,5.2417 - BFD_RELOC_FRV_GPRELHI,5.2418 - BFD_RELOC_FRV_GPRELLO,5.2419 - BFD_RELOC_FRV_GOT12,5.2420 - BFD_RELOC_FRV_GOTHI,5.2421 - BFD_RELOC_FRV_GOTLO,5.2422 - BFD_RELOC_FRV_FUNCDESC,5.2423 - BFD_RELOC_FRV_FUNCDESC_GOT12,5.2424 - BFD_RELOC_FRV_FUNCDESC_GOTHI,5.2425 - BFD_RELOC_FRV_FUNCDESC_GOTLO,5.2426 - BFD_RELOC_FRV_FUNCDESC_VALUE,5.2427 - BFD_RELOC_FRV_FUNCDESC_GOTOFF12,5.2428 - BFD_RELOC_FRV_FUNCDESC_GOTOFFHI,5.2429 - BFD_RELOC_FRV_FUNCDESC_GOTOFFLO,5.2430 - BFD_RELOC_FRV_GOTOFF12,5.2431 - BFD_RELOC_FRV_GOTOFFHI,5.2432 - BFD_RELOC_FRV_GOTOFFLO,5.2433 - BFD_RELOC_FRV_GETTLSOFF,5.2434 - BFD_RELOC_FRV_TLSDESC_VALUE,5.2435 - BFD_RELOC_FRV_GOTTLSDESC12,5.2436 - BFD_RELOC_FRV_GOTTLSDESCHI,5.2437 - BFD_RELOC_FRV_GOTTLSDESCLO,5.2438 - BFD_RELOC_FRV_TLSMOFF12,5.2439 - BFD_RELOC_FRV_TLSMOFFHI,5.2440 - BFD_RELOC_FRV_TLSMOFFLO,5.2441 - BFD_RELOC_FRV_GOTTLSOFF12,5.2442 - BFD_RELOC_FRV_GOTTLSOFFHI,5.2443 - BFD_RELOC_FRV_GOTTLSOFFLO,5.2444 - BFD_RELOC_FRV_TLSOFF,5.2445 - BFD_RELOC_FRV_TLSDESC_RELAX,5.2446 - BFD_RELOC_FRV_GETTLSOFF_RELAX,5.2447 - BFD_RELOC_FRV_TLSOFF_RELAX,5.2448 - BFD_RELOC_FRV_TLSMOFF,5.2449 -5.2450 -5.2451 -/* This is a 24bit GOT-relative reloc for the mn10300. */5.2452 - BFD_RELOC_MN10300_GOTOFF24,5.2453 -5.2454 -/* This is a 32bit GOT-relative reloc for the mn10300, offset by two bytes5.2455 -in the instruction. */5.2456 - BFD_RELOC_MN10300_GOT32,5.2457 -5.2458 -/* This is a 24bit GOT-relative reloc for the mn10300, offset by two bytes5.2459 -in the instruction. */5.2460 - BFD_RELOC_MN10300_GOT24,5.2461 -5.2462 -/* This is a 16bit GOT-relative reloc for the mn10300, offset by two bytes5.2463 -in the instruction. */5.2464 - BFD_RELOC_MN10300_GOT16,5.2465 -5.2466 -/* Copy symbol at runtime. */5.2467 - BFD_RELOC_MN10300_COPY,5.2468 -5.2469 -/* Create GOT entry. */5.2470 - BFD_RELOC_MN10300_GLOB_DAT,5.2471 -5.2472 -/* Create PLT entry. */5.2473 - BFD_RELOC_MN10300_JMP_SLOT,5.2474 -5.2475 -/* Adjust by program base. */5.2476 - BFD_RELOC_MN10300_RELATIVE,5.2477 -5.2478 -5.2479 -/* i386/elf relocations */5.2480 - BFD_RELOC_386_GOT32,5.2481 - BFD_RELOC_386_PLT32,5.2482 - BFD_RELOC_386_COPY,5.2483 - BFD_RELOC_386_GLOB_DAT,5.2484 - BFD_RELOC_386_JUMP_SLOT,5.2485 - BFD_RELOC_386_RELATIVE,5.2486 - BFD_RELOC_386_GOTOFF,5.2487 - BFD_RELOC_386_GOTPC,5.2488 - BFD_RELOC_386_TLS_TPOFF,5.2489 - BFD_RELOC_386_TLS_IE,5.2490 - BFD_RELOC_386_TLS_GOTIE,5.2491 - BFD_RELOC_386_TLS_LE,5.2492 - BFD_RELOC_386_TLS_GD,5.2493 - BFD_RELOC_386_TLS_LDM,5.2494 - BFD_RELOC_386_TLS_LDO_32,5.2495 - BFD_RELOC_386_TLS_IE_32,5.2496 - BFD_RELOC_386_TLS_LE_32,5.2497 - BFD_RELOC_386_TLS_DTPMOD32,5.2498 - BFD_RELOC_386_TLS_DTPOFF32,5.2499 - BFD_RELOC_386_TLS_TPOFF32,5.2500 -5.2501 -/* x86-64/elf relocations */5.2502 - BFD_RELOC_X86_64_GOT32,5.2503 - BFD_RELOC_X86_64_PLT32,5.2504 - BFD_RELOC_X86_64_COPY,5.2505 - BFD_RELOC_X86_64_GLOB_DAT,5.2506 - BFD_RELOC_X86_64_JUMP_SLOT,5.2507 - BFD_RELOC_X86_64_RELATIVE,5.2508 - BFD_RELOC_X86_64_GOTPCREL,5.2509 - BFD_RELOC_X86_64_32S,5.2510 - BFD_RELOC_X86_64_DTPMOD64,5.2511 - BFD_RELOC_X86_64_DTPOFF64,5.2512 - BFD_RELOC_X86_64_TPOFF64,5.2513 - BFD_RELOC_X86_64_TLSGD,5.2514 - BFD_RELOC_X86_64_TLSLD,5.2515 - BFD_RELOC_X86_64_DTPOFF32,5.2516 - BFD_RELOC_X86_64_GOTTPOFF,5.2517 - BFD_RELOC_X86_64_TPOFF32,5.2518 -5.2519 -/* ns32k relocations */5.2520 - BFD_RELOC_NS32K_IMM_8,5.2521 - BFD_RELOC_NS32K_IMM_16,5.2522 - BFD_RELOC_NS32K_IMM_32,5.2523 - BFD_RELOC_NS32K_IMM_8_PCREL,5.2524 - BFD_RELOC_NS32K_IMM_16_PCREL,5.2525 - BFD_RELOC_NS32K_IMM_32_PCREL,5.2526 - BFD_RELOC_NS32K_DISP_8,5.2527 - BFD_RELOC_NS32K_DISP_16,5.2528 - BFD_RELOC_NS32K_DISP_32,5.2529 - BFD_RELOC_NS32K_DISP_8_PCREL,5.2530 - BFD_RELOC_NS32K_DISP_16_PCREL,5.2531 - BFD_RELOC_NS32K_DISP_32_PCREL,5.2532 -5.2533 -/* PDP11 relocations */5.2534 - BFD_RELOC_PDP11_DISP_8_PCREL,5.2535 - BFD_RELOC_PDP11_DISP_6_PCREL,5.2536 -5.2537 -/* Picojava relocs. Not all of these appear in object files. */5.2538 - BFD_RELOC_PJ_CODE_HI16,5.2539 - BFD_RELOC_PJ_CODE_LO16,5.2540 - BFD_RELOC_PJ_CODE_DIR16,5.2541 - BFD_RELOC_PJ_CODE_DIR32,5.2542 - BFD_RELOC_PJ_CODE_REL16,5.2543 - BFD_RELOC_PJ_CODE_REL32,5.2544 -5.2545 -/* Power(rs6000) and PowerPC relocations. */5.2546 - BFD_RELOC_PPC_B26,5.2547 - BFD_RELOC_PPC_BA26,5.2548 - BFD_RELOC_PPC_TOC16,5.2549 - BFD_RELOC_PPC_B16,5.2550 - BFD_RELOC_PPC_B16_BRTAKEN,5.2551 - BFD_RELOC_PPC_B16_BRNTAKEN,5.2552 - BFD_RELOC_PPC_BA16,5.2553 - BFD_RELOC_PPC_BA16_BRTAKEN,5.2554 - BFD_RELOC_PPC_BA16_BRNTAKEN,5.2555 - BFD_RELOC_PPC_COPY,5.2556 - BFD_RELOC_PPC_GLOB_DAT,5.2557 - BFD_RELOC_PPC_JMP_SLOT,5.2558 - BFD_RELOC_PPC_RELATIVE,5.2559 - BFD_RELOC_PPC_LOCAL24PC,5.2560 - BFD_RELOC_PPC_EMB_NADDR32,5.2561 - BFD_RELOC_PPC_EMB_NADDR16,5.2562 - BFD_RELOC_PPC_EMB_NADDR16_LO,5.2563 - BFD_RELOC_PPC_EMB_NADDR16_HI,5.2564 - BFD_RELOC_PPC_EMB_NADDR16_HA,5.2565 - BFD_RELOC_PPC_EMB_SDAI16,5.2566 - BFD_RELOC_PPC_EMB_SDA2I16,5.2567 - BFD_RELOC_PPC_EMB_SDA2REL,5.2568 - BFD_RELOC_PPC_EMB_SDA21,5.2569 - BFD_RELOC_PPC_EMB_MRKREF,5.2570 - BFD_RELOC_PPC_EMB_RELSEC16,5.2571 - BFD_RELOC_PPC_EMB_RELST_LO,5.2572 - BFD_RELOC_PPC_EMB_RELST_HI,5.2573 - BFD_RELOC_PPC_EMB_RELST_HA,5.2574 - BFD_RELOC_PPC_EMB_BIT_FLD,5.2575 - BFD_RELOC_PPC_EMB_RELSDA,5.2576 - BFD_RELOC_PPC64_HIGHER,5.2577 - BFD_RELOC_PPC64_HIGHER_S,5.2578 - BFD_RELOC_PPC64_HIGHEST,5.2579 - BFD_RELOC_PPC64_HIGHEST_S,5.2580 - BFD_RELOC_PPC64_TOC16_LO,5.2581 - BFD_RELOC_PPC64_TOC16_HI,5.2582 - BFD_RELOC_PPC64_TOC16_HA,5.2583 - BFD_RELOC_PPC64_TOC,5.2584 - BFD_RELOC_PPC64_PLTGOT16,5.2585 - BFD_RELOC_PPC64_PLTGOT16_LO,5.2586 - BFD_RELOC_PPC64_PLTGOT16_HI,5.2587 - BFD_RELOC_PPC64_PLTGOT16_HA,5.2588 - BFD_RELOC_PPC64_ADDR16_DS,5.2589 - BFD_RELOC_PPC64_ADDR16_LO_DS,5.2590 - BFD_RELOC_PPC64_GOT16_DS,5.2591 - BFD_RELOC_PPC64_GOT16_LO_DS,5.2592 - BFD_RELOC_PPC64_PLT16_LO_DS,5.2593 - BFD_RELOC_PPC64_SECTOFF_DS,5.2594 - BFD_RELOC_PPC64_SECTOFF_LO_DS,5.2595 - BFD_RELOC_PPC64_TOC16_DS,5.2596 - BFD_RELOC_PPC64_TOC16_LO_DS,5.2597 - BFD_RELOC_PPC64_PLTGOT16_DS,5.2598 - BFD_RELOC_PPC64_PLTGOT16_LO_DS,5.2599 -5.2600 -/* PowerPC and PowerPC64 thread-local storage relocations. */5.2601 - BFD_RELOC_PPC_TLS,5.2602 - BFD_RELOC_PPC_DTPMOD,5.2603 - BFD_RELOC_PPC_TPREL16,5.2604 - BFD_RELOC_PPC_TPREL16_LO,5.2605 - BFD_RELOC_PPC_TPREL16_HI,5.2606 - BFD_RELOC_PPC_TPREL16_HA,5.2607 - BFD_RELOC_PPC_TPREL,5.2608 - BFD_RELOC_PPC_DTPREL16,5.2609 - BFD_RELOC_PPC_DTPREL16_LO,5.2610 - BFD_RELOC_PPC_DTPREL16_HI,5.2611 - BFD_RELOC_PPC_DTPREL16_HA,5.2612 - BFD_RELOC_PPC_DTPREL,5.2613 - BFD_RELOC_PPC_GOT_TLSGD16,5.2614 - BFD_RELOC_PPC_GOT_TLSGD16_LO,5.2615 - BFD_RELOC_PPC_GOT_TLSGD16_HI,5.2616 - BFD_RELOC_PPC_GOT_TLSGD16_HA,5.2617 - BFD_RELOC_PPC_GOT_TLSLD16,5.2618 - BFD_RELOC_PPC_GOT_TLSLD16_LO,5.2619 - BFD_RELOC_PPC_GOT_TLSLD16_HI,5.2620 - BFD_RELOC_PPC_GOT_TLSLD16_HA,5.2621 - BFD_RELOC_PPC_GOT_TPREL16,5.2622 - BFD_RELOC_PPC_GOT_TPREL16_LO,5.2623 - BFD_RELOC_PPC_GOT_TPREL16_HI,5.2624 - BFD_RELOC_PPC_GOT_TPREL16_HA,5.2625 - BFD_RELOC_PPC_GOT_DTPREL16,5.2626 - BFD_RELOC_PPC_GOT_DTPREL16_LO,5.2627 - BFD_RELOC_PPC_GOT_DTPREL16_HI,5.2628 - BFD_RELOC_PPC_GOT_DTPREL16_HA,5.2629 - BFD_RELOC_PPC64_TPREL16_DS,5.2630 - BFD_RELOC_PPC64_TPREL16_LO_DS,5.2631 - BFD_RELOC_PPC64_TPREL16_HIGHER,5.2632 - BFD_RELOC_PPC64_TPREL16_HIGHERA,5.2633 - BFD_RELOC_PPC64_TPREL16_HIGHEST,5.2634 - BFD_RELOC_PPC64_TPREL16_HIGHESTA,5.2635 - BFD_RELOC_PPC64_DTPREL16_DS,5.2636 - BFD_RELOC_PPC64_DTPREL16_LO_DS,5.2637 - BFD_RELOC_PPC64_DTPREL16_HIGHER,5.2638 - BFD_RELOC_PPC64_DTPREL16_HIGHERA,5.2639 - BFD_RELOC_PPC64_DTPREL16_HIGHEST,5.2640 - BFD_RELOC_PPC64_DTPREL16_HIGHESTA,5.2641 -5.2642 -/* IBM 370/390 relocations */5.2643 - BFD_RELOC_I370_D12,5.2644 -5.2645 -/* The type of reloc used to build a constructor table - at the moment5.2646 -probably a 32 bit wide absolute relocation, but the target can choose.5.2647 -It generally does map to one of the other relocation types. */5.2648 - BFD_RELOC_CTOR,5.2649 -5.2650 -/* ARM 26 bit pc-relative branch. The lowest two bits must be zero and are5.2651 -not stored in the instruction. */5.2652 - BFD_RELOC_ARM_PCREL_BRANCH,5.2653 -5.2654 -/* ARM 26 bit pc-relative branch. The lowest bit must be zero and is5.2655 -not stored in the instruction. The 2nd lowest bit comes from a 1 bit5.2656 -field in the instruction. */5.2657 - BFD_RELOC_ARM_PCREL_BLX,5.2658 -5.2659 -/* Thumb 22 bit pc-relative branch. The lowest bit must be zero and is5.2660 -not stored in the instruction. The 2nd lowest bit comes from a 1 bit5.2661 -field in the instruction. */5.2662 - BFD_RELOC_THUMB_PCREL_BLX,5.2663 -5.2664 -/* These relocs are only used within the ARM assembler. They are not5.2665 -(at present) written to any object files. */5.2666 - BFD_RELOC_ARM_IMMEDIATE,5.2667 - BFD_RELOC_ARM_ADRL_IMMEDIATE,5.2668 - BFD_RELOC_ARM_OFFSET_IMM,5.2669 - BFD_RELOC_ARM_SHIFT_IMM,5.2670 - BFD_RELOC_ARM_SMI,5.2671 - BFD_RELOC_ARM_SWI,5.2672 - BFD_RELOC_ARM_MULTI,5.2673 - BFD_RELOC_ARM_CP_OFF_IMM,5.2674 - BFD_RELOC_ARM_CP_OFF_IMM_S2,5.2675 - BFD_RELOC_ARM_ADR_IMM,5.2676 - BFD_RELOC_ARM_LDR_IMM,5.2677 - BFD_RELOC_ARM_LITERAL,5.2678 - BFD_RELOC_ARM_IN_POOL,5.2679 - BFD_RELOC_ARM_OFFSET_IMM8,5.2680 - BFD_RELOC_ARM_HWLITERAL,5.2681 - BFD_RELOC_ARM_THUMB_ADD,5.2682 - BFD_RELOC_ARM_THUMB_IMM,5.2683 - BFD_RELOC_ARM_THUMB_SHIFT,5.2684 - BFD_RELOC_ARM_THUMB_OFFSET,5.2685 - BFD_RELOC_ARM_GOT12,5.2686 - BFD_RELOC_ARM_GOT32,5.2687 - BFD_RELOC_ARM_JUMP_SLOT,5.2688 - BFD_RELOC_ARM_COPY,5.2689 - BFD_RELOC_ARM_GLOB_DAT,5.2690 - BFD_RELOC_ARM_PLT32,5.2691 - BFD_RELOC_ARM_RELATIVE,5.2692 - BFD_RELOC_ARM_GOTOFF,5.2693 - BFD_RELOC_ARM_GOTPC,5.2694 -5.2695 -/* Pc-relative or absolute relocation depending on target. Used for5.2696 -entries in .init_array sections. */5.2697 - BFD_RELOC_ARM_TARGET1,5.2698 -5.2699 -/* Read-only segment base relative address. */5.2700 - BFD_RELOC_ARM_ROSEGREL32,5.2701 -5.2702 -/* Data segment base relative address. */5.2703 - BFD_RELOC_ARM_SBREL32,5.2704 -5.2705 -/* This reloc is used for References to RTTI dta from exception handling5.2706 -tables. The actual definition depends on the target. It may be a5.2707 -pc-relative or some form of GOT-indirect relocation. */5.2708 - BFD_RELOC_ARM_TARGET2,5.2709 -5.2710 -/* 31-bit PC relative address. */5.2711 - BFD_RELOC_ARM_PREL31,5.2712 -5.2713 -/* Renesas / SuperH SH relocs. Not all of these appear in object files. */5.2714 - BFD_RELOC_SH_PCDISP8BY2,5.2715 - BFD_RELOC_SH_PCDISP12BY2,5.2716 - BFD_RELOC_SH_IMM3,5.2717 - BFD_RELOC_SH_IMM3U,5.2718 - BFD_RELOC_SH_DISP12,5.2719 - BFD_RELOC_SH_DISP12BY2,5.2720 - BFD_RELOC_SH_DISP12BY4,5.2721 - BFD_RELOC_SH_DISP12BY8,5.2722 - BFD_RELOC_SH_DISP20,5.2723 - BFD_RELOC_SH_DISP20BY8,5.2724 - BFD_RELOC_SH_IMM4,5.2725 - BFD_RELOC_SH_IMM4BY2,5.2726 - BFD_RELOC_SH_IMM4BY4,5.2727 - BFD_RELOC_SH_IMM8,5.2728 - BFD_RELOC_SH_IMM8BY2,5.2729 - BFD_RELOC_SH_IMM8BY4,5.2730 - BFD_RELOC_SH_PCRELIMM8BY2,5.2731 - BFD_RELOC_SH_PCRELIMM8BY4,5.2732 - BFD_RELOC_SH_SWITCH16,5.2733 - BFD_RELOC_SH_SWITCH32,5.2734 - BFD_RELOC_SH_USES,5.2735 - BFD_RELOC_SH_COUNT,5.2736 - BFD_RELOC_SH_ALIGN,5.2737 - BFD_RELOC_SH_CODE,5.2738 - BFD_RELOC_SH_DATA,5.2739 - BFD_RELOC_SH_LABEL,5.2740 - BFD_RELOC_SH_LOOP_START,5.2741 - BFD_RELOC_SH_LOOP_END,5.2742 - BFD_RELOC_SH_COPY,5.2743 - BFD_RELOC_SH_GLOB_DAT,5.2744 - BFD_RELOC_SH_JMP_SLOT,5.2745 - BFD_RELOC_SH_RELATIVE,5.2746 - BFD_RELOC_SH_GOTPC,5.2747 - BFD_RELOC_SH_GOT_LOW16,5.2748 - BFD_RELOC_SH_GOT_MEDLOW16,5.2749 - BFD_RELOC_SH_GOT_MEDHI16,5.2750 - BFD_RELOC_SH_GOT_HI16,5.2751 - BFD_RELOC_SH_GOTPLT_LOW16,5.2752 - BFD_RELOC_SH_GOTPLT_MEDLOW16,5.2753 - BFD_RELOC_SH_GOTPLT_MEDHI16,5.2754 - BFD_RELOC_SH_GOTPLT_HI16,5.2755 - BFD_RELOC_SH_PLT_LOW16,5.2756 - BFD_RELOC_SH_PLT_MEDLOW16,5.2757 - BFD_RELOC_SH_PLT_MEDHI16,5.2758 - BFD_RELOC_SH_PLT_HI16,5.2759 - BFD_RELOC_SH_GOTOFF_LOW16,5.2760 - BFD_RELOC_SH_GOTOFF_MEDLOW16,5.2761 - BFD_RELOC_SH_GOTOFF_MEDHI16,5.2762 - BFD_RELOC_SH_GOTOFF_HI16,5.2763 - BFD_RELOC_SH_GOTPC_LOW16,5.2764 - BFD_RELOC_SH_GOTPC_MEDLOW16,5.2765 - BFD_RELOC_SH_GOTPC_MEDHI16,5.2766 - BFD_RELOC_SH_GOTPC_HI16,5.2767 - BFD_RELOC_SH_COPY64,5.2768 - BFD_RELOC_SH_GLOB_DAT64,5.2769 - BFD_RELOC_SH_JMP_SLOT64,5.2770 - BFD_RELOC_SH_RELATIVE64,5.2771 - BFD_RELOC_SH_GOT10BY4,5.2772 - BFD_RELOC_SH_GOT10BY8,5.2773 - BFD_RELOC_SH_GOTPLT10BY4,5.2774 - BFD_RELOC_SH_GOTPLT10BY8,5.2775 - BFD_RELOC_SH_GOTPLT32,5.2776 - BFD_RELOC_SH_SHMEDIA_CODE,5.2777 - BFD_RELOC_SH_IMMU5,5.2778 - BFD_RELOC_SH_IMMS6,5.2779 - BFD_RELOC_SH_IMMS6BY32,5.2780 - BFD_RELOC_SH_IMMU6,5.2781 - BFD_RELOC_SH_IMMS10,5.2782 - BFD_RELOC_SH_IMMS10BY2,5.2783 - BFD_RELOC_SH_IMMS10BY4,5.2784 - BFD_RELOC_SH_IMMS10BY8,5.2785 - BFD_RELOC_SH_IMMS16,5.2786 - BFD_RELOC_SH_IMMU16,5.2787 - BFD_RELOC_SH_IMM_LOW16,5.2788 - BFD_RELOC_SH_IMM_LOW16_PCREL,5.2789 - BFD_RELOC_SH_IMM_MEDLOW16,5.2790 - BFD_RELOC_SH_IMM_MEDLOW16_PCREL,5.2791 - BFD_RELOC_SH_IMM_MEDHI16,5.2792 - BFD_RELOC_SH_IMM_MEDHI16_PCREL,5.2793 - BFD_RELOC_SH_IMM_HI16,5.2794 - BFD_RELOC_SH_IMM_HI16_PCREL,5.2795 - BFD_RELOC_SH_PT_16,5.2796 - BFD_RELOC_SH_TLS_GD_32,5.2797 - BFD_RELOC_SH_TLS_LD_32,5.2798 - BFD_RELOC_SH_TLS_LDO_32,5.2799 - BFD_RELOC_SH_TLS_IE_32,5.2800 - BFD_RELOC_SH_TLS_LE_32,5.2801 - BFD_RELOC_SH_TLS_DTPMOD32,5.2802 - BFD_RELOC_SH_TLS_DTPOFF32,5.2803 - BFD_RELOC_SH_TLS_TPOFF32,5.2804 -5.2805 -/* Thumb 23-, 12- and 9-bit pc-relative branches. The lowest bit must5.2806 -be zero and is not stored in the instruction. */5.2807 - BFD_RELOC_THUMB_PCREL_BRANCH9,5.2808 - BFD_RELOC_THUMB_PCREL_BRANCH12,5.2809 - BFD_RELOC_THUMB_PCREL_BRANCH23,5.2810 -5.2811 -/* ARC Cores relocs.5.2812 -ARC 22 bit pc-relative branch. The lowest two bits must be zero and are5.2813 -not stored in the instruction. The high 20 bits are installed in bits 265.2814 -through 7 of the instruction. */5.2815 - BFD_RELOC_ARC_B22_PCREL,5.2816 -5.2817 -/* ARC 26 bit absolute branch. The lowest two bits must be zero and are not5.2818 -stored in the instruction. The high 24 bits are installed in bits 235.2819 -through 0. */5.2820 - BFD_RELOC_ARC_B26,5.2821 -5.2822 -/* Mitsubishi D10V relocs.5.2823 -This is a 10-bit reloc with the right 2 bits5.2824 -assumed to be 0. */5.2825 - BFD_RELOC_D10V_10_PCREL_R,5.2826 -5.2827 -/* Mitsubishi D10V relocs.5.2828 -This is a 10-bit reloc with the right 2 bits5.2829 -assumed to be 0. This is the same as the previous reloc5.2830 -except it is in the left container, i.e.,5.2831 -shifted left 15 bits. */5.2832 - BFD_RELOC_D10V_10_PCREL_L,5.2833 -5.2834 -/* This is an 18-bit reloc with the right 2 bits5.2835 -assumed to be 0. */5.2836 - BFD_RELOC_D10V_18,5.2837 -5.2838 -/* This is an 18-bit reloc with the right 2 bits5.2839 -assumed to be 0. */5.2840 - BFD_RELOC_D10V_18_PCREL,5.2841 -5.2842 -/* Mitsubishi D30V relocs.5.2843 -This is a 6-bit absolute reloc. */5.2844 - BFD_RELOC_D30V_6,5.2845 -5.2846 -/* This is a 6-bit pc-relative reloc with5.2847 -the right 3 bits assumed to be 0. */5.2848 - BFD_RELOC_D30V_9_PCREL,5.2849 -5.2850 -/* This is a 6-bit pc-relative reloc with5.2851 -the right 3 bits assumed to be 0. Same5.2852 -as the previous reloc but on the right side5.2853 -of the container. */5.2854 - BFD_RELOC_D30V_9_PCREL_R,5.2855 -5.2856 -/* This is a 12-bit absolute reloc with the5.2857 -right 3 bitsassumed to be 0. */5.2858 - BFD_RELOC_D30V_15,5.2859 -5.2860 -/* This is a 12-bit pc-relative reloc with5.2861 -the right 3 bits assumed to be 0. */5.2862 - BFD_RELOC_D30V_15_PCREL,5.2863 -5.2864 -/* This is a 12-bit pc-relative reloc with5.2865 -the right 3 bits assumed to be 0. Same5.2866 -as the previous reloc but on the right side5.2867 -of the container. */5.2868 - BFD_RELOC_D30V_15_PCREL_R,5.2869 -5.2870 -/* This is an 18-bit absolute reloc with5.2871 -the right 3 bits assumed to be 0. */5.2872 - BFD_RELOC_D30V_21,5.2873 -5.2874 -/* This is an 18-bit pc-relative reloc with5.2875 -the right 3 bits assumed to be 0. */5.2876 - BFD_RELOC_D30V_21_PCREL,5.2877 -5.2878 -/* This is an 18-bit pc-relative reloc with5.2879 -the right 3 bits assumed to be 0. Same5.2880 -as the previous reloc but on the right side5.2881 -of the container. */5.2882 - BFD_RELOC_D30V_21_PCREL_R,5.2883 -5.2884 -/* This is a 32-bit absolute reloc. */5.2885 - BFD_RELOC_D30V_32,5.2886 -5.2887 -/* This is a 32-bit pc-relative reloc. */5.2888 - BFD_RELOC_D30V_32_PCREL,5.2889 -5.2890 -/* DLX relocs */5.2891 - BFD_RELOC_DLX_HI16_S,5.2892 -5.2893 -/* DLX relocs */5.2894 - BFD_RELOC_DLX_LO16,5.2895 -5.2896 -/* DLX relocs */5.2897 - BFD_RELOC_DLX_JMP26,5.2898 -5.2899 -/* Renesas M32R (formerly Mitsubishi M32R) relocs.5.2900 -This is a 24 bit absolute address. */5.2901 - BFD_RELOC_M32R_24,5.2902 -5.2903 -/* This is a 10-bit pc-relative reloc with the right 2 bits assumed to be 0. */5.2904 - BFD_RELOC_M32R_10_PCREL,5.2905 -5.2906 -/* This is an 18-bit reloc with the right 2 bits assumed to be 0. */5.2907 - BFD_RELOC_M32R_18_PCREL,5.2908 -5.2909 -/* This is a 26-bit reloc with the right 2 bits assumed to be 0. */5.2910 - BFD_RELOC_M32R_26_PCREL,5.2911 -5.2912 -/* This is a 16-bit reloc containing the high 16 bits of an address5.2913 -used when the lower 16 bits are treated as unsigned. */5.2914 - BFD_RELOC_M32R_HI16_ULO,5.2915 -5.2916 -/* This is a 16-bit reloc containing the high 16 bits of an address5.2917 -used when the lower 16 bits are treated as signed. */5.2918 - BFD_RELOC_M32R_HI16_SLO,5.2919 -5.2920 -/* This is a 16-bit reloc containing the lower 16 bits of an address. */5.2921 - BFD_RELOC_M32R_LO16,5.2922 -5.2923 -/* This is a 16-bit reloc containing the small data area offset for use in5.2924 -add3, load, and store instructions. */5.2925 - BFD_RELOC_M32R_SDA16,5.2926 -5.2927 -/* For PIC. */5.2928 - BFD_RELOC_M32R_GOT24,5.2929 - BFD_RELOC_M32R_26_PLTREL,5.2930 - BFD_RELOC_M32R_COPY,5.2931 - BFD_RELOC_M32R_GLOB_DAT,5.2932 - BFD_RELOC_M32R_JMP_SLOT,5.2933 - BFD_RELOC_M32R_RELATIVE,5.2934 - BFD_RELOC_M32R_GOTOFF,5.2935 - BFD_RELOC_M32R_GOTOFF_HI_ULO,5.2936 - BFD_RELOC_M32R_GOTOFF_HI_SLO,5.2937 - BFD_RELOC_M32R_GOTOFF_LO,5.2938 - BFD_RELOC_M32R_GOTPC24,5.2939 - BFD_RELOC_M32R_GOT16_HI_ULO,5.2940 - BFD_RELOC_M32R_GOT16_HI_SLO,5.2941 - BFD_RELOC_M32R_GOT16_LO,5.2942 - BFD_RELOC_M32R_GOTPC_HI_ULO,5.2943 - BFD_RELOC_M32R_GOTPC_HI_SLO,5.2944 - BFD_RELOC_M32R_GOTPC_LO,5.2945 -5.2946 -/* This is a 9-bit reloc */5.2947 - BFD_RELOC_V850_9_PCREL,5.2948 -5.2949 -/* This is a 22-bit reloc */5.2950 - BFD_RELOC_V850_22_PCREL,5.2951 -5.2952 -/* This is a 16 bit offset from the short data area pointer. */5.2953 - BFD_RELOC_V850_SDA_16_16_OFFSET,5.2954 -5.2955 -/* This is a 16 bit offset (of which only 15 bits are used) from the5.2956 -short data area pointer. */5.2957 - BFD_RELOC_V850_SDA_15_16_OFFSET,5.2958 -5.2959 -/* This is a 16 bit offset from the zero data area pointer. */5.2960 - BFD_RELOC_V850_ZDA_16_16_OFFSET,5.2961 -5.2962 -/* This is a 16 bit offset (of which only 15 bits are used) from the5.2963 -zero data area pointer. */5.2964 - BFD_RELOC_V850_ZDA_15_16_OFFSET,5.2965 -5.2966 -/* This is an 8 bit offset (of which only 6 bits are used) from the5.2967 -tiny data area pointer. */5.2968 - BFD_RELOC_V850_TDA_6_8_OFFSET,5.2969 -5.2970 -/* This is an 8bit offset (of which only 7 bits are used) from the tiny5.2971 -data area pointer. */5.2972 - BFD_RELOC_V850_TDA_7_8_OFFSET,5.2973 -5.2974 -/* This is a 7 bit offset from the tiny data area pointer. */5.2975 - BFD_RELOC_V850_TDA_7_7_OFFSET,5.2976 -5.2977 -/* This is a 16 bit offset from the tiny data area pointer. */5.2978 - BFD_RELOC_V850_TDA_16_16_OFFSET,5.2979 -5.2980 -/* This is a 5 bit offset (of which only 4 bits are used) from the tiny5.2981 -data area pointer. */5.2982 - BFD_RELOC_V850_TDA_4_5_OFFSET,5.2983 -5.2984 -/* This is a 4 bit offset from the tiny data area pointer. */5.2985 - BFD_RELOC_V850_TDA_4_4_OFFSET,5.2986 -5.2987 -/* This is a 16 bit offset from the short data area pointer, with the5.2988 -bits placed non-contiguously in the instruction. */5.2989 - BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET,5.2990 -5.2991 -/* This is a 16 bit offset from the zero data area pointer, with the5.2992 -bits placed non-contiguously in the instruction. */5.2993 - BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET,5.2994 -5.2995 -/* This is a 6 bit offset from the call table base pointer. */5.2996 - BFD_RELOC_V850_CALLT_6_7_OFFSET,5.2997 -5.2998 -/* This is a 16 bit offset from the call table base pointer. */5.2999 - BFD_RELOC_V850_CALLT_16_16_OFFSET,5.3000 -5.3001 -/* Used for relaxing indirect function calls. */5.3002 - BFD_RELOC_V850_LONGCALL,5.3003 -5.3004 -/* Used for relaxing indirect jumps. */5.3005 - BFD_RELOC_V850_LONGJUMP,5.3006 -5.3007 -/* Used to maintain alignment whilst relaxing. */5.3008 - BFD_RELOC_V850_ALIGN,5.3009 -5.3010 -/* This is a variation of BFD_RELOC_LO16 that can be used in v850e ld.bu5.3011 -instructions. */5.3012 - BFD_RELOC_V850_LO16_SPLIT_OFFSET,5.3013 -5.3014 -/* This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the5.3015 -instruction. */5.3016 - BFD_RELOC_MN10300_32_PCREL,5.3017 -5.3018 -/* This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the5.3019 -instruction. */5.3020 - BFD_RELOC_MN10300_16_PCREL,5.3021 -5.3022 -/* This is a 8bit DP reloc for the tms320c30, where the most5.3023 -significant 8 bits of a 24 bit word are placed into the least5.3024 -significant 8 bits of the opcode. */5.3025 - BFD_RELOC_TIC30_LDP,5.3026 -5.3027 -/* This is a 7bit reloc for the tms320c54x, where the least5.3028 -significant 7 bits of a 16 bit word are placed into the least5.3029 -significant 7 bits of the opcode. */5.3030 - BFD_RELOC_TIC54X_PARTLS7,5.3031 -5.3032 -/* This is a 9bit DP reloc for the tms320c54x, where the most5.3033 -significant 9 bits of a 16 bit word are placed into the least5.3034 -significant 9 bits of the opcode. */5.3035 - BFD_RELOC_TIC54X_PARTMS9,5.3036 -5.3037 -/* This is an extended address 23-bit reloc for the tms320c54x. */5.3038 - BFD_RELOC_TIC54X_23,5.3039 -5.3040 -/* This is a 16-bit reloc for the tms320c54x, where the least5.3041 -significant 16 bits of a 23-bit extended address are placed into5.3042 -the opcode. */5.3043 - BFD_RELOC_TIC54X_16_OF_23,5.3044 -5.3045 -/* This is a reloc for the tms320c54x, where the most5.3046 -significant 7 bits of a 23-bit extended address are placed into5.3047 -the opcode. */5.3048 - BFD_RELOC_TIC54X_MS7_OF_23,5.3049 -5.3050 -/* This is a 48 bit reloc for the FR30 that stores 32 bits. */5.3051 - BFD_RELOC_FR30_48,5.3052 -5.3053 -/* This is a 32 bit reloc for the FR30 that stores 20 bits split up into5.3054 -two sections. */5.3055 - BFD_RELOC_FR30_20,5.3056 -5.3057 -/* This is a 16 bit reloc for the FR30 that stores a 6 bit word offset in5.3058 -4 bits. */5.3059 - BFD_RELOC_FR30_6_IN_4,5.3060 -5.3061 -/* This is a 16 bit reloc for the FR30 that stores an 8 bit byte offset5.3062 -into 8 bits. */5.3063 - BFD_RELOC_FR30_8_IN_8,5.3064 -5.3065 -/* This is a 16 bit reloc for the FR30 that stores a 9 bit short offset5.3066 -into 8 bits. */5.3067 - BFD_RELOC_FR30_9_IN_8,5.3068 -5.3069 -/* This is a 16 bit reloc for the FR30 that stores a 10 bit word offset5.3070 -into 8 bits. */5.3071 - BFD_RELOC_FR30_10_IN_8,5.3072 -5.3073 -/* This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative5.3074 -short offset into 8 bits. */5.3075 - BFD_RELOC_FR30_9_PCREL,5.3076 -5.3077 -/* This is a 16 bit reloc for the FR30 that stores a 12 bit pc relative5.3078 -short offset into 11 bits. */5.3079 - BFD_RELOC_FR30_12_PCREL,5.3080 -5.3081 -/* Motorola Mcore relocations. */5.3082 - BFD_RELOC_MCORE_PCREL_IMM8BY4,5.3083 - BFD_RELOC_MCORE_PCREL_IMM11BY2,5.3084 - BFD_RELOC_MCORE_PCREL_IMM4BY2,5.3085 - BFD_RELOC_MCORE_PCREL_32,5.3086 - BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2,5.3087 - BFD_RELOC_MCORE_RVA,5.3088 -5.3089 -/* These are relocations for the GETA instruction. */5.3090 - BFD_RELOC_MMIX_GETA,5.3091 - BFD_RELOC_MMIX_GETA_1,5.3092 - BFD_RELOC_MMIX_GETA_2,5.3093 - BFD_RELOC_MMIX_GETA_3,5.3094 -5.3095 -/* These are relocations for a conditional branch instruction. */5.3096 - BFD_RELOC_MMIX_CBRANCH,5.3097 - BFD_RELOC_MMIX_CBRANCH_J,5.3098 - BFD_RELOC_MMIX_CBRANCH_1,5.3099 - BFD_RELOC_MMIX_CBRANCH_2,5.3100 - BFD_RELOC_MMIX_CBRANCH_3,5.3101 -5.3102 -/* These are relocations for the PUSHJ instruction. */5.3103 - BFD_RELOC_MMIX_PUSHJ,5.3104 - BFD_RELOC_MMIX_PUSHJ_1,5.3105 - BFD_RELOC_MMIX_PUSHJ_2,5.3106 - BFD_RELOC_MMIX_PUSHJ_3,5.3107 - BFD_RELOC_MMIX_PUSHJ_STUBBABLE,5.3108 -5.3109 -/* These are relocations for the JMP instruction. */5.3110 - BFD_RELOC_MMIX_JMP,5.3111 - BFD_RELOC_MMIX_JMP_1,5.3112 - BFD_RELOC_MMIX_JMP_2,5.3113 - BFD_RELOC_MMIX_JMP_3,5.3114 -5.3115 -/* This is a relocation for a relative address as in a GETA instruction or5.3116 -a branch. */5.3117 - BFD_RELOC_MMIX_ADDR19,5.3118 -5.3119 -/* This is a relocation for a relative address as in a JMP instruction. */5.3120 - BFD_RELOC_MMIX_ADDR27,5.3121 -5.3122 -/* This is a relocation for an instruction field that may be a general5.3123 -register or a value 0..255. */5.3124 - BFD_RELOC_MMIX_REG_OR_BYTE,5.3125 -5.3126 -/* This is a relocation for an instruction field that may be a general5.3127 -register. */5.3128 - BFD_RELOC_MMIX_REG,5.3129 -5.3130 -/* This is a relocation for two instruction fields holding a register and5.3131 -an offset, the equivalent of the relocation. */5.3132 - BFD_RELOC_MMIX_BASE_PLUS_OFFSET,5.3133 -5.3134 -/* This relocation is an assertion that the expression is not allocated as5.3135 -a global register. It does not modify contents. */5.3136 - BFD_RELOC_MMIX_LOCAL,5.3137 -5.3138 -/* This is a 16 bit reloc for the AVR that stores 8 bit pc relative5.3139 -short offset into 7 bits. */5.3140 - BFD_RELOC_AVR_7_PCREL,5.3141 -5.3142 -/* This is a 16 bit reloc for the AVR that stores 13 bit pc relative5.3143 -short offset into 12 bits. */5.3144 - BFD_RELOC_AVR_13_PCREL,5.3145 -5.3146 -/* This is a 16 bit reloc for the AVR that stores 17 bit value (usually5.3147 -program memory address) into 16 bits. */5.3148 - BFD_RELOC_AVR_16_PM,5.3149 -5.3150 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (usually5.3151 -data memory address) into 8 bit immediate value of LDI insn. */5.3152 - BFD_RELOC_AVR_LO8_LDI,5.3153 -5.3154 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit5.3155 -of data memory address) into 8 bit immediate value of LDI insn. */5.3156 - BFD_RELOC_AVR_HI8_LDI,5.3157 -5.3158 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit5.3159 -of program memory address) into 8 bit immediate value of LDI insn. */5.3160 - BFD_RELOC_AVR_HH8_LDI,5.3161 -5.3162 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3163 -(usually data memory address) into 8 bit immediate value of SUBI insn. */5.3164 - BFD_RELOC_AVR_LO8_LDI_NEG,5.3165 -5.3166 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3167 -(high 8 bit of data memory address) into 8 bit immediate value of5.3168 -SUBI insn. */5.3169 - BFD_RELOC_AVR_HI8_LDI_NEG,5.3170 -5.3171 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3172 -(most high 8 bit of program memory address) into 8 bit immediate value5.3173 -of LDI or SUBI insn. */5.3174 - BFD_RELOC_AVR_HH8_LDI_NEG,5.3175 -5.3176 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (usually5.3177 -command address) into 8 bit immediate value of LDI insn. */5.3178 - BFD_RELOC_AVR_LO8_LDI_PM,5.3179 -5.3180 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit5.3181 -of command address) into 8 bit immediate value of LDI insn. */5.3182 - BFD_RELOC_AVR_HI8_LDI_PM,5.3183 -5.3184 -/* This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit5.3185 -of command address) into 8 bit immediate value of LDI insn. */5.3186 - BFD_RELOC_AVR_HH8_LDI_PM,5.3187 -5.3188 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3189 -(usually command address) into 8 bit immediate value of SUBI insn. */5.3190 - BFD_RELOC_AVR_LO8_LDI_PM_NEG,5.3191 -5.3192 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3193 -(high 8 bit of 16 bit command address) into 8 bit immediate value5.3194 -of SUBI insn. */5.3195 - BFD_RELOC_AVR_HI8_LDI_PM_NEG,5.3196 -5.3197 -/* This is a 16 bit reloc for the AVR that stores negated 8 bit value5.3198 -(high 6 bit of 22 bit command address) into 8 bit immediate5.3199 -value of SUBI insn. */5.3200 - BFD_RELOC_AVR_HH8_LDI_PM_NEG,5.3201 -5.3202 -/* This is a 32 bit reloc for the AVR that stores 23 bit value5.3203 -into 22 bits. */5.3204 - BFD_RELOC_AVR_CALL,5.3205 -5.3206 -/* This is a 16 bit reloc for the AVR that stores all needed bits5.3207 -for absolute addressing with ldi with overflow check to linktime */5.3208 - BFD_RELOC_AVR_LDI,5.3209 -5.3210 -/* This is a 6 bit reloc for the AVR that stores offset for ldd/std5.3211 -instructions */5.3212 - BFD_RELOC_AVR_6,5.3213 -5.3214 -/* This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw5.3215 -instructions */5.3216 - BFD_RELOC_AVR_6_ADIW,5.3217 -5.3218 -/* Direct 12 bit. */5.3219 - BFD_RELOC_390_12,5.3220 -5.3221 -/* 12 bit GOT offset. */5.3222 - BFD_RELOC_390_GOT12,5.3223 -5.3224 -/* 32 bit PC relative PLT address. */5.3225 - BFD_RELOC_390_PLT32,5.3226 -5.3227 -/* Copy symbol at runtime. */5.3228 - BFD_RELOC_390_COPY,5.3229 -5.3230 -/* Create GOT entry. */5.3231 - BFD_RELOC_390_GLOB_DAT,5.3232 -5.3233 -/* Create PLT entry. */5.3234 - BFD_RELOC_390_JMP_SLOT,5.3235 -5.3236 -/* Adjust by program base. */5.3237 - BFD_RELOC_390_RELATIVE,5.3238 -5.3239 -/* 32 bit PC relative offset to GOT. */5.3240 - BFD_RELOC_390_GOTPC,5.3241 -5.3242 -/* 16 bit GOT offset. */5.3243 - BFD_RELOC_390_GOT16,5.3244 -5.3245 -/* PC relative 16 bit shifted by 1. */5.3246 - BFD_RELOC_390_PC16DBL,5.3247 -5.3248 -/* 16 bit PC rel. PLT shifted by 1. */5.3249 - BFD_RELOC_390_PLT16DBL,5.3250 -5.3251 -/* PC relative 32 bit shifted by 1. */5.3252 - BFD_RELOC_390_PC32DBL,5.3253 -5.3254 -/* 32 bit PC rel. PLT shifted by 1. */5.3255 - BFD_RELOC_390_PLT32DBL,5.3256 -5.3257 -/* 32 bit PC rel. GOT shifted by 1. */5.3258 - BFD_RELOC_390_GOTPCDBL,5.3259 -5.3260 -/* 64 bit GOT offset. */5.3261 - BFD_RELOC_390_GOT64,5.3262 -5.3263 -/* 64 bit PC relative PLT address. */5.3264 - BFD_RELOC_390_PLT64,5.3265 -5.3266 -/* 32 bit rel. offset to GOT entry. */5.3267 - BFD_RELOC_390_GOTENT,5.3268 -5.3269 -/* 64 bit offset to GOT. */5.3270 - BFD_RELOC_390_GOTOFF64,5.3271 -5.3272 -/* 12-bit offset to symbol-entry within GOT, with PLT handling. */5.3273 - BFD_RELOC_390_GOTPLT12,5.3274 -5.3275 -/* 16-bit offset to symbol-entry within GOT, with PLT handling. */5.3276 - BFD_RELOC_390_GOTPLT16,5.3277 -5.3278 -/* 32-bit offset to symbol-entry within GOT, with PLT handling. */5.3279 - BFD_RELOC_390_GOTPLT32,5.3280 -5.3281 -/* 64-bit offset to symbol-entry within GOT, with PLT handling. */5.3282 - BFD_RELOC_390_GOTPLT64,5.3283 -5.3284 -/* 32-bit rel. offset to symbol-entry within GOT, with PLT handling. */5.3285 - BFD_RELOC_390_GOTPLTENT,5.3286 -5.3287 -/* 16-bit rel. offset from the GOT to a PLT entry. */5.3288 - BFD_RELOC_390_PLTOFF16,5.3289 -5.3290 -/* 32-bit rel. offset from the GOT to a PLT entry. */5.3291 - BFD_RELOC_390_PLTOFF32,5.3292 -5.3293 -/* 64-bit rel. offset from the GOT to a PLT entry. */5.3294 - BFD_RELOC_390_PLTOFF64,5.3295 -5.3296 -/* s390 tls relocations. */5.3297 - BFD_RELOC_390_TLS_LOAD,5.3298 - BFD_RELOC_390_TLS_GDCALL,5.3299 - BFD_RELOC_390_TLS_LDCALL,5.3300 - BFD_RELOC_390_TLS_GD32,5.3301 - BFD_RELOC_390_TLS_GD64,5.3302 - BFD_RELOC_390_TLS_GOTIE12,5.3303 - BFD_RELOC_390_TLS_GOTIE32,5.3304 - BFD_RELOC_390_TLS_GOTIE64,5.3305 - BFD_RELOC_390_TLS_LDM32,5.3306 - BFD_RELOC_390_TLS_LDM64,5.3307 - BFD_RELOC_390_TLS_IE32,5.3308 - BFD_RELOC_390_TLS_IE64,5.3309 - BFD_RELOC_390_TLS_IEENT,5.3310 - BFD_RELOC_390_TLS_LE32,5.3311 - BFD_RELOC_390_TLS_LE64,5.3312 - BFD_RELOC_390_TLS_LDO32,5.3313 - BFD_RELOC_390_TLS_LDO64,5.3314 - BFD_RELOC_390_TLS_DTPMOD,5.3315 - BFD_RELOC_390_TLS_DTPOFF,5.3316 - BFD_RELOC_390_TLS_TPOFF,5.3317 -5.3318 -/* Long displacement extension. */5.3319 - BFD_RELOC_390_20,5.3320 - BFD_RELOC_390_GOT20,5.3321 - BFD_RELOC_390_GOTPLT20,5.3322 - BFD_RELOC_390_TLS_GOTIE20,5.3323 -5.3324 -/* Scenix IP2K - 9-bit register number / data address */5.3325 - BFD_RELOC_IP2K_FR9,5.3326 -5.3327 -/* Scenix IP2K - 4-bit register/data bank number */5.3328 - BFD_RELOC_IP2K_BANK,5.3329 -5.3330 -/* Scenix IP2K - low 13 bits of instruction word address */5.3331 - BFD_RELOC_IP2K_ADDR16CJP,5.3332 -5.3333 -/* Scenix IP2K - high 3 bits of instruction word address */5.3334 - BFD_RELOC_IP2K_PAGE3,5.3335 -5.3336 -/* Scenix IP2K - ext/low/high 8 bits of data address */5.3337 - BFD_RELOC_IP2K_LO8DATA,5.3338 - BFD_RELOC_IP2K_HI8DATA,5.3339 - BFD_RELOC_IP2K_EX8DATA,5.3340 -5.3341 -/* Scenix IP2K - low/high 8 bits of instruction word address */5.3342 - BFD_RELOC_IP2K_LO8INSN,5.3343 - BFD_RELOC_IP2K_HI8INSN,5.3344 -5.3345 -/* Scenix IP2K - even/odd PC modifier to modify snb pcl.0 */5.3346 - BFD_RELOC_IP2K_PC_SKIP,5.3347 -5.3348 -/* Scenix IP2K - 16 bit word address in text section. */5.3349 - BFD_RELOC_IP2K_TEXT,5.3350 -5.3351 -/* Scenix IP2K - 7-bit sp or dp offset */5.3352 - BFD_RELOC_IP2K_FR_OFFSET,5.3353 -5.3354 -/* Scenix VPE4K coprocessor - data/insn-space addressing */5.3355 - BFD_RELOC_VPE4KMATH_DATA,5.3356 - BFD_RELOC_VPE4KMATH_INSN,5.3357 -5.3358 -/* These two relocations are used by the linker to determine which of5.3359 -the entries in a C++ virtual function table are actually used. When5.3360 -the --gc-sections option is given, the linker will zero out the entries5.3361 -that are not used, so that the code for those functions need not be5.3362 -included in the output.5.3363 -5.3364 -VTABLE_INHERIT is a zero-space relocation used to describe to the5.3365 -linker the inheritance tree of a C++ virtual function table. The5.3366 -relocation's symbol should be the parent class' vtable, and the5.3367 -relocation should be located at the child vtable.5.3368 -5.3369 -VTABLE_ENTRY is a zero-space relocation that describes the use of a5.3370 -virtual function table entry. The reloc's symbol should refer to the5.3371 -table of the class mentioned in the code. Off of that base, an offset5.3372 -describes the entry that is being used. For Rela hosts, this offset5.3373 -is stored in the reloc's addend. For Rel hosts, we are forced to put5.3374 -this offset in the reloc's section offset. */5.3375 - BFD_RELOC_VTABLE_INHERIT,5.3376 - BFD_RELOC_VTABLE_ENTRY,5.3377 -5.3378 -/* Intel IA64 Relocations. */5.3379 - BFD_RELOC_IA64_IMM14,5.3380 - BFD_RELOC_IA64_IMM22,5.3381 - BFD_RELOC_IA64_IMM64,5.3382 - BFD_RELOC_IA64_DIR32MSB,5.3383 - BFD_RELOC_IA64_DIR32LSB,5.3384 - BFD_RELOC_IA64_DIR64MSB,5.3385 - BFD_RELOC_IA64_DIR64LSB,5.3386 - BFD_RELOC_IA64_GPREL22,5.3387 - BFD_RELOC_IA64_GPREL64I,5.3388 - BFD_RELOC_IA64_GPREL32MSB,5.3389 - BFD_RELOC_IA64_GPREL32LSB,5.3390 - BFD_RELOC_IA64_GPREL64MSB,5.3391 - BFD_RELOC_IA64_GPREL64LSB,5.3392 - BFD_RELOC_IA64_LTOFF22,5.3393 - BFD_RELOC_IA64_LTOFF64I,5.3394 - BFD_RELOC_IA64_PLTOFF22,5.3395 - BFD_RELOC_IA64_PLTOFF64I,5.3396 - BFD_RELOC_IA64_PLTOFF64MSB,5.3397 - BFD_RELOC_IA64_PLTOFF64LSB,5.3398 - BFD_RELOC_IA64_FPTR64I,5.3399 - BFD_RELOC_IA64_FPTR32MSB,5.3400 - BFD_RELOC_IA64_FPTR32LSB,5.3401 - BFD_RELOC_IA64_FPTR64MSB,5.3402 - BFD_RELOC_IA64_FPTR64LSB,5.3403 - BFD_RELOC_IA64_PCREL21B,5.3404 - BFD_RELOC_IA64_PCREL21BI,5.3405 - BFD_RELOC_IA64_PCREL21M,5.3406 - BFD_RELOC_IA64_PCREL21F,5.3407 - BFD_RELOC_IA64_PCREL22,5.3408 - BFD_RELOC_IA64_PCREL60B,5.3409 - BFD_RELOC_IA64_PCREL64I,5.3410 - BFD_RELOC_IA64_PCREL32MSB,5.3411 - BFD_RELOC_IA64_PCREL32LSB,5.3412 - BFD_RELOC_IA64_PCREL64MSB,5.3413 - BFD_RELOC_IA64_PCREL64LSB,5.3414 - BFD_RELOC_IA64_LTOFF_FPTR22,5.3415 - BFD_RELOC_IA64_LTOFF_FPTR64I,5.3416 - BFD_RELOC_IA64_LTOFF_FPTR32MSB,5.3417 - BFD_RELOC_IA64_LTOFF_FPTR32LSB,5.3418 - BFD_RELOC_IA64_LTOFF_FPTR64MSB,5.3419 - BFD_RELOC_IA64_LTOFF_FPTR64LSB,5.3420 - BFD_RELOC_IA64_SEGREL32MSB,5.3421 - BFD_RELOC_IA64_SEGREL32LSB,5.3422 - BFD_RELOC_IA64_SEGREL64MSB,5.3423 - BFD_RELOC_IA64_SEGREL64LSB,5.3424 - BFD_RELOC_IA64_SECREL32MSB,5.3425 - BFD_RELOC_IA64_SECREL32LSB,5.3426 - BFD_RELOC_IA64_SECREL64MSB,5.3427 - BFD_RELOC_IA64_SECREL64LSB,5.3428 - BFD_RELOC_IA64_REL32MSB,5.3429 - BFD_RELOC_IA64_REL32LSB,5.3430 - BFD_RELOC_IA64_REL64MSB,5.3431 - BFD_RELOC_IA64_REL64LSB,5.3432 - BFD_RELOC_IA64_LTV32MSB,5.3433 - BFD_RELOC_IA64_LTV32LSB,5.3434 - BFD_RELOC_IA64_LTV64MSB,5.3435 - BFD_RELOC_IA64_LTV64LSB,5.3436 - BFD_RELOC_IA64_IPLTMSB,5.3437 - BFD_RELOC_IA64_IPLTLSB,5.3438 - BFD_RELOC_IA64_COPY,5.3439 - BFD_RELOC_IA64_LTOFF22X,5.3440 - BFD_RELOC_IA64_LDXMOV,5.3441 - BFD_RELOC_IA64_TPREL14,5.3442 - BFD_RELOC_IA64_TPREL22,5.3443 - BFD_RELOC_IA64_TPREL64I,5.3444 - BFD_RELOC_IA64_TPREL64MSB,5.3445 - BFD_RELOC_IA64_TPREL64LSB,5.3446 - BFD_RELOC_IA64_LTOFF_TPREL22,5.3447 - BFD_RELOC_IA64_DTPMOD64MSB,5.3448 - BFD_RELOC_IA64_DTPMOD64LSB,5.3449 - BFD_RELOC_IA64_LTOFF_DTPMOD22,5.3450 - BFD_RELOC_IA64_DTPREL14,5.3451 - BFD_RELOC_IA64_DTPREL22,5.3452 - BFD_RELOC_IA64_DTPREL64I,5.3453 - BFD_RELOC_IA64_DTPREL32MSB,5.3454 - BFD_RELOC_IA64_DTPREL32LSB,5.3455 - BFD_RELOC_IA64_DTPREL64MSB,5.3456 - BFD_RELOC_IA64_DTPREL64LSB,5.3457 - BFD_RELOC_IA64_LTOFF_DTPREL22,5.3458 -5.3459 -/* Motorola 68HC11 reloc.5.3460 -This is the 8 bit high part of an absolute address. */5.3461 - BFD_RELOC_M68HC11_HI8,5.3462 -5.3463 -/* Motorola 68HC11 reloc.5.3464 -This is the 8 bit low part of an absolute address. */5.3465 - BFD_RELOC_M68HC11_LO8,5.3466 -5.3467 -/* Motorola 68HC11 reloc.5.3468 -This is the 3 bit of a value. */5.3469 - BFD_RELOC_M68HC11_3B,5.3470 -5.3471 -/* Motorola 68HC11 reloc.5.3472 -This reloc marks the beginning of a jump/call instruction.5.3473 -It is used for linker relaxation to correctly identify beginning5.3474 -of instruction and change some branches to use PC-relative5.3475 -addressing mode. */5.3476 - BFD_RELOC_M68HC11_RL_JUMP,5.3477 -5.3478 -/* Motorola 68HC11 reloc.5.3479 -This reloc marks a group of several instructions that gcc generates5.3480 -and for which the linker relaxation pass can modify and/or remove5.3481 -some of them. */5.3482 - BFD_RELOC_M68HC11_RL_GROUP,5.3483 -5.3484 -/* Motorola 68HC11 reloc.5.3485 -This is the 16-bit lower part of an address. It is used for 'call'5.3486 -instruction to specify the symbol address without any special5.3487 -transformation (due to memory bank window). */5.3488 - BFD_RELOC_M68HC11_LO16,5.3489 -5.3490 -/* Motorola 68HC11 reloc.5.3491 -This is a 8-bit reloc that specifies the page number of an address.5.3492 -It is used by 'call' instruction to specify the page number of5.3493 -the symbol. */5.3494 - BFD_RELOC_M68HC11_PAGE,5.3495 -5.3496 -/* Motorola 68HC11 reloc.5.3497 -This is a 24-bit reloc that represents the address with a 16-bit5.3498 -value and a 8-bit page number. The symbol address is transformed5.3499 -to follow the 16K memory bank of 68HC12 (seen as mapped in the window). */5.3500 - BFD_RELOC_M68HC11_24,5.3501 -5.3502 -/* Motorola 68HC12 reloc.5.3503 -This is the 5 bits of a value. */5.3504 - BFD_RELOC_M68HC12_5B,5.3505 -5.3506 -/* NS CR16C Relocations. */5.3507 - BFD_RELOC_16C_NUM08,5.3508 - BFD_RELOC_16C_NUM08_C,5.3509 - BFD_RELOC_16C_NUM16,5.3510 - BFD_RELOC_16C_NUM16_C,5.3511 - BFD_RELOC_16C_NUM32,5.3512 - BFD_RELOC_16C_NUM32_C,5.3513 - BFD_RELOC_16C_DISP04,5.3514 - BFD_RELOC_16C_DISP04_C,5.3515 - BFD_RELOC_16C_DISP08,5.3516 - BFD_RELOC_16C_DISP08_C,5.3517 - BFD_RELOC_16C_DISP16,5.3518 - BFD_RELOC_16C_DISP16_C,5.3519 - BFD_RELOC_16C_DISP24,5.3520 - BFD_RELOC_16C_DISP24_C,5.3521 - BFD_RELOC_16C_DISP24a,5.3522 - BFD_RELOC_16C_DISP24a_C,5.3523 - BFD_RELOC_16C_REG04,5.3524 - BFD_RELOC_16C_REG04_C,5.3525 - BFD_RELOC_16C_REG04a,5.3526 - BFD_RELOC_16C_REG04a_C,5.3527 - BFD_RELOC_16C_REG14,5.3528 - BFD_RELOC_16C_REG14_C,5.3529 - BFD_RELOC_16C_REG16,5.3530 - BFD_RELOC_16C_REG16_C,5.3531 - BFD_RELOC_16C_REG20,5.3532 - BFD_RELOC_16C_REG20_C,5.3533 - BFD_RELOC_16C_ABS20,5.3534 - BFD_RELOC_16C_ABS20_C,5.3535 - BFD_RELOC_16C_ABS24,5.3536 - BFD_RELOC_16C_ABS24_C,5.3537 - BFD_RELOC_16C_IMM04,5.3538 - BFD_RELOC_16C_IMM04_C,5.3539 - BFD_RELOC_16C_IMM16,5.3540 - BFD_RELOC_16C_IMM16_C,5.3541 - BFD_RELOC_16C_IMM20,5.3542 - BFD_RELOC_16C_IMM20_C,5.3543 - BFD_RELOC_16C_IMM24,5.3544 - BFD_RELOC_16C_IMM24_C,5.3545 - BFD_RELOC_16C_IMM32,5.3546 - BFD_RELOC_16C_IMM32_C,5.3547 -5.3548 -/* NS CRX Relocations. */5.3549 - BFD_RELOC_CRX_REL4,5.3550 - BFD_RELOC_CRX_REL8,5.3551 - BFD_RELOC_CRX_REL8_CMP,5.3552 - BFD_RELOC_CRX_REL16,5.3553 - BFD_RELOC_CRX_REL24,5.3554 - BFD_RELOC_CRX_REL32,5.3555 - BFD_RELOC_CRX_REGREL12,5.3556 - BFD_RELOC_CRX_REGREL22,5.3557 - BFD_RELOC_CRX_REGREL28,5.3558 - BFD_RELOC_CRX_REGREL32,5.3559 - BFD_RELOC_CRX_ABS16,5.3560 - BFD_RELOC_CRX_ABS32,5.3561 - BFD_RELOC_CRX_NUM8,5.3562 - BFD_RELOC_CRX_NUM16,5.3563 - BFD_RELOC_CRX_NUM32,5.3564 - BFD_RELOC_CRX_IMM16,5.3565 - BFD_RELOC_CRX_IMM32,5.3566 - BFD_RELOC_CRX_SWITCH8,5.3567 - BFD_RELOC_CRX_SWITCH16,5.3568 - BFD_RELOC_CRX_SWITCH32,5.3569 -5.3570 -/* These relocs are only used within the CRIS assembler. They are not5.3571 -(at present) written to any object files. */5.3572 - BFD_RELOC_CRIS_BDISP8,5.3573 - BFD_RELOC_CRIS_UNSIGNED_5,5.3574 - BFD_RELOC_CRIS_SIGNED_6,5.3575 - BFD_RELOC_CRIS_UNSIGNED_6,5.3576 - BFD_RELOC_CRIS_SIGNED_8,5.3577 - BFD_RELOC_CRIS_UNSIGNED_8,5.3578 - BFD_RELOC_CRIS_SIGNED_16,5.3579 - BFD_RELOC_CRIS_UNSIGNED_16,5.3580 - BFD_RELOC_CRIS_LAPCQ_OFFSET,5.3581 - BFD_RELOC_CRIS_UNSIGNED_4,5.3582 -5.3583 -/* Relocs used in ELF shared libraries for CRIS. */5.3584 - BFD_RELOC_CRIS_COPY,5.3585 - BFD_RELOC_CRIS_GLOB_DAT,5.3586 - BFD_RELOC_CRIS_JUMP_SLOT,5.3587 - BFD_RELOC_CRIS_RELATIVE,5.3588 -5.3589 -/* 32-bit offset to symbol-entry within GOT. */5.3590 - BFD_RELOC_CRIS_32_GOT,5.3591 -5.3592 -/* 16-bit offset to symbol-entry within GOT. */5.3593 - BFD_RELOC_CRIS_16_GOT,5.3594 -5.3595 -/* 32-bit offset to symbol-entry within GOT, with PLT handling. */5.3596 - BFD_RELOC_CRIS_32_GOTPLT,5.3597 -5.3598 -/* 16-bit offset to symbol-entry within GOT, with PLT handling. */5.3599 - BFD_RELOC_CRIS_16_GOTPLT,5.3600 -5.3601 -/* 32-bit offset to symbol, relative to GOT. */5.3602 - BFD_RELOC_CRIS_32_GOTREL,5.3603 -5.3604 -/* 32-bit offset to symbol with PLT entry, relative to GOT. */5.3605 - BFD_RELOC_CRIS_32_PLT_GOTREL,5.3606 -5.3607 -/* 32-bit offset to symbol with PLT entry, relative to this relocation. */5.3608 - BFD_RELOC_CRIS_32_PLT_PCREL,5.3609 -5.3610 -/* Intel i860 Relocations. */5.3611 - BFD_RELOC_860_COPY,5.3612 - BFD_RELOC_860_GLOB_DAT,5.3613 - BFD_RELOC_860_JUMP_SLOT,5.3614 - BFD_RELOC_860_RELATIVE,5.3615 - BFD_RELOC_860_PC26,5.3616 - BFD_RELOC_860_PLT26,5.3617 - BFD_RELOC_860_PC16,5.3618 - BFD_RELOC_860_LOW0,5.3619 - BFD_RELOC_860_SPLIT0,5.3620 - BFD_RELOC_860_LOW1,5.3621 - BFD_RELOC_860_SPLIT1,5.3622 - BFD_RELOC_860_LOW2,5.3623 - BFD_RELOC_860_SPLIT2,5.3624 - BFD_RELOC_860_LOW3,5.3625 - BFD_RELOC_860_LOGOT0,5.3626 - BFD_RELOC_860_SPGOT0,5.3627 - BFD_RELOC_860_LOGOT1,5.3628 - BFD_RELOC_860_SPGOT1,5.3629 - BFD_RELOC_860_LOGOTOFF0,5.3630 - BFD_RELOC_860_SPGOTOFF0,5.3631 - BFD_RELOC_860_LOGOTOFF1,5.3632 - BFD_RELOC_860_SPGOTOFF1,5.3633 - BFD_RELOC_860_LOGOTOFF2,5.3634 - BFD_RELOC_860_LOGOTOFF3,5.3635 - BFD_RELOC_860_LOPC,5.3636 - BFD_RELOC_860_HIGHADJ,5.3637 - BFD_RELOC_860_HAGOT,5.3638 - BFD_RELOC_860_HAGOTOFF,5.3639 - BFD_RELOC_860_HAPC,5.3640 - BFD_RELOC_860_HIGH,5.3641 - BFD_RELOC_860_HIGOT,5.3642 - BFD_RELOC_860_HIGOTOFF,5.3643 -5.3644 -/* OpenRISC Relocations. */5.3645 - BFD_RELOC_OPENRISC_ABS_26,5.3646 - BFD_RELOC_OPENRISC_REL_26,5.3647 -5.3648 -/* H8 elf Relocations. */5.3649 - BFD_RELOC_H8_DIR16A8,5.3650 - BFD_RELOC_H8_DIR16R8,5.3651 - BFD_RELOC_H8_DIR24A8,5.3652 - BFD_RELOC_H8_DIR24R8,5.3653 - BFD_RELOC_H8_DIR32A16,5.3654 -5.3655 -/* Sony Xstormy16 Relocations. */5.3656 - BFD_RELOC_XSTORMY16_REL_12,5.3657 - BFD_RELOC_XSTORMY16_12,5.3658 - BFD_RELOC_XSTORMY16_24,5.3659 - BFD_RELOC_XSTORMY16_FPTR16,5.3660 -5.3661 -/* Relocations used by VAX ELF. */5.3662 - BFD_RELOC_VAX_GLOB_DAT,5.3663 - BFD_RELOC_VAX_JMP_SLOT,5.3664 - BFD_RELOC_VAX_RELATIVE,5.3665 -5.3666 -/* msp430 specific relocation codes */5.3667 - BFD_RELOC_MSP430_10_PCREL,5.3668 - BFD_RELOC_MSP430_16_PCREL,5.3669 - BFD_RELOC_MSP430_16,5.3670 - BFD_RELOC_MSP430_16_PCREL_BYTE,5.3671 - BFD_RELOC_MSP430_16_BYTE,5.3672 - BFD_RELOC_MSP430_2X_PCREL,5.3673 - BFD_RELOC_MSP430_RL_PCREL,5.3674 -5.3675 -/* IQ2000 Relocations. */5.3676 - BFD_RELOC_IQ2000_OFFSET_16,5.3677 - BFD_RELOC_IQ2000_OFFSET_21,5.3678 - BFD_RELOC_IQ2000_UHI16,5.3679 -5.3680 -/* Special Xtensa relocation used only by PLT entries in ELF shared5.3681 -objects to indicate that the runtime linker should set the value5.3682 -to one of its own internal functions or data structures. */5.3683 - BFD_RELOC_XTENSA_RTLD,5.3684 -5.3685 -/* Xtensa relocations for ELF shared objects. */5.3686 - BFD_RELOC_XTENSA_GLOB_DAT,5.3687 - BFD_RELOC_XTENSA_JMP_SLOT,5.3688 - BFD_RELOC_XTENSA_RELATIVE,5.3689 -5.3690 -/* Xtensa relocation used in ELF object files for symbols that may require5.3691 -PLT entries. Otherwise, this is just a generic 32-bit relocation. */5.3692 - BFD_RELOC_XTENSA_PLT,5.3693 -5.3694 -/* Xtensa relocations to mark the difference of two local symbols.5.3695 -These are only needed to support linker relaxation and can be ignored5.3696 -when not relaxing. The field is set to the value of the difference5.3697 -assuming no relaxation. The relocation encodes the position of the5.3698 -first symbol so the linker can determine whether to adjust the field5.3699 -value. */5.3700 - BFD_RELOC_XTENSA_DIFF8,5.3701 - BFD_RELOC_XTENSA_DIFF16,5.3702 - BFD_RELOC_XTENSA_DIFF32,5.3703 -5.3704 -/* Generic Xtensa relocations for instruction operands. Only the slot5.3705 -number is encoded in the relocation. The relocation applies to the5.3706 -last PC-relative immediate operand, or if there are no PC-relative5.3707 -immediates, to the last immediate operand. */5.3708 - BFD_RELOC_XTENSA_SLOT0_OP,5.3709 - BFD_RELOC_XTENSA_SLOT1_OP,5.3710 - BFD_RELOC_XTENSA_SLOT2_OP,5.3711 - BFD_RELOC_XTENSA_SLOT3_OP,5.3712 - BFD_RELOC_XTENSA_SLOT4_OP,5.3713 - BFD_RELOC_XTENSA_SLOT5_OP,5.3714 - BFD_RELOC_XTENSA_SLOT6_OP,5.3715 - BFD_RELOC_XTENSA_SLOT7_OP,5.3716 - BFD_RELOC_XTENSA_SLOT8_OP,5.3717 - BFD_RELOC_XTENSA_SLOT9_OP,5.3718 - BFD_RELOC_XTENSA_SLOT10_OP,5.3719 - BFD_RELOC_XTENSA_SLOT11_OP,5.3720 - BFD_RELOC_XTENSA_SLOT12_OP,5.3721 - BFD_RELOC_XTENSA_SLOT13_OP,5.3722 - BFD_RELOC_XTENSA_SLOT14_OP,5.3723 -5.3724 -/* Alternate Xtensa relocations. Only the slot is encoded in the5.3725 -relocation. The meaning of these relocations is opcode-specific. */5.3726 - BFD_RELOC_XTENSA_SLOT0_ALT,5.3727 - BFD_RELOC_XTENSA_SLOT1_ALT,5.3728 - BFD_RELOC_XTENSA_SLOT2_ALT,5.3729 - BFD_RELOC_XTENSA_SLOT3_ALT,5.3730 - BFD_RELOC_XTENSA_SLOT4_ALT,5.3731 - BFD_RELOC_XTENSA_SLOT5_ALT,5.3732 - BFD_RELOC_XTENSA_SLOT6_ALT,5.3733 - BFD_RELOC_XTENSA_SLOT7_ALT,5.3734 - BFD_RELOC_XTENSA_SLOT8_ALT,5.3735 - BFD_RELOC_XTENSA_SLOT9_ALT,5.3736 - BFD_RELOC_XTENSA_SLOT10_ALT,5.3737 - BFD_RELOC_XTENSA_SLOT11_ALT,5.3738 - BFD_RELOC_XTENSA_SLOT12_ALT,5.3739 - BFD_RELOC_XTENSA_SLOT13_ALT,5.3740 - BFD_RELOC_XTENSA_SLOT14_ALT,5.3741 -5.3742 -/* Xtensa relocations for backward compatibility. These have all been5.3743 -replaced by BFD_RELOC_XTENSA_SLOT0_OP. */5.3744 - BFD_RELOC_XTENSA_OP0,5.3745 - BFD_RELOC_XTENSA_OP1,5.3746 - BFD_RELOC_XTENSA_OP2,5.3747 -5.3748 -/* Xtensa relocation to mark that the assembler expanded the5.3749 -instructions from an original target. The expansion size is5.3750 -encoded in the reloc size. */5.3751 - BFD_RELOC_XTENSA_ASM_EXPAND,5.3752 -5.3753 -/* Xtensa relocation to mark that the linker should simplify5.3754 -assembler-expanded instructions. This is commonly used5.3755 -internally by the linker after analysis of a5.3756 -BFD_RELOC_XTENSA_ASM_EXPAND. */5.3757 - BFD_RELOC_XTENSA_ASM_SIMPLIFY,5.3758 - BFD_RELOC_UNUSED };5.3759 -typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;5.3760 -reloc_howto_type *bfd_reloc_type_lookup5.3761 - (bfd *abfd, bfd_reloc_code_real_type code);5.3762 -5.3763 -const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);5.3764 -5.3765 -/* Extracted from syms.c. */5.3766 -5.3767 -typedef struct bfd_symbol5.3768 -{5.3769 - /* A pointer to the BFD which owns the symbol. This information5.3770 - is necessary so that a back end can work out what additional5.3771 - information (invisible to the application writer) is carried5.3772 - with the symbol.5.3773 -5.3774 - This field is *almost* redundant, since you can use section->owner5.3775 - instead, except that some symbols point to the global sections5.3776 - bfd_{abs,com,und}_section. This could be fixed by making5.3777 - these globals be per-bfd (or per-target-flavor). FIXME. */5.3778 - struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */5.3779 -5.3780 - /* The text of the symbol. The name is left alone, and not copied; the5.3781 - application may not alter it. */5.3782 - const char *name;5.3783 -5.3784 - /* The value of the symbol. This really should be a union of a5.3785 - numeric value with a pointer, since some flags indicate that5.3786 - a pointer to another symbol is stored here. */5.3787 - symvalue value;5.3788 -5.3789 - /* Attributes of a symbol. */5.3790 -#define BSF_NO_FLAGS 0x005.3791 -5.3792 - /* The symbol has local scope; <<static>> in <<C>>. The value5.3793 - is the offset into the section of the data. */5.3794 -#define BSF_LOCAL 0x015.3795 -5.3796 - /* The symbol has global scope; initialized data in <<C>>. The5.3797 - value is the offset into the section of the data. */5.3798 -#define BSF_GLOBAL 0x025.3799 -5.3800 - /* The symbol has global scope and is exported. The value is5.3801 - the offset into the section of the data. */5.3802 -#define BSF_EXPORT BSF_GLOBAL /* No real difference. */5.3803 -5.3804 - /* A normal C symbol would be one of:5.3805 - <<BSF_LOCAL>>, <<BSF_FORT_COMM>>, <<BSF_UNDEFINED>> or5.3806 - <<BSF_GLOBAL>>. */5.3807 -5.3808 - /* The symbol is a debugging record. The value has an arbitrary5.3809 - meaning, unless BSF_DEBUGGING_RELOC is also set. */5.3810 -#define BSF_DEBUGGING 0x085.3811 -5.3812 - /* The symbol denotes a function entry point. Used in ELF,5.3813 - perhaps others someday. */5.3814 -#define BSF_FUNCTION 0x105.3815 -5.3816 - /* Used by the linker. */5.3817 -#define BSF_KEEP 0x205.3818 -#define BSF_KEEP_G 0x405.3819 -5.3820 - /* A weak global symbol, overridable without warnings by5.3821 - a regular global symbol of the same name. */5.3822 -#define BSF_WEAK 0x805.3823 -5.3824 - /* This symbol was created to point to a section, e.g. ELF's5.3825 - STT_SECTION symbols. */5.3826 -#define BSF_SECTION_SYM 0x1005.3827 -5.3828 - /* The symbol used to be a common symbol, but now it is5.3829 - allocated. */5.3830 -#define BSF_OLD_COMMON 0x2005.3831 -5.3832 - /* The default value for common data. */5.3833 -#define BFD_FORT_COMM_DEFAULT_VALUE 05.3834 -5.3835 - /* In some files the type of a symbol sometimes alters its5.3836 - location in an output file - ie in coff a <<ISFCN>> symbol5.3837 - which is also <<C_EXT>> symbol appears where it was5.3838 - declared and not at the end of a section. This bit is set5.3839 - by the target BFD part to convey this information. */5.3840 -#define BSF_NOT_AT_END 0x4005.3841 -5.3842 - /* Signal that the symbol is the label of constructor section. */5.3843 -#define BSF_CONSTRUCTOR 0x8005.3844 -5.3845 - /* Signal that the symbol is a warning symbol. The name is a5.3846 - warning. The name of the next symbol is the one to warn about;5.3847 - if a reference is made to a symbol with the same name as the next5.3848 - symbol, a warning is issued by the linker. */5.3849 -#define BSF_WARNING 0x10005.3850 -5.3851 - /* Signal that the symbol is indirect. This symbol is an indirect5.3852 - pointer to the symbol with the same name as the next symbol. */5.3853 -#define BSF_INDIRECT 0x20005.3854 -5.3855 - /* BSF_FILE marks symbols that contain a file name. This is used5.3856 - for ELF STT_FILE symbols. */5.3857 -#define BSF_FILE 0x40005.3858 -5.3859 - /* Symbol is from dynamic linking information. */5.3860 -#define BSF_DYNAMIC 0x80005.3861 -5.3862 - /* The symbol denotes a data object. Used in ELF, and perhaps5.3863 - others someday. */5.3864 -#define BSF_OBJECT 0x100005.3865 -5.3866 - /* This symbol is a debugging symbol. The value is the offset5.3867 - into the section of the data. BSF_DEBUGGING should be set5.3868 - as well. */5.3869 -#define BSF_DEBUGGING_RELOC 0x200005.3870 -5.3871 - /* This symbol is thread local. Used in ELF. */5.3872 -#define BSF_THREAD_LOCAL 0x400005.3873 -5.3874 - flagword flags;5.3875 -5.3876 - /* A pointer to the section to which this symbol is5.3877 - relative. This will always be non NULL, there are special5.3878 - sections for undefined and absolute symbols. */5.3879 - struct bfd_section *section;5.3880 -5.3881 - /* Back end special data. */5.3882 - union5.3883 - {5.3884 - void *p;5.3885 - bfd_vma i;5.3886 - }5.3887 - udata;5.3888 -}5.3889 -asymbol;5.3890 -5.3891 -#define bfd_get_symtab_upper_bound(abfd) \5.3892 - BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))5.3893 -5.3894 -bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);5.3895 -5.3896 -bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);5.3897 -5.3898 -#define bfd_is_local_label_name(abfd, name) \5.3899 - BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))5.3900 -5.3901 -bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);5.3902 -5.3903 -#define bfd_is_target_special_symbol(abfd, sym) \5.3904 - BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))5.3905 -5.3906 -#define bfd_canonicalize_symtab(abfd, location) \5.3907 - BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))5.3908 -5.3909 -bfd_boolean bfd_set_symtab5.3910 - (bfd *abfd, asymbol **location, unsigned int count);5.3911 -5.3912 -void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);5.3913 -5.3914 -#define bfd_make_empty_symbol(abfd) \5.3915 - BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))5.3916 -5.3917 -asymbol *_bfd_generic_make_empty_symbol (bfd *);5.3918 -5.3919 -#define bfd_make_debug_symbol(abfd,ptr,size) \5.3920 - BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))5.3921 -5.3922 -int bfd_decode_symclass (asymbol *symbol);5.3923 -5.3924 -bfd_boolean bfd_is_undefined_symclass (int symclass);5.3925 -5.3926 -void bfd_symbol_info (asymbol *symbol, symbol_info *ret);5.3927 -5.3928 -bfd_boolean bfd_copy_private_symbol_data5.3929 - (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);5.3930 -5.3931 -#define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \5.3932 - BFD_SEND (obfd, _bfd_copy_private_symbol_data, \5.3933 - (ibfd, isymbol, obfd, osymbol))5.3934 -5.3935 -/* Extracted from bfd.c. */5.3936 -struct bfd5.3937 -{5.3938 - /* A unique identifier of the BFD */5.3939 - unsigned int id;5.3940 -5.3941 - /* The filename the application opened the BFD with. */5.3942 - const char *filename;5.3943 -5.3944 - /* A pointer to the target jump table. */5.3945 - const struct bfd_target *xvec;5.3946 -5.3947 - /* The IOSTREAM, and corresponding IO vector that provide access5.3948 - to the file backing the BFD. */5.3949 - void *iostream;5.3950 - const struct bfd_iovec *iovec;5.3951 -5.3952 - /* Is the file descriptor being cached? That is, can it be closed as5.3953 - needed, and re-opened when accessed later? */5.3954 - bfd_boolean cacheable;5.3955 -5.3956 - /* Marks whether there was a default target specified when the5.3957 - BFD was opened. This is used to select which matching algorithm5.3958 - to use to choose the back end. */5.3959 - bfd_boolean target_defaulted;5.3960 -5.3961 - /* The caching routines use these to maintain a5.3962 - least-recently-used list of BFDs. */5.3963 - struct bfd *lru_prev, *lru_next;5.3964 -5.3965 - /* When a file is closed by the caching routines, BFD retains5.3966 - state information on the file here... */5.3967 - ufile_ptr where;5.3968 -5.3969 - /* ... and here: (``once'' means at least once). */5.3970 - bfd_boolean opened_once;5.3971 -5.3972 - /* Set if we have a locally maintained mtime value, rather than5.3973 - getting it from the file each time. */5.3974 - bfd_boolean mtime_set;5.3975 -5.3976 - /* File modified time, if mtime_set is TRUE. */5.3977 - long mtime;5.3978 -5.3979 - /* Reserved for an unimplemented file locking extension. */5.3980 - int ifd;5.3981 -5.3982 - /* The format which belongs to the BFD. (object, core, etc.) */5.3983 - bfd_format format;5.3984 -5.3985 - /* The direction with which the BFD was opened. */5.3986 - enum bfd_direction5.3987 - {5.3988 - no_direction = 0,5.3989 - read_direction = 1,5.3990 - write_direction = 2,5.3991 - both_direction = 35.3992 - }5.3993 - direction;5.3994 -5.3995 - /* Format_specific flags. */5.3996 - flagword flags;5.3997 -5.3998 - /* Currently my_archive is tested before adding origin to5.3999 - anything. I believe that this can become always an add of5.4000 - origin, with origin set to 0 for non archive files. */5.4001 - ufile_ptr origin;5.4002 -5.4003 - /* Remember when output has begun, to stop strange things5.4004 - from happening. */5.4005 - bfd_boolean output_has_begun;5.4006 -5.4007 - /* A hash table for section names. */5.4008 - struct bfd_hash_table section_htab;5.4009 -5.4010 - /* Pointer to linked list of sections. */5.4011 - struct bfd_section *sections;5.4012 -5.4013 - /* The place where we add to the section list. */5.4014 - struct bfd_section **section_tail;5.4015 -5.4016 - /* The number of sections. */5.4017 - unsigned int section_count;5.4018 -5.4019 - /* Stuff only useful for object files:5.4020 - The start address. */5.4021 - bfd_vma start_address;5.4022 -5.4023 - /* Used for input and output. */5.4024 - unsigned int symcount;5.4025 -5.4026 - /* Symbol table for output BFD (with symcount entries). */5.4027 - struct bfd_symbol **outsymbols;5.4028 -5.4029 - /* Used for slurped dynamic symbol tables. */5.4030 - unsigned int dynsymcount;5.4031 -5.4032 - /* Pointer to structure which contains architecture information. */5.4033 - const struct bfd_arch_info *arch_info;5.4034 -5.4035 - /* Flag set if symbols from this BFD should not be exported. */5.4036 - bfd_boolean no_export;5.4037 -5.4038 - /* Stuff only useful for archives. */5.4039 - void *arelt_data;5.4040 - struct bfd *my_archive; /* The containing archive BFD. */5.4041 - struct bfd *next; /* The next BFD in the archive. */5.4042 - struct bfd *archive_head; /* The first BFD in the archive. */5.4043 - bfd_boolean has_armap;5.4044 -5.4045 - /* A chain of BFD structures involved in a link. */5.4046 - struct bfd *link_next;5.4047 -5.4048 - /* A field used by _bfd_generic_link_add_archive_symbols. This will5.4049 - be used only for archive elements. */5.4050 - int archive_pass;5.4051 -5.4052 - /* Used by the back end to hold private data. */5.4053 - union5.4054 - {5.4055 - struct aout_data_struct *aout_data;5.4056 - struct artdata *aout_ar_data;5.4057 - struct _oasys_data *oasys_obj_data;5.4058 - struct _oasys_ar_data *oasys_ar_data;5.4059 - struct coff_tdata *coff_obj_data;5.4060 - struct pe_tdata *pe_obj_data;5.4061 - struct xcoff_tdata *xcoff_obj_data;5.4062 - struct ecoff_tdata *ecoff_obj_data;5.4063 - struct ieee_data_struct *ieee_data;5.4064 - struct ieee_ar_data_struct *ieee_ar_data;5.4065 - struct srec_data_struct *srec_data;5.4066 - struct ihex_data_struct *ihex_data;5.4067 - struct tekhex_data_struct *tekhex_data;5.4068 - struct elf_obj_tdata *elf_obj_data;5.4069 - struct nlm_obj_tdata *nlm_obj_data;5.4070 - struct bout_data_struct *bout_data;5.4071 - struct mmo_data_struct *mmo_data;5.4072 - struct sun_core_struct *sun_core_data;5.4073 - struct sco5_core_struct *sco5_core_data;5.4074 - struct trad_core_struct *trad_core_data;5.4075 - struct som_data_struct *som_data;5.4076 - struct hpux_core_struct *hpux_core_data;5.4077 - struct hppabsd_core_struct *hppabsd_core_data;5.4078 - struct sgi_core_struct *sgi_core_data;5.4079 - struct lynx_core_struct *lynx_core_data;5.4080 - struct osf_core_struct *osf_core_data;5.4081 - struct cisco_core_struct *cisco_core_data;5.4082 - struct versados_data_struct *versados_data;5.4083 - struct netbsd_core_struct *netbsd_core_data;5.4084 - struct mach_o_data_struct *mach_o_data;5.4085 - struct mach_o_fat_data_struct *mach_o_fat_data;5.4086 - struct bfd_pef_data_struct *pef_data;5.4087 - struct bfd_pef_xlib_data_struct *pef_xlib_data;5.4088 - struct bfd_sym_data_struct *sym_data;5.4089 - void *any;5.4090 - }5.4091 - tdata;5.4092 -5.4093 - /* Used by the application to hold private data. */5.4094 - void *usrdata;5.4095 -5.4096 - /* Where all the allocated stuff under this BFD goes. This is a5.4097 - struct objalloc *, but we use void * to avoid requiring the inclusion5.4098 - of objalloc.h. */5.4099 - void *memory;5.4100 -};5.4101 -5.4102 -typedef enum bfd_error5.4103 -{5.4104 - bfd_error_no_error = 0,5.4105 - bfd_error_system_call,5.4106 - bfd_error_invalid_target,5.4107 - bfd_error_wrong_format,5.4108 - bfd_error_wrong_object_format,5.4109 - bfd_error_invalid_operation,5.4110 - bfd_error_no_memory,5.4111 - bfd_error_no_symbols,5.4112 - bfd_error_no_armap,5.4113 - bfd_error_no_more_archived_files,5.4114 - bfd_error_malformed_archive,5.4115 - bfd_error_file_not_recognized,5.4116 - bfd_error_file_ambiguously_recognized,5.4117 - bfd_error_no_contents,5.4118 - bfd_error_nonrepresentable_section,5.4119 - bfd_error_no_debug_section,5.4120 - bfd_error_bad_value,5.4121 - bfd_error_file_truncated,5.4122 - bfd_error_file_too_big,5.4123 - bfd_error_invalid_error_code5.4124 -}5.4125 -bfd_error_type;5.4126 -5.4127 -bfd_error_type bfd_get_error (void);5.4128 -5.4129 -void bfd_set_error (bfd_error_type error_tag);5.4130 -5.4131 -const char *bfd_errmsg (bfd_error_type error_tag);5.4132 -5.4133 -void bfd_perror (const char *message);5.4134 -5.4135 -typedef void (*bfd_error_handler_type) (const char *, ...);5.4136 -5.4137 -bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);5.4138 -5.4139 -void bfd_set_error_program_name (const char *);5.4140 -5.4141 -bfd_error_handler_type bfd_get_error_handler (void);5.4142 -5.4143 -long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);5.4144 -5.4145 -long bfd_canonicalize_reloc5.4146 - (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);5.4147 -5.4148 -void bfd_set_reloc5.4149 - (bfd *abfd, asection *sec, arelent **rel, unsigned int count);5.4150 -5.4151 -bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);5.4152 -5.4153 -int bfd_get_arch_size (bfd *abfd);5.4154 -5.4155 -int bfd_get_sign_extend_vma (bfd *abfd);5.4156 -5.4157 -bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);5.4158 -5.4159 -unsigned int bfd_get_gp_size (bfd *abfd);5.4160 -5.4161 -void bfd_set_gp_size (bfd *abfd, unsigned int i);5.4162 -5.4163 -bfd_vma bfd_scan_vma (const char *string, const char **end, int base);5.4164 -5.4165 -bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);5.4166 -5.4167 -#define bfd_copy_private_header_data(ibfd, obfd) \5.4168 - BFD_SEND (obfd, _bfd_copy_private_header_data, \5.4169 - (ibfd, obfd))5.4170 -bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);5.4171 -5.4172 -#define bfd_copy_private_bfd_data(ibfd, obfd) \5.4173 - BFD_SEND (obfd, _bfd_copy_private_bfd_data, \5.4174 - (ibfd, obfd))5.4175 -bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd);5.4176 -5.4177 -#define bfd_merge_private_bfd_data(ibfd, obfd) \5.4178 - BFD_SEND (obfd, _bfd_merge_private_bfd_data, \5.4179 - (ibfd, obfd))5.4180 -bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);5.4181 -5.4182 -#define bfd_set_private_flags(abfd, flags) \5.4183 - BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))5.4184 -#define bfd_sizeof_headers(abfd, reloc) \5.4185 - BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, reloc))5.4186 -5.4187 -#define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \5.4188 - BFD_SEND (abfd, _bfd_find_nearest_line, \5.4189 - (abfd, sec, syms, off, file, func, line))5.4190 -5.4191 -#define bfd_debug_info_start(abfd) \5.4192 - BFD_SEND (abfd, _bfd_debug_info_start, (abfd))5.4193 -5.4194 -#define bfd_debug_info_end(abfd) \5.4195 - BFD_SEND (abfd, _bfd_debug_info_end, (abfd))5.4196 -5.4197 -#define bfd_debug_info_accumulate(abfd, section) \5.4198 - BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))5.4199 -5.4200 -#define bfd_stat_arch_elt(abfd, stat) \5.4201 - BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat))5.4202 -5.4203 -#define bfd_update_armap_timestamp(abfd) \5.4204 - BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))5.4205 -5.4206 -#define bfd_set_arch_mach(abfd, arch, mach)\5.4207 - BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))5.4208 -5.4209 -#define bfd_relax_section(abfd, section, link_info, again) \5.4210 - BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))5.4211 -5.4212 -#define bfd_gc_sections(abfd, link_info) \5.4213 - BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))5.4214 -5.4215 -#define bfd_merge_sections(abfd, link_info) \5.4216 - BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))5.4217 -5.4218 -#define bfd_is_group_section(abfd, sec) \5.4219 - BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))5.4220 -5.4221 -#define bfd_discard_group(abfd, sec) \5.4222 - BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))5.4223 -5.4224 -#define bfd_link_hash_table_create(abfd) \5.4225 - BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))5.4226 -5.4227 -#define bfd_link_hash_table_free(abfd, hash) \5.4228 - BFD_SEND (abfd, _bfd_link_hash_table_free, (hash))5.4229 -5.4230 -#define bfd_link_add_symbols(abfd, info) \5.4231 - BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))5.4232 -5.4233 -#define bfd_link_just_syms(abfd, sec, info) \5.4234 - BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))5.4235 -5.4236 -#define bfd_final_link(abfd, info) \5.4237 - BFD_SEND (abfd, _bfd_final_link, (abfd, info))5.4238 -5.4239 -#define bfd_free_cached_info(abfd) \5.4240 - BFD_SEND (abfd, _bfd_free_cached_info, (abfd))5.4241 -5.4242 -#define bfd_get_dynamic_symtab_upper_bound(abfd) \5.4243 - BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))5.4244 -5.4245 -#define bfd_print_private_bfd_data(abfd, file)\5.4246 - BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))5.4247 -5.4248 -#define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \5.4249 - BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))5.4250 -5.4251 -#define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \5.4252 - BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \5.4253 - dyncount, dynsyms, ret))5.4254 -5.4255 -#define bfd_get_dynamic_reloc_upper_bound(abfd) \5.4256 - BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))5.4257 -5.4258 -#define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \5.4259 - BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))5.4260 -5.4261 -extern bfd_byte *bfd_get_relocated_section_contents5.4262 - (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,5.4263 - bfd_boolean, asymbol **);5.4264 -5.4265 -bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);5.4266 -5.4267 -struct bfd_preserve5.4268 -{5.4269 - void *marker;5.4270 - void *tdata;5.4271 - flagword flags;5.4272 - const struct bfd_arch_info *arch_info;5.4273 - struct bfd_section *sections;5.4274 - struct bfd_section **section_tail;5.4275 - unsigned int section_count;5.4276 - struct bfd_hash_table section_htab;5.4277 -};5.4278 -5.4279 -bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *);5.4280 -5.4281 -void bfd_preserve_restore (bfd *, struct bfd_preserve *);5.4282 -5.4283 -void bfd_preserve_finish (bfd *, struct bfd_preserve *);5.4284 -5.4285 -/* Extracted from archive.c. */5.4286 -symindex bfd_get_next_mapent5.4287 - (bfd *abfd, symindex previous, carsym **sym);5.4288 -5.4289 -bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);5.4290 -5.4291 -bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);5.4292 -5.4293 -/* Extracted from corefile.c. */5.4294 -const char *bfd_core_file_failing_command (bfd *abfd);5.4295 -5.4296 -int bfd_core_file_failing_signal (bfd *abfd);5.4297 -5.4298 -bfd_boolean core_file_matches_executable_p5.4299 - (bfd *core_bfd, bfd *exec_bfd);5.4300 -5.4301 -/* Extracted from targets.c. */5.4302 -#define BFD_SEND(bfd, message, arglist) \5.4303 - ((*((bfd)->xvec->message)) arglist)5.4304 -5.4305 -#ifdef DEBUG_BFD_SEND5.4306 -#undef BFD_SEND5.4307 -#define BFD_SEND(bfd, message, arglist) \5.4308 - (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \5.4309 - ((*((bfd)->xvec->message)) arglist) : \5.4310 - (bfd_assert (__FILE__,__LINE__), NULL))5.4311 -#endif5.4312 -#define BFD_SEND_FMT(bfd, message, arglist) \5.4313 - (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)5.4314 -5.4315 -#ifdef DEBUG_BFD_SEND5.4316 -#undef BFD_SEND_FMT5.4317 -#define BFD_SEND_FMT(bfd, message, arglist) \5.4318 - (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \5.4319 - (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \5.4320 - (bfd_assert (__FILE__,__LINE__), NULL))5.4321 -#endif5.4322 -5.4323 -enum bfd_flavour5.4324 -{5.4325 - bfd_target_unknown_flavour,5.4326 - bfd_target_aout_flavour,5.4327 - bfd_target_coff_flavour,5.4328 - bfd_target_ecoff_flavour,5.4329 - bfd_target_xcoff_flavour,5.4330 - bfd_target_elf_flavour,5.4331 - bfd_target_ieee_flavour,5.4332 - bfd_target_nlm_flavour,5.4333 - bfd_target_oasys_flavour,5.4334 - bfd_target_tekhex_flavour,5.4335 - bfd_target_srec_flavour,5.4336 - bfd_target_ihex_flavour,5.4337 - bfd_target_som_flavour,5.4338 - bfd_target_os9k_flavour,5.4339 - bfd_target_versados_flavour,5.4340 - bfd_target_msdos_flavour,5.4341 - bfd_target_ovax_flavour,5.4342 - bfd_target_evax_flavour,5.4343 - bfd_target_mmo_flavour,5.4344 - bfd_target_mach_o_flavour,5.4345 - bfd_target_pef_flavour,5.4346 - bfd_target_pef_xlib_flavour,5.4347 - bfd_target_sym_flavour5.4348 -};5.4349 -5.4350 -enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };5.4351 -5.4352 -/* Forward declaration. */5.4353 -typedef struct bfd_link_info _bfd_link_info;5.4354 -5.4355 -typedef struct bfd_target5.4356 -{5.4357 - /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */5.4358 - char *name;5.4359 -5.4360 - /* The "flavour" of a back end is a general indication about5.4361 - the contents of a file. */5.4362 - enum bfd_flavour flavour;5.4363 -5.4364 - /* The order of bytes within the data area of a file. */5.4365 - enum bfd_endian byteorder;5.4366 -5.4367 - /* The order of bytes within the header parts of a file. */5.4368 - enum bfd_endian header_byteorder;5.4369 -5.4370 - /* A mask of all the flags which an executable may have set -5.4371 - from the set <<BFD_NO_FLAGS>>, <<HAS_RELOC>>, ...<<D_PAGED>>. */5.4372 - flagword object_flags;5.4373 -5.4374 - /* A mask of all the flags which a section may have set - from5.4375 - the set <<SEC_NO_FLAGS>>, <<SEC_ALLOC>>, ...<<SET_NEVER_LOAD>>. */5.4376 - flagword section_flags;5.4377 -5.4378 - /* The character normally found at the front of a symbol.5.4379 - (if any), perhaps `_'. */5.4380 - char symbol_leading_char;5.4381 -5.4382 - /* The pad character for file names within an archive header. */5.4383 - char ar_pad_char;5.4384 -5.4385 - /* The maximum number of characters in an archive header. */5.4386 - unsigned short ar_max_namelen;5.4387 -5.4388 - /* Entries for byte swapping for data. These are different from the5.4389 - other entry points, since they don't take a BFD as the first argument.5.4390 - Certain other handlers could do the same. */5.4391 - bfd_uint64_t (*bfd_getx64) (const void *);5.4392 - bfd_int64_t (*bfd_getx_signed_64) (const void *);5.4393 - void (*bfd_putx64) (bfd_uint64_t, void *);5.4394 - bfd_vma (*bfd_getx32) (const void *);5.4395 - bfd_signed_vma (*bfd_getx_signed_32) (const void *);5.4396 - void (*bfd_putx32) (bfd_vma, void *);5.4397 - bfd_vma (*bfd_getx16) (const void *);5.4398 - bfd_signed_vma (*bfd_getx_signed_16) (const void *);5.4399 - void (*bfd_putx16) (bfd_vma, void *);5.4400 -5.4401 - /* Byte swapping for the headers. */5.4402 - bfd_uint64_t (*bfd_h_getx64) (const void *);5.4403 - bfd_int64_t (*bfd_h_getx_signed_64) (const void *);5.4404 - void (*bfd_h_putx64) (bfd_uint64_t, void *);5.4405 - bfd_vma (*bfd_h_getx32) (const void *);5.4406 - bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);5.4407 - void (*bfd_h_putx32) (bfd_vma, void *);5.4408 - bfd_vma (*bfd_h_getx16) (const void *);5.4409 - bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);5.4410 - void (*bfd_h_putx16) (bfd_vma, void *);5.4411 -5.4412 - /* Format dependent routines: these are vectors of entry points5.4413 - within the target vector structure, one for each format to check. */5.4414 -5.4415 - /* Check the format of a file being read. Return a <<bfd_target *>> or zero. */5.4416 - const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *);5.4417 -5.4418 - /* Set the format of a file being written. */5.4419 - bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);5.4420 -5.4421 - /* Write cached information into a file being written, at <<bfd_close>>. */5.4422 - bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);5.4423 -5.4424 -5.4425 - /* Generic entry points. */5.4426 -#define BFD_JUMP_TABLE_GENERIC(NAME) \5.4427 - NAME##_close_and_cleanup, \5.4428 - NAME##_bfd_free_cached_info, \5.4429 - NAME##_new_section_hook, \5.4430 - NAME##_get_section_contents, \5.4431 - NAME##_get_section_contents_in_window5.4432 -5.4433 - /* Called when the BFD is being closed to do any necessary cleanup. */5.4434 - bfd_boolean (*_close_and_cleanup) (bfd *);5.4435 - /* Ask the BFD to free all cached information. */5.4436 - bfd_boolean (*_bfd_free_cached_info) (bfd *);5.4437 - /* Called when a new section is created. */5.4438 - bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);5.4439 - /* Read the contents of a section. */5.4440 - bfd_boolean (*_bfd_get_section_contents)5.4441 - (bfd *, sec_ptr, void *, file_ptr, bfd_size_type);5.4442 - bfd_boolean (*_bfd_get_section_contents_in_window)5.4443 - (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type);5.4444 -5.4445 - /* Entry points to copy private data. */5.4446 -#define BFD_JUMP_TABLE_COPY(NAME) \5.4447 - NAME##_bfd_copy_private_bfd_data, \5.4448 - NAME##_bfd_merge_private_bfd_data, \5.4449 - NAME##_bfd_copy_private_section_data, \5.4450 - NAME##_bfd_copy_private_symbol_data, \5.4451 - NAME##_bfd_copy_private_header_data, \5.4452 - NAME##_bfd_set_private_flags, \5.4453 - NAME##_bfd_print_private_bfd_data5.4454 -5.4455 - /* Called to copy BFD general private data from one object file5.4456 - to another. */5.4457 - bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);5.4458 - /* Called to merge BFD general private data from one object file5.4459 - to a common output file when linking. */5.4460 - bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, bfd *);5.4461 - /* Called to copy BFD private section data from one object file5.4462 - to another. */5.4463 - bfd_boolean (*_bfd_copy_private_section_data)5.4464 - (bfd *, sec_ptr, bfd *, sec_ptr);5.4465 - /* Called to copy BFD private symbol data from one symbol5.4466 - to another. */5.4467 - bfd_boolean (*_bfd_copy_private_symbol_data)5.4468 - (bfd *, asymbol *, bfd *, asymbol *);5.4469 - /* Called to copy BFD private header data from one object file5.4470 - to another. */5.4471 - bfd_boolean (*_bfd_copy_private_header_data)5.4472 - (bfd *, bfd *);5.4473 - /* Called to set private backend flags. */5.4474 - bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);5.4475 -5.4476 - /* Called to print private BFD data. */5.4477 - bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);5.4478 -5.4479 - /* Core file entry points. */5.4480 -#define BFD_JUMP_TABLE_CORE(NAME) \5.4481 - NAME##_core_file_failing_command, \5.4482 - NAME##_core_file_failing_signal, \5.4483 - NAME##_core_file_matches_executable_p5.4484 -5.4485 - char * (*_core_file_failing_command) (bfd *);5.4486 - int (*_core_file_failing_signal) (bfd *);5.4487 - bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);5.4488 -5.4489 - /* Archive entry points. */5.4490 -#define BFD_JUMP_TABLE_ARCHIVE(NAME) \5.4491 - NAME##_slurp_armap, \5.4492 - NAME##_slurp_extended_name_table, \5.4493 - NAME##_construct_extended_name_table, \5.4494 - NAME##_truncate_arname, \5.4495 - NAME##_write_armap, \5.4496 - NAME##_read_ar_hdr, \5.4497 - NAME##_openr_next_archived_file, \5.4498 - NAME##_get_elt_at_index, \5.4499 - NAME##_generic_stat_arch_elt, \5.4500 - NAME##_update_armap_timestamp5.4501 -5.4502 - bfd_boolean (*_bfd_slurp_armap) (bfd *);5.4503 - bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);5.4504 - bfd_boolean (*_bfd_construct_extended_name_table)5.4505 - (bfd *, char **, bfd_size_type *, const char **);5.4506 - void (*_bfd_truncate_arname) (bfd *, const char *, char *);5.4507 - bfd_boolean (*write_armap)5.4508 - (bfd *, unsigned int, struct orl *, unsigned int, int);5.4509 - void * (*_bfd_read_ar_hdr_fn) (bfd *);5.4510 - bfd * (*openr_next_archived_file) (bfd *, bfd *);5.4511 -#define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i))5.4512 - bfd * (*_bfd_get_elt_at_index) (bfd *, symindex);5.4513 - int (*_bfd_stat_arch_elt) (bfd *, struct stat *);5.4514 - bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);5.4515 -5.4516 - /* Entry points used for symbols. */5.4517 -#define BFD_JUMP_TABLE_SYMBOLS(NAME) \5.4518 - NAME##_get_symtab_upper_bound, \5.4519 - NAME##_canonicalize_symtab, \5.4520 - NAME##_make_empty_symbol, \5.4521 - NAME##_print_symbol, \5.4522 - NAME##_get_symbol_info, \5.4523 - NAME##_bfd_is_local_label_name, \5.4524 - NAME##_bfd_is_target_special_symbol, \5.4525 - NAME##_get_lineno, \5.4526 - NAME##_find_nearest_line, \5.4527 - NAME##_bfd_make_debug_symbol, \5.4528 - NAME##_read_minisymbols, \5.4529 - NAME##_minisymbol_to_symbol5.4530 -5.4531 - long (*_bfd_get_symtab_upper_bound) (bfd *);5.4532 - long (*_bfd_canonicalize_symtab)5.4533 - (bfd *, struct bfd_symbol **);5.4534 - struct bfd_symbol *5.4535 - (*_bfd_make_empty_symbol) (bfd *);5.4536 - void (*_bfd_print_symbol)5.4537 - (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);5.4538 -#define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))5.4539 - void (*_bfd_get_symbol_info)5.4540 - (bfd *, struct bfd_symbol *, symbol_info *);5.4541 -#define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))5.4542 - bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);5.4543 - bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);5.4544 - alent * (*_get_lineno) (bfd *, struct bfd_symbol *);5.4545 - bfd_boolean (*_bfd_find_nearest_line)5.4546 - (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma,5.4547 - const char **, const char **, unsigned int *);5.4548 - /* Back-door to allow format-aware applications to create debug symbols5.4549 - while using BFD for everything else. Currently used by the assembler5.4550 - when creating COFF files. */5.4551 - asymbol * (*_bfd_make_debug_symbol)5.4552 - (bfd *, void *, unsigned long size);5.4553 -#define bfd_read_minisymbols(b, d, m, s) \5.4554 - BFD_SEND (b, _read_minisymbols, (b, d, m, s))5.4555 - long (*_read_minisymbols)5.4556 - (bfd *, bfd_boolean, void **, unsigned int *);5.4557 -#define bfd_minisymbol_to_symbol(b, d, m, f) \5.4558 - BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))5.4559 - asymbol * (*_minisymbol_to_symbol)5.4560 - (bfd *, bfd_boolean, const void *, asymbol *);5.4561 -5.4562 - /* Routines for relocs. */5.4563 -#define BFD_JUMP_TABLE_RELOCS(NAME) \5.4564 - NAME##_get_reloc_upper_bound, \5.4565 - NAME##_canonicalize_reloc, \5.4566 - NAME##_bfd_reloc_type_lookup5.4567 -5.4568 - long (*_get_reloc_upper_bound) (bfd *, sec_ptr);5.4569 - long (*_bfd_canonicalize_reloc)5.4570 - (bfd *, sec_ptr, arelent **, struct bfd_symbol **);5.4571 - /* See documentation on reloc types. */5.4572 - reloc_howto_type *5.4573 - (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);5.4574 -5.4575 - /* Routines used when writing an object file. */5.4576 -#define BFD_JUMP_TABLE_WRITE(NAME) \5.4577 - NAME##_set_arch_mach, \5.4578 - NAME##_set_section_contents5.4579 -5.4580 - bfd_boolean (*_bfd_set_arch_mach)5.4581 - (bfd *, enum bfd_architecture, unsigned long);5.4582 - bfd_boolean (*_bfd_set_section_contents)5.4583 - (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type);5.4584 -5.4585 - /* Routines used by the linker. */5.4586 -#define BFD_JUMP_TABLE_LINK(NAME) \5.4587 - NAME##_sizeof_headers, \5.4588 - NAME##_bfd_get_relocated_section_contents, \5.4589 - NAME##_bfd_relax_section, \5.4590 - NAME##_bfd_link_hash_table_create, \5.4591 - NAME##_bfd_link_hash_table_free, \5.4592 - NAME##_bfd_link_add_symbols, \5.4593 - NAME##_bfd_link_just_syms, \5.4594 - NAME##_bfd_final_link, \5.4595 - NAME##_bfd_link_split_section, \5.4596 - NAME##_bfd_gc_sections, \5.4597 - NAME##_bfd_merge_sections, \5.4598 - NAME##_bfd_is_group_section, \5.4599 - NAME##_bfd_discard_group, \5.4600 - NAME##_section_already_linked \5.4601 -5.4602 - int (*_bfd_sizeof_headers) (bfd *, bfd_boolean);5.4603 - bfd_byte * (*_bfd_get_relocated_section_contents)5.4604 - (bfd *, struct bfd_link_info *, struct bfd_link_order *,5.4605 - bfd_byte *, bfd_boolean, struct bfd_symbol **);5.4606 -5.4607 - bfd_boolean (*_bfd_relax_section)5.4608 - (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);5.4609 -5.4610 - /* Create a hash table for the linker. Different backends store5.4611 - different information in this table. */5.4612 - struct bfd_link_hash_table *5.4613 - (*_bfd_link_hash_table_create) (bfd *);5.4614 -5.4615 - /* Release the memory associated with the linker hash table. */5.4616 - void (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *);5.4617 -5.4618 - /* Add symbols from this object file into the hash table. */5.4619 - bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);5.4620 -5.4621 - /* Indicate that we are only retrieving symbol values from this section. */5.4622 - void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);5.4623 -5.4624 - /* Do a link based on the link_order structures attached to each5.4625 - section of the BFD. */5.4626 - bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);5.4627 -5.4628 - /* Should this section be split up into smaller pieces during linking. */5.4629 - bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);5.4630 -5.4631 - /* Remove sections that are not referenced from the output. */5.4632 - bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);5.4633 -5.4634 - /* Attempt to merge SEC_MERGE sections. */5.4635 - bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);5.4636 -5.4637 - /* Is this section a member of a group? */5.4638 - bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);5.4639 -5.4640 - /* Discard members of a group. */5.4641 - bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);5.4642 -5.4643 - /* Check if SEC has been already linked during a reloceatable or5.4644 - final link. */5.4645 - void (*_section_already_linked) (bfd *, struct bfd_section *);5.4646 -5.4647 - /* Routines to handle dynamic symbols and relocs. */5.4648 -#define BFD_JUMP_TABLE_DYNAMIC(NAME) \5.4649 - NAME##_get_dynamic_symtab_upper_bound, \5.4650 - NAME##_canonicalize_dynamic_symtab, \5.4651 - NAME##_get_synthetic_symtab, \5.4652 - NAME##_get_dynamic_reloc_upper_bound, \5.4653 - NAME##_canonicalize_dynamic_reloc5.4654 -5.4655 - /* Get the amount of memory required to hold the dynamic symbols. */5.4656 - long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);5.4657 - /* Read in the dynamic symbols. */5.4658 - long (*_bfd_canonicalize_dynamic_symtab)5.4659 - (bfd *, struct bfd_symbol **);5.4660 - /* Create synthetized symbols. */5.4661 - long (*_bfd_get_synthetic_symtab)5.4662 - (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **,5.4663 - struct bfd_symbol **);5.4664 - /* Get the amount of memory required to hold the dynamic relocs. */5.4665 - long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);5.4666 - /* Read in the dynamic relocs. */5.4667 - long (*_bfd_canonicalize_dynamic_reloc)5.4668 - (bfd *, arelent **, struct bfd_symbol **);5.4669 -5.4670 - /* Opposite endian version of this target. */5.4671 - const struct bfd_target * alternative_target;5.4672 -5.4673 - /* Data for use by back-end routines, which isn't5.4674 - generic enough to belong in this structure. */5.4675 - const void *backend_data;5.4676 -5.4677 -} bfd_target;5.4678 -5.4679 -bfd_boolean bfd_set_default_target (const char *name);5.4680 -5.4681 -const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);5.4682 -5.4683 -const char ** bfd_target_list (void);5.4684 -5.4685 -const bfd_target *bfd_search_for_target5.4686 - (int (*search_func) (const bfd_target *, void *),5.4687 - void *);5.4688 -5.4689 -/* Extracted from format.c. */5.4690 -bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);5.4691 -5.4692 -bfd_boolean bfd_check_format_matches5.4693 - (bfd *abfd, bfd_format format, char ***matching);5.4694 -5.4695 -bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);5.4696 -5.4697 -const char *bfd_format_string (bfd_format format);5.4698 -5.4699 -/* Extracted from linker.c. */5.4700 -bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);5.4701 -5.4702 -#define bfd_link_split_section(abfd, sec) \5.4703 - BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))5.4704 -5.4705 -void bfd_section_already_linked (bfd *abfd, asection *sec);5.4706 -5.4707 -#define bfd_section_already_linked(abfd, sec) \5.4708 - BFD_SEND (abfd, _section_already_linked, (abfd, sec))5.4709 -5.4710 -/* Extracted from simple.c. */5.4711 -bfd_byte *bfd_simple_get_relocated_section_contents5.4712 - (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);5.4713 -5.4714 -#ifdef __cplusplus5.4715 -}5.4716 -#endif5.4717 -#endif
6.1 --- a/src/x86dasm/dis-asm.h Tue Mar 06 09:04:34 2012 +10006.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00006.3 @@ -1,333 +0,0 @@6.4 -/* Interface between the opcode library and its callers.6.5 -6.6 - Copyright 1999, 2000, 2001, 2002, 2003, 2004, 20056.7 - Free Software Foundation, Inc.6.8 -6.9 - This program is free software; you can redistribute it and/or modify6.10 - it under the terms of the GNU General Public License as published by6.11 - the Free Software Foundation; either version 2, or (at your option)6.12 - any later version.6.13 -6.14 - This program is distributed in the hope that it will be useful,6.15 - but WITHOUT ANY WARRANTY; without even the implied warranty of6.16 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6.17 - GNU General Public License for more details.6.18 -6.19 - You should have received a copy of the GNU General Public License6.20 - along with this program; if not, write to the Free Software6.21 - Foundation, Inc., 59 Temple Place - Suite 330,6.22 - Boston, MA 02111-1307, USA.6.23 -6.24 - Written by Cygnus Support, 1993.6.25 -6.26 - The opcode library (libopcodes.a) provides instruction decoders for6.27 - a large variety of instruction sets, callable with an identical6.28 - interface, for making instruction-processing programs more independent6.29 - of the instruction set being processed. */6.30 -6.31 -#ifndef DIS_ASM_H6.32 -#define DIS_ASM_H6.33 -6.34 -#ifdef __cplusplus6.35 -extern "C" {6.36 -#endif6.37 -6.38 -#include <stdio.h>6.39 -#include "x86dasm/bfd.h"6.40 -6.41 -typedef int (*fprintf_ftype) (void *, const char*, ...);6.42 -6.43 -enum dis_insn_type {6.44 - dis_noninsn, /* Not a valid instruction */6.45 - dis_nonbranch, /* Not a branch instruction */6.46 - dis_branch, /* Unconditional branch */6.47 - dis_condbranch, /* Conditional branch */6.48 - dis_jsr, /* Jump to subroutine */6.49 - dis_condjsr, /* Conditional jump to subroutine */6.50 - dis_dref, /* Data reference instruction */6.51 - dis_dref2 /* Two data references in instruction */6.52 -};6.53 -6.54 -/* This struct is passed into the instruction decoding routine,6.55 - and is passed back out into each callback. The various fields are used6.56 - for conveying information from your main routine into your callbacks,6.57 - for passing information into the instruction decoders (such as the6.58 - addresses of the callback functions), or for passing information6.59 - back from the instruction decoders to their callers.6.60 -6.61 - It must be initialized before it is first passed; this can be done6.62 - by hand, or using one of the initialization macros below. */6.63 -6.64 -typedef struct disassemble_info {6.65 - fprintf_ftype fprintf_func;6.66 - void *stream;6.67 - void *application_data;6.68 -6.69 - /* Target description. We could replace this with a pointer to the bfd,6.70 - but that would require one. There currently isn't any such requirement6.71 - so to avoid introducing one we record these explicitly. */6.72 - /* The bfd_flavour. This can be bfd_target_unknown_flavour. */6.73 - enum bfd_flavour flavour;6.74 - /* The bfd_arch value. */6.75 - enum bfd_architecture arch;6.76 - /* The bfd_mach value. */6.77 - unsigned long mach;6.78 - /* Endianness (for bi-endian cpus). Mono-endian cpus can ignore this. */6.79 - enum bfd_endian endian;6.80 - /* An arch/mach-specific bitmask of selected instruction subsets, mainly6.81 - for processors with run-time-switchable instruction sets. The default,6.82 - zero, means that there is no constraint. CGEN-based opcodes ports6.83 - may use ISA_foo masks. */6.84 - unsigned long insn_sets;6.85 -6.86 - /* Some targets need information about the current section to accurately6.87 - display insns. If this is NULL, the target disassembler function6.88 - will have to make its best guess. */6.89 - asection *section;6.90 -6.91 - /* An array of pointers to symbols either at the location being disassembled6.92 - or at the start of the function being disassembled. The array is sorted6.93 - so that the first symbol is intended to be the one used. The others are6.94 - present for any misc. purposes. This is not set reliably, but if it is6.95 - not NULL, it is correct. */6.96 - asymbol **symbols;6.97 - /* Number of symbols in array. */6.98 - int num_symbols;6.99 -6.100 - /* For use by the disassembler.6.101 - The top 16 bits are reserved for public use (and are documented here).6.102 - The bottom 16 bits are for the internal use of the disassembler. */6.103 - unsigned long flags;6.104 -#define INSN_HAS_RELOC 0x800000006.105 - void *private_data;6.106 -6.107 - /* Function used to get bytes to disassemble. MEMADDR is the6.108 - address of the stuff to be disassembled, MYADDR is the address to6.109 - put the bytes in, and LENGTH is the number of bytes to read.6.110 - INFO is a pointer to this struct.6.111 - Returns an errno value or 0 for success. */6.112 - int (*read_memory_func)6.113 - (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length,6.114 - struct disassemble_info *info);6.115 -6.116 - /* Function which should be called if we get an error that we can't6.117 - recover from. STATUS is the errno value from read_memory_func and6.118 - MEMADDR is the address that we were trying to read. INFO is a6.119 - pointer to this struct. */6.120 - void (*memory_error_func)6.121 - (int status, bfd_vma memaddr, struct disassemble_info *info);6.122 -6.123 - /* Function called to print ADDR. */6.124 - void (*print_address_func)6.125 - (bfd_vma addr, struct disassemble_info *info);6.126 -6.127 - /* Function called to determine if there is a symbol at the given ADDR.6.128 - If there is, the function returns 1, otherwise it returns 0.6.129 - This is used by ports which support an overlay manager where6.130 - the overlay number is held in the top part of an address. In6.131 - some circumstances we want to include the overlay number in the6.132 - address, (normally because there is a symbol associated with6.133 - that address), but sometimes we want to mask out the overlay bits. */6.134 - int (* symbol_at_address_func)6.135 - (bfd_vma addr, struct disassemble_info * info);6.136 -6.137 - /* Function called to check if a SYMBOL is can be displayed to the user.6.138 - This is used by some ports that want to hide special symbols when6.139 - displaying debugging outout. */6.140 - bfd_boolean (* symbol_is_valid)6.141 - (asymbol *, struct disassemble_info * info);6.142 -6.143 - /* These are for buffer_read_memory. */6.144 - bfd_byte *buffer;6.145 - bfd_vma buffer_vma;6.146 - unsigned int buffer_length;6.147 -6.148 - /* This variable may be set by the instruction decoder. It suggests6.149 - the number of bytes objdump should display on a single line. If6.150 - the instruction decoder sets this, it should always set it to6.151 - the same value in order to get reasonable looking output. */6.152 - int bytes_per_line;6.153 -6.154 - /* The next two variables control the way objdump displays the raw data. */6.155 - /* For example, if bytes_per_line is 8 and bytes_per_chunk is 4, the */6.156 - /* output will look like this:6.157 - 00: 00000000 000000006.158 - with the chunks displayed according to "display_endian". */6.159 - int bytes_per_chunk;6.160 - enum bfd_endian display_endian;6.161 -6.162 - /* Number of octets per incremented target address6.163 - Normally one, but some DSPs have byte sizes of 16 or 32 bits. */6.164 - unsigned int octets_per_byte;6.165 -6.166 - /* The number of zeroes we want to see at the end of a section before we6.167 - start skipping them. */6.168 - unsigned int skip_zeroes;6.169 -6.170 - /* The number of zeroes to skip at the end of a section. If the number6.171 - of zeroes at the end is between SKIP_ZEROES_AT_END and SKIP_ZEROES,6.172 - they will be disassembled. If there are fewer than6.173 - SKIP_ZEROES_AT_END, they will be skipped. This is a heuristic6.174 - attempt to avoid disassembling zeroes inserted by section6.175 - alignment. */6.176 - unsigned int skip_zeroes_at_end;6.177 -6.178 - /* Results from instruction decoders. Not all decoders yet support6.179 - this information. This info is set each time an instruction is6.180 - decoded, and is only valid for the last such instruction.6.181 -6.182 - To determine whether this decoder supports this information, set6.183 - insn_info_valid to 0, decode an instruction, then check it. */6.184 -6.185 - char insn_info_valid; /* Branch info has been set. */6.186 - char branch_delay_insns; /* How many sequential insn's will run before6.187 - a branch takes effect. (0 = normal) */6.188 - char data_size; /* Size of data reference in insn, in bytes */6.189 - enum dis_insn_type insn_type; /* Type of instruction */6.190 - bfd_vma target; /* Target address of branch or dref, if known;6.191 - zero if unknown. */6.192 - bfd_vma target2; /* Second target address for dref2 */6.193 -6.194 - /* Command line options specific to the target disassembler. */6.195 - char * disassembler_options;6.196 -6.197 -} disassemble_info;6.198 -6.199 -6.200 -/* Standard disassemblers. Disassemble one instruction at the given6.201 - target address. Return number of octets processed. */6.202 -typedef int (*disassembler_ftype) (bfd_vma, disassemble_info *);6.203 -6.204 -extern int print_insn_big_mips (bfd_vma, disassemble_info *);6.205 -extern int print_insn_little_mips (bfd_vma, disassemble_info *);6.206 -extern int print_insn_i386 (bfd_vma, disassemble_info *);6.207 -extern int print_insn_i386_att (bfd_vma, disassemble_info *);6.208 -extern int print_insn_i386_intel (bfd_vma, disassemble_info *);6.209 -extern int print_insn_ia64 (bfd_vma, disassemble_info *);6.210 -extern int print_insn_i370 (bfd_vma, disassemble_info *);6.211 -extern int print_insn_m68hc11 (bfd_vma, disassemble_info *);6.212 -extern int print_insn_m68hc12 (bfd_vma, disassemble_info *);6.213 -extern int print_insn_m68k (bfd_vma, disassemble_info *);6.214 -extern int print_insn_z8001 (bfd_vma, disassemble_info *);6.215 -extern int print_insn_z8002 (bfd_vma, disassemble_info *);6.216 -extern int print_insn_h8300 (bfd_vma, disassemble_info *);6.217 -extern int print_insn_h8300h (bfd_vma, disassemble_info *);6.218 -extern int print_insn_h8300s (bfd_vma, disassemble_info *);6.219 -extern int print_insn_h8500 (bfd_vma, disassemble_info *);6.220 -extern int print_insn_alpha (bfd_vma, disassemble_info *);6.221 -extern int print_insn_big_arm (bfd_vma, disassemble_info *);6.222 -extern int print_insn_little_arm (bfd_vma, disassemble_info *);6.223 -extern int print_insn_sparc (bfd_vma, disassemble_info *);6.224 -extern int print_insn_big_a29k (bfd_vma, disassemble_info *);6.225 -extern int print_insn_little_a29k (bfd_vma, disassemble_info *);6.226 -extern int print_insn_avr (bfd_vma, disassemble_info *);6.227 -extern int print_insn_d10v (bfd_vma, disassemble_info *);6.228 -extern int print_insn_d30v (bfd_vma, disassemble_info *);6.229 -extern int print_insn_dlx (bfd_vma, disassemble_info *);6.230 -extern int print_insn_fr30 (bfd_vma, disassemble_info *);6.231 -extern int print_insn_hppa (bfd_vma, disassemble_info *);6.232 -extern int print_insn_i860 (bfd_vma, disassemble_info *);6.233 -extern int print_insn_i960 (bfd_vma, disassemble_info *);6.234 -extern int print_insn_ip2k (bfd_vma, disassemble_info *);6.235 -extern int print_insn_m32r (bfd_vma, disassemble_info *);6.236 -extern int print_insn_m88k (bfd_vma, disassemble_info *);6.237 -extern int print_insn_maxq_little (bfd_vma, disassemble_info *);6.238 -extern int print_insn_maxq_big (bfd_vma, disassemble_info *);6.239 -extern int print_insn_mcore (bfd_vma, disassemble_info *);6.240 -extern int print_insn_mmix (bfd_vma, disassemble_info *);6.241 -extern int print_insn_mn10200 (bfd_vma, disassemble_info *);6.242 -extern int print_insn_mn10300 (bfd_vma, disassemble_info *);6.243 -extern int print_insn_msp430 (bfd_vma, disassemble_info *);6.244 -extern int print_insn_ns32k (bfd_vma, disassemble_info *);6.245 -extern int print_insn_crx (bfd_vma, disassemble_info *);6.246 -extern int print_insn_openrisc (bfd_vma, disassemble_info *);6.247 -extern int print_insn_big_or32 (bfd_vma, disassemble_info *);6.248 -extern int print_insn_little_or32 (bfd_vma, disassemble_info *);6.249 -extern int print_insn_pdp11 (bfd_vma, disassemble_info *);6.250 -extern int print_insn_pj (bfd_vma, disassemble_info *);6.251 -extern int print_insn_big_powerpc (bfd_vma, disassemble_info *);6.252 -extern int print_insn_little_powerpc (bfd_vma, disassemble_info *);6.253 -extern int print_insn_rs6000 (bfd_vma, disassemble_info *);6.254 -extern int print_insn_s390 (bfd_vma, disassemble_info *);6.255 -extern int print_insn_sh (bfd_vma, disassemble_info *);6.256 -extern int print_insn_tic30 (bfd_vma, disassemble_info *);6.257 -extern int print_insn_tic4x (bfd_vma, disassemble_info *);6.258 -extern int print_insn_tic54x (bfd_vma, disassemble_info *);6.259 -extern int print_insn_tic80 (bfd_vma, disassemble_info *);6.260 -extern int print_insn_v850 (bfd_vma, disassemble_info *);6.261 -extern int print_insn_vax (bfd_vma, disassemble_info *);6.262 -extern int print_insn_w65 (bfd_vma, disassemble_info *);6.263 -extern int print_insn_xstormy16 (bfd_vma, disassemble_info *);6.264 -extern int print_insn_xtensa (bfd_vma, disassemble_info *);6.265 -extern int print_insn_sh64 (bfd_vma, disassemble_info *);6.266 -extern int print_insn_sh64x_media (bfd_vma, disassemble_info *);6.267 -extern int print_insn_frv (bfd_vma, disassemble_info *);6.268 -extern int print_insn_iq2000 (bfd_vma, disassemble_info *);6.269 -6.270 -extern disassembler_ftype arc_get_disassembler (void *);6.271 -extern disassembler_ftype cris_get_disassembler (bfd *);6.272 -6.273 -extern void print_mips_disassembler_options (FILE *);6.274 -extern void print_ppc_disassembler_options (FILE *);6.275 -extern void print_arm_disassembler_options (FILE *);6.276 -extern void parse_arm_disassembler_option (char *);6.277 -extern int get_arm_regname_num_options (void);6.278 -extern int set_arm_regname_option (int);6.279 -extern int get_arm_regnames (int, const char **, const char **, const char ***);6.280 -extern bfd_boolean arm_symbol_is_valid (asymbol *, struct disassemble_info *);6.281 -6.282 -/* Fetch the disassembler for a given BFD, if that support is available. */6.283 -extern disassembler_ftype disassembler (bfd *);6.284 -6.285 -/* Amend the disassemble_info structure as necessary for the target architecture.6.286 - Should only be called after initialising the info->arch field. */6.287 -extern void disassemble_init_for_target (struct disassemble_info * info);6.288 -6.289 -/* Document any target specific options available from the disassembler. */6.290 -extern void disassembler_usage (FILE *);6.291 -6.292 -6.293 -/* This block of definitions is for particular callers who read instructions6.294 - into a buffer before calling the instruction decoder. */6.295 -6.296 -/* Here is a function which callers may wish to use for read_memory_func.6.297 - It gets bytes from a buffer. */6.298 -extern int buffer_read_memory6.299 - (bfd_vma, bfd_byte *, unsigned int, struct disassemble_info *);6.300 -6.301 -/* This function goes with buffer_read_memory.6.302 - It prints a message using info->fprintf_func and info->stream. */6.303 -extern void perror_memory (int, bfd_vma, struct disassemble_info *);6.304 -6.305 -6.306 -/* Just print the address in hex. This is included for completeness even6.307 - though both GDB and objdump provide their own (to print symbolic6.308 - addresses). */6.309 -extern void generic_print_address6.310 - (bfd_vma, struct disassemble_info *);6.311 -6.312 -/* Always true. */6.313 -extern int generic_symbol_at_address6.314 - (bfd_vma, struct disassemble_info *);6.315 -6.316 -/* Also always true. */6.317 -extern bfd_boolean generic_symbol_is_valid6.318 - (asymbol *, struct disassemble_info *);6.319 -6.320 -/* Method to initialize a disassemble_info struct. This should be6.321 - called by all applications creating such a struct. */6.322 -extern void init_disassemble_info (struct disassemble_info *info, void *stream,6.323 - fprintf_ftype fprintf_func);6.324 -6.325 -/* For compatibility with existing code. */6.326 -#define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \6.327 - init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC))6.328 -#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \6.329 - init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC))6.330 -6.331 -6.332 -#ifdef __cplusplus6.333 -}6.334 -#endif6.335 -6.336 -#endif /* ! defined (DIS_ASM_H) */
7.1 --- a/src/x86dasm/dis-buf.c Tue Mar 06 09:04:34 2012 +10007.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00007.3 @@ -1,126 +0,0 @@7.4 -/* Disassemble from a buffer, for GNU.7.5 - Copyright 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 20057.6 - Free Software Foundation, Inc.7.7 -7.8 -This program is free software; you can redistribute it and/or modify7.9 -it under the terms of the GNU General Public License as published by7.10 -the Free Software Foundation; either version 2 of the License, or7.11 -(at your option) any later version.7.12 -7.13 -This program is distributed in the hope that it will be useful,7.14 -but WITHOUT ANY WARRANTY; without even the implied warranty of7.15 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the7.16 -GNU General Public License for more details.7.17 -7.18 -You should have received a copy of the GNU General Public License7.19 -along with this program; if not, write to the Free Software7.20 -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */7.21 -7.22 -#include "x86dasm/sysdep.h"7.23 -#include "x86dasm/dis-asm.h"7.24 -#include <errno.h>7.25 -#include "gettext.h"7.26 -7.27 -/* Get LENGTH bytes from info's buffer, at target address memaddr.7.28 - Transfer them to myaddr. */7.29 -int7.30 -buffer_read_memory (memaddr, myaddr, length, info)7.31 - bfd_vma memaddr;7.32 - bfd_byte *myaddr;7.33 - unsigned int length;7.34 - struct disassemble_info *info;7.35 -{7.36 - unsigned int opb = info->octets_per_byte;7.37 - uintptr_t octets = memaddr * opb;7.38 -7.39 - memcpy (myaddr, info->buffer + octets, length);7.40 -7.41 - return 0;7.42 -}7.43 -7.44 -/* Print an error message. We can assume that this is in response to7.45 - an error return from buffer_read_memory. */7.46 -void7.47 -perror_memory (status, memaddr, info)7.48 - int status;7.49 - bfd_vma memaddr;7.50 - struct disassemble_info *info;7.51 -{7.52 - if (status != EIO)7.53 - /* Can't happen. */7.54 - info->fprintf_func (info->stream, _("Unknown error %d\n"), status);7.55 - else7.56 - {7.57 - char buf[30];7.58 -7.59 - /* Actually, address between memaddr and memaddr + len was7.60 - out of bounds. */7.61 - sprintf_vma (buf, memaddr);7.62 - info->fprintf_func (info->stream,7.63 - _("Address 0x%s is out of bounds.\n"), buf);7.64 - }7.65 -}7.66 -7.67 -/* This could be in a separate file, to save miniscule amounts of space7.68 - in statically linked executables. */7.69 -7.70 -/* Just print the address is hex. This is included for completeness even7.71 - though both GDB and objdump provide their own (to print symbolic7.72 - addresses). */7.73 -7.74 -void7.75 -generic_print_address (addr, info)7.76 - bfd_vma addr;7.77 - struct disassemble_info *info;7.78 -{7.79 - char buf[30];7.80 -7.81 - sprintf_vma (buf, addr);7.82 - (*info->fprintf_func) (info->stream, "0x%s", buf);7.83 -}7.84 -7.85 -#if 07.86 -/* Just concatenate the address as hex. This is included for7.87 - completeness even though both GDB and objdump provide their own (to7.88 - print symbolic addresses). */7.89 -7.90 -void generic_strcat_address PARAMS ((bfd_vma, char *, int));7.91 -7.92 -void7.93 -generic_strcat_address (addr, buf, len)7.94 - bfd_vma addr;7.95 - char *buf;7.96 - int len;7.97 -{7.98 - if (buf != (char *)NULL && len > 0)7.99 - {7.100 - char tmpBuf[30];7.101 -7.102 - sprintf_vma (tmpBuf, addr);7.103 - if ((strlen (buf) + strlen (tmpBuf)) <= (unsigned int) len)7.104 - strcat (buf, tmpBuf);7.105 - else7.106 - strncat (buf, tmpBuf, (len - strlen(buf)));7.107 - }7.108 - return;7.109 -}7.110 -#endif7.111 -7.112 -/* Just return true. */7.113 -7.114 -int7.115 -generic_symbol_at_address (addr, info)7.116 - bfd_vma addr ATTRIBUTE_UNUSED;7.117 - struct disassemble_info *info ATTRIBUTE_UNUSED;7.118 -{7.119 - return 1;7.120 -}7.121 -7.122 -/* Just return TRUE. */7.123 -7.124 -bfd_boolean7.125 -generic_symbol_is_valid (asymbol * sym ATTRIBUTE_UNUSED,7.126 - struct disassemble_info *info ATTRIBUTE_UNUSED)7.127 -{7.128 - return TRUE;7.129 -}
8.1 --- a/src/x86dasm/dis-init.c Tue Mar 06 09:04:34 2012 +10008.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00008.3 @@ -1,43 +0,0 @@8.4 -/* Initialize "struct disassemble_info".8.5 -8.6 - Copyright 2003 Free Software Foundation, Inc.8.7 -8.8 - This program is free software; you can redistribute it and/or8.9 - modify it under the terms of the GNU General Public License as8.10 - published by the Free Software Foundation; either version 2 of the8.11 - License, or (at your option) any later version.8.12 -8.13 - This program is distributed in the hope that it will be useful, but8.14 - WITHOUT ANY WARRANTY; without even the implied warranty of8.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU8.16 - General Public License for more details.8.17 -8.18 - You should have received a copy of the GNU General Public License8.19 - along with this program; if not, write to the Free Software8.20 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA8.21 - 02111-1307, USA. */8.22 -8.23 -#include "x86dasm/sysdep.h"8.24 -#include "x86dasm/dis-asm.h"8.25 -#include "x86dasm/bfd.h"8.26 -8.27 -void8.28 -init_disassemble_info (struct disassemble_info *info, void *stream,8.29 - fprintf_ftype fprintf_func)8.30 -{8.31 - memset (info, 0, sizeof (*info));8.32 -8.33 - info->flavour = bfd_target_unknown_flavour;8.34 - info->arch = bfd_arch_unknown;8.35 - info->endian = BFD_ENDIAN_UNKNOWN;8.36 - info->octets_per_byte = 1;8.37 - info->fprintf_func = fprintf_func;8.38 - info->stream = stream;8.39 - info->read_memory_func = buffer_read_memory;8.40 - info->memory_error_func = perror_memory;8.41 - info->print_address_func = generic_print_address;8.42 - info->symbol_at_address_func = generic_symbol_at_address;8.43 - info->symbol_is_valid = generic_symbol_is_valid;8.44 - info->display_endian = BFD_ENDIAN_UNKNOWN;8.45 -}8.46 -
9.1 --- a/src/x86dasm/i386-dis.c Tue Mar 06 09:04:34 2012 +10009.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +00009.3 @@ -1,4379 +0,0 @@9.4 -/* Print i386 instructions for GDB, the GNU debugger.9.5 - Copyright 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999,9.6 - 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.9.7 -9.8 - This file is part of GDB.9.9 -9.10 - This program is free software; you can redistribute it and/or modify9.11 - it under the terms of the GNU General Public License as published by9.12 - the Free Software Foundation; either version 2 of the License, or9.13 - (at your option) any later version.9.14 -9.15 - This program is distributed in the hope that it will be useful,9.16 - but WITHOUT ANY WARRANTY; without even the implied warranty of9.17 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9.18 - GNU General Public License for more details.9.19 -9.20 - You should have received a copy of the GNU General Public License9.21 - along with this program; if not, write to the Free Software9.22 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */9.23 -9.24 -/* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu)9.25 - July 19889.26 - modified by John Hassey (hassey@dg-rtp.dg.com)9.27 - x86-64 support added by Jan Hubicka (jh@suse.cz)9.28 - VIA PadLock support by Michal Ludvig (mludvig@suse.cz). */9.29 -9.30 -/* The main tables describing the instructions is essentially a copy9.31 - of the "Opcode Map" chapter (Appendix A) of the Intel 803869.32 - Programmers Manual. Usually, there is a capital letter, followed9.33 - by a small letter. The capital letter tell the addressing mode,9.34 - and the small letter tells about the operand size. Refer to9.35 - the Intel manual for details. */9.36 -9.37 -#include "x86dasm/dis-asm.h"9.38 -#include "x86dasm/sysdep.h"9.39 -#include "xlat/xlatdasm.h"9.40 -#include "gettext.h"9.41 -9.42 -#define MAXLEN 209.43 -9.44 -#include <setjmp.h>9.45 -9.46 -#ifndef UNIXWARE_COMPAT9.47 -/* Set non-zero for broken, compatible instructions. Set to zero for9.48 - non-broken opcodes. */9.49 -#define UNIXWARE_COMPAT 19.50 -#endif9.51 -9.52 -static int fetch_data (struct disassemble_info *, bfd_byte *);9.53 -static void ckprefix (void);9.54 -static const char *prefix_name (int, int);9.55 -static int print_insn (bfd_vma, disassemble_info *);9.56 -static void dofloat (int);9.57 -static void OP_ST (int, int);9.58 -static void OP_STi (int, int);9.59 -static int putop (const char *, int);9.60 -static void oappend (const char *);9.61 -static void append_seg (void);9.62 -static void OP_indirE (int, int);9.63 -static void OP_E (int, int);9.64 -static void OP_G (int, int);9.65 -static bfd_vma get64 (void);9.66 -static bfd_signed_vma get32 (void);9.67 -static bfd_signed_vma get32s (void);9.68 -static int get16 (void);9.69 -static void set_op (bfd_vma, int);9.70 -static void OP_REG (int, int);9.71 -static void OP_IMREG (int, int);9.72 -static void OP_I (int, int);9.73 -static void OP_I64 (int, int);9.74 -static void OP_sI (int, int);9.75 -static void OP_J (int, int);9.76 -static void OP_SEG (int, int);9.77 -static void OP_DIR (int, int);9.78 -static void OP_OFF (int, int);9.79 -static void OP_OFF64 (int, int);9.80 -static void ptr_reg (int, int);9.81 -static void OP_ESreg (int, int);9.82 -static void OP_DSreg (int, int);9.83 -static void OP_C (int, int);9.84 -static void OP_D (int, int);9.85 -static void OP_T (int, int);9.86 -static void OP_Rd (int, int);9.87 -static void OP_MMX (int, int);9.88 -static void OP_XMM (int, int);9.89 -static void OP_EM (int, int);9.90 -static void OP_EX (int, int);9.91 -static void OP_MS (int, int);9.92 -static void OP_XS (int, int);9.93 -static void OP_M (int, int);9.94 -static void OP_0fae (int, int);9.95 -static void OP_0f07 (int, int);9.96 -static void NOP_Fixup (int, int);9.97 -static void OP_3DNowSuffix (int, int);9.98 -static void OP_SIMD_Suffix (int, int);9.99 -static void SIMD_Fixup (int, int);9.100 -static void PNI_Fixup (int, int);9.101 -static void INVLPG_Fixup (int, int);9.102 -static void BadOp (void);9.103 -9.104 -struct dis_private {9.105 - /* Points to first byte not fetched. */9.106 - bfd_byte *max_fetched;9.107 - bfd_byte the_buffer[MAXLEN];9.108 - bfd_vma insn_start;9.109 - int orig_sizeflag;9.110 - jmp_buf bailout;9.111 -};9.112 -9.113 -/* The opcode for the fwait instruction, which we treat as a prefix9.114 - when we can. */9.115 -#define FWAIT_OPCODE (0x9b)9.116 -9.117 -/* Set to 1 for 64bit mode disassembly. */9.118 -static int mode_64bit;9.119 -9.120 -/* Flags for the prefixes for the current instruction. See below. */9.121 -static int prefixes;9.122 -9.123 -/* REX prefix the current instruction. See below. */9.124 -static int rex;9.125 -/* Bits of REX we've already used. */9.126 -static int rex_used;9.127 -#define REX_MODE64 89.128 -#define REX_EXTX 49.129 -#define REX_EXTY 29.130 -#define REX_EXTZ 19.131 -/* Mark parts used in the REX prefix. When we are testing for9.132 - empty prefix (for 8bit register REX extension), just mask it9.133 - out. Otherwise test for REX bit is excuse for existence of REX9.134 - only in case value is nonzero. */9.135 -#define USED_REX(value) \9.136 - { \9.137 - if (value) \9.138 - rex_used |= (rex & value) ? (value) | 0x40 : 0; \9.139 - else \9.140 - rex_used |= 0x40; \9.141 - }9.142 -9.143 -/* Flags for prefixes which we somehow handled when printing the9.144 - current instruction. */9.145 -static int used_prefixes;9.146 -9.147 -/* Flags stored in PREFIXES. */9.148 -#define PREFIX_REPZ 19.149 -#define PREFIX_REPNZ 29.150 -#define PREFIX_LOCK 49.151 -#define PREFIX_CS 89.152 -#define PREFIX_SS 0x109.153 -#define PREFIX_DS 0x209.154 -#define PREFIX_ES 0x409.155 -#define PREFIX_FS 0x809.156 -#define PREFIX_GS 0x1009.157 -#define PREFIX_DATA 0x2009.158 -#define PREFIX_ADDR 0x4009.159 -#define PREFIX_FWAIT 0x8009.160 -9.161 -/* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)9.162 - to ADDR (exclusive) are valid. Returns 1 for success, longjmps9.163 - on error. */9.164 -#define FETCH_DATA(info, addr) \9.165 - ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \9.166 - ? 1 : fetch_data ((info), (addr)))9.167 -9.168 -static int9.169 -fetch_data (struct disassemble_info *info, bfd_byte *addr)9.170 -{9.171 - int status;9.172 - struct dis_private *priv = (struct dis_private *) info->private_data;9.173 - bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer);9.174 -9.175 - status = (*info->read_memory_func) (start,9.176 - priv->max_fetched,9.177 - addr - priv->max_fetched,9.178 - info);9.179 - if (status != 0)9.180 - {9.181 - /* If we did manage to read at least one byte, then9.182 - print_insn_i386 will do something sensible. Otherwise, print9.183 - an error. We do that here because this is where we know9.184 - STATUS. */9.185 - if (priv->max_fetched == priv->the_buffer)9.186 - (*info->memory_error_func) (status, start, info);9.187 - longjmp (priv->bailout, 1);9.188 - }9.189 - else9.190 - priv->max_fetched = addr;9.191 - return 1;9.192 -}9.193 -9.194 -#define XX NULL, 09.195 -9.196 -#define Eb OP_E, b_mode9.197 -#define Ev OP_E, v_mode9.198 -#define Ed OP_E, d_mode9.199 -#define Eq OP_E, q_mode9.200 -#define Edq OP_E, dq_mode9.201 -#define Edqw OP_E, dqw_mode9.202 -#define indirEv OP_indirE, v_mode9.203 -#define indirEp OP_indirE, f_mode9.204 -#define Ew OP_E, w_mode9.205 -#define Ma OP_E, v_mode9.206 -#define M OP_M, 0 /* lea, lgdt, etc. */9.207 -#define Mp OP_M, f_mode /* 32 or 48 bit memory operand for LDS, LES etc */9.208 -#define Gb OP_G, b_mode9.209 -#define Gv OP_G, v_mode9.210 -#define Gd OP_G, d_mode9.211 -#define Gdq OP_G, dq_mode9.212 -#define Gw OP_G, w_mode9.213 -#define Rd OP_Rd, d_mode9.214 -#define Rm OP_Rd, m_mode9.215 -#define Ib OP_I, b_mode9.216 -#define sIb OP_sI, b_mode /* sign extened byte */9.217 -#define Iv OP_I, v_mode9.218 -#define Iq OP_I, q_mode9.219 -#define Iv64 OP_I64, v_mode9.220 -#define Iw OP_I, w_mode9.221 -#define I1 OP_I, const_1_mode9.222 -#define Jb OP_J, b_mode9.223 -#define Jv OP_J, v_mode9.224 -#define Cm OP_C, m_mode9.225 -#define Dm OP_D, m_mode9.226 -#define Td OP_T, d_mode9.227 -9.228 -#define RMeAX OP_REG, eAX_reg9.229 -#define RMeBX OP_REG, eBX_reg9.230 -#define RMeCX OP_REG, eCX_reg9.231 -#define RMeDX OP_REG, eDX_reg9.232 -#define RMeSP OP_REG, eSP_reg9.233 -#define RMeBP OP_REG, eBP_reg9.234 -#define RMeSI OP_REG, eSI_reg9.235 -#define RMeDI OP_REG, eDI_reg9.236 -#define RMrAX OP_REG, rAX_reg9.237 -#define RMrBX OP_REG, rBX_reg9.238 -#define RMrCX OP_REG, rCX_reg9.239 -#define RMrDX OP_REG, rDX_reg9.240 -#define RMrSP OP_REG, rSP_reg9.241 -#define RMrBP OP_REG, rBP_reg9.242 -#define RMrSI OP_REG, rSI_reg9.243 -#define RMrDI OP_REG, rDI_reg9.244 -#define RMAL OP_REG, al_reg9.245 -#define RMAL OP_REG, al_reg9.246 -#define RMCL OP_REG, cl_reg9.247 -#define RMDL OP_REG, dl_reg9.248 -#define RMBL OP_REG, bl_reg9.249 -#define RMAH OP_REG, ah_reg9.250 -#define RMCH OP_REG, ch_reg9.251 -#define RMDH OP_REG, dh_reg9.252 -#define RMBH OP_REG, bh_reg9.253 -#define RMAX OP_REG, ax_reg9.254 -#define RMDX OP_REG, dx_reg9.255 -9.256 -#define eAX OP_IMREG, eAX_reg9.257 -#define eBX OP_IMREG, eBX_reg9.258 -#define eCX OP_IMREG, eCX_reg9.259 -#define eDX OP_IMREG, eDX_reg9.260 -#define eSP OP_IMREG, eSP_reg9.261 -#define eBP OP_IMREG, eBP_reg9.262 -#define eSI OP_IMREG, eSI_reg9.263 -#define eDI OP_IMREG, eDI_reg9.264 -#define AL OP_IMREG, al_reg9.265 -#define AL OP_IMREG, al_reg9.266 -#define CL OP_IMREG, cl_reg9.267 -#define DL OP_IMREG, dl_reg9.268 -#define BL OP_IMREG, bl_reg9.269 -#define AH OP_IMREG, ah_reg9.270 -#define CH OP_IMREG, ch_reg9.271 -#define DH OP_IMREG, dh_reg9.272 -#define BH OP_IMREG, bh_reg9.273 -#define AX OP_IMREG, ax_reg9.274 -#define DX OP_IMREG, dx_reg9.275 -#define indirDX OP_IMREG, indir_dx_reg9.276 -9.277 -#define Sw OP_SEG, w_mode9.278 -#define Ap OP_DIR, 09.279 -#define Ob OP_OFF, b_mode9.280 -#define Ob64 OP_OFF64, b_mode9.281 -#define Ov OP_OFF, v_mode9.282 -#define Ov64 OP_OFF64, v_mode9.283 -#define Xb OP_DSreg, eSI_reg9.284 -#define Xv OP_DSreg, eSI_reg9.285 -#define Yb OP_ESreg, eDI_reg9.286 -#define Yv OP_ESreg, eDI_reg9.287 -#define DSBX OP_DSreg, eBX_reg9.288 -9.289 -#define es OP_REG, es_reg9.290 -#define ss OP_REG, ss_reg9.291 -#define cs OP_REG, cs_reg9.292 -#define ds OP_REG, ds_reg9.293 -#define fs OP_REG, fs_reg9.294 -#define gs OP_REG, gs_reg9.295 -9.296 -#define MX OP_MMX, 09.297 -#define XM OP_XMM, 09.298 -#define EM OP_EM, v_mode9.299 -#define EX OP_EX, v_mode9.300 -#define MS OP_MS, v_mode9.301 -#define XS OP_XS, v_mode9.302 -#define OPSUF OP_3DNowSuffix, 09.303 -#define OPSIMD OP_SIMD_Suffix, 09.304 -9.305 -#define cond_jump_flag NULL, cond_jump_mode9.306 -#define loop_jcxz_flag NULL, loop_jcxz_mode9.307 -9.308 -/* bits in sizeflag */9.309 -#define SUFFIX_ALWAYS 49.310 -#define AFLAG 29.311 -#define DFLAG 19.312 -9.313 -#define b_mode 1 /* byte operand */9.314 -#define v_mode 2 /* operand size depends on prefixes */9.315 -#define w_mode 3 /* word operand */9.316 -#define d_mode 4 /* double word operand */9.317 -#define q_mode 5 /* quad word operand */9.318 -#define t_mode 6 /* ten-byte operand */9.319 -#define x_mode 7 /* 16-byte XMM operand */9.320 -#define m_mode 8 /* d_mode in 32bit, q_mode in 64bit mode. */9.321 -#define cond_jump_mode 99.322 -#define loop_jcxz_mode 109.323 -#define dq_mode 11 /* operand size depends on REX prefixes. */9.324 -#define dqw_mode 12 /* registers like dq_mode, memory like w_mode. */9.325 -#define f_mode 13 /* 4- or 6-byte pointer operand */9.326 -#define const_1_mode 149.327 -9.328 -#define es_reg 1009.329 -#define cs_reg 1019.330 -#define ss_reg 1029.331 -#define ds_reg 1039.332 -#define fs_reg 1049.333 -#define gs_reg 1059.334 -9.335 -#define eAX_reg 1089.336 -#define eCX_reg 1099.337 -#define eDX_reg 1109.338 -#define eBX_reg 1119.339 -#define eSP_reg 1129.340 -#define eBP_reg 1139.341 -#define eSI_reg 1149.342 -#define eDI_reg 1159.343 -9.344 -#define al_reg 1169.345 -#define cl_reg 1179.346 -#define dl_reg 1189.347 -#define bl_reg 1199.348 -#define ah_reg 1209.349 -#define ch_reg 1219.350 -#define dh_reg 1229.351 -#define bh_reg 1239.352 -9.353 -#define ax_reg 1249.354 -#define cx_reg 1259.355 -#define dx_reg 1269.356 -#define bx_reg 1279.357 -#define sp_reg 1289.358 -#define bp_reg 1299.359 -#define si_reg 1309.360 -#define di_reg 1319.361 -9.362 -#define rAX_reg 1329.363 -#define rCX_reg 1339.364 -#define rDX_reg 1349.365 -#define rBX_reg 1359.366 -#define rSP_reg 1369.367 -#define rBP_reg 1379.368 -#define rSI_reg 1389.369 -#define rDI_reg 1399.370 -9.371 -#define indir_dx_reg 1509.372 -9.373 -#define FLOATCODE 19.374 -#define USE_GROUPS 29.375 -#define USE_PREFIX_USER_TABLE 39.376 -#define X86_64_SPECIAL 49.377 -9.378 -#define FLOAT NULL, NULL, FLOATCODE, NULL, 0, NULL, 09.379 -9.380 -#define GRP1b NULL, NULL, USE_GROUPS, NULL, 0, NULL, 09.381 -#define GRP1S NULL, NULL, USE_GROUPS, NULL, 1, NULL, 09.382 -#define GRP1Ss NULL, NULL, USE_GROUPS, NULL, 2, NULL, 09.383 -#define GRP2b NULL, NULL, USE_GROUPS, NULL, 3, NULL, 09.384 -#define GRP2S NULL, NULL, USE_GROUPS, NULL, 4, NULL, 09.385 -#define GRP2b_one NULL, NULL, USE_GROUPS, NULL, 5, NULL, 09.386 -#define GRP2S_one NULL, NULL, USE_GROUPS, NULL, 6, NULL, 09.387 -#define GRP2b_cl NULL, NULL, USE_GROUPS, NULL, 7, NULL, 09.388 -#define GRP2S_cl NULL, NULL, USE_GROUPS, NULL, 8, NULL, 09.389 -#define GRP3b NULL, NULL, USE_GROUPS, NULL, 9, NULL, 09.390 -#define GRP3S NULL, NULL, USE_GROUPS, NULL, 10, NULL, 09.391 -#define GRP4 NULL, NULL, USE_GROUPS, NULL, 11, NULL, 09.392 -#define GRP5 NULL, NULL, USE_GROUPS, NULL, 12, NULL, 09.393 -#define GRP6 NULL, NULL, USE_GROUPS, NULL, 13, NULL, 09.394 -#define GRP7 NULL, NULL, USE_GROUPS, NULL, 14, NULL, 09.395 -#define GRP8 NULL, NULL, USE_GROUPS, NULL, 15, NULL, 09.396 -#define GRP9 NULL, NULL, USE_GROUPS, NULL, 16, NULL, 09.397 -#define GRP10 NULL, NULL, USE_GROUPS, NULL, 17, NULL, 09.398 -#define GRP11 NULL, NULL, USE_GROUPS, NULL, 18, NULL, 09.399 -#define GRP12 NULL, NULL, USE_GROUPS, NULL, 19, NULL, 09.400 -#define GRP13 NULL, NULL, USE_GROUPS, NULL, 20, NULL, 09.401 -#define GRP14 NULL, NULL, USE_GROUPS, NULL, 21, NULL, 09.402 -#define GRPAMD NULL, NULL, USE_GROUPS, NULL, 22, NULL, 09.403 -#define GRPPADLCK1 NULL, NULL, USE_GROUPS, NULL, 23, NULL, 09.404 -#define GRPPADLCK2 NULL, NULL, USE_GROUPS, NULL, 24, NULL, 09.405 -9.406 -#define PREGRP0 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 0, NULL, 09.407 -#define PREGRP1 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 1, NULL, 09.408 -#define PREGRP2 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 2, NULL, 09.409 -#define PREGRP3 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 3, NULL, 09.410 -#define PREGRP4 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 4, NULL, 09.411 -#define PREGRP5 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 5, NULL, 09.412 -#define PREGRP6 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 6, NULL, 09.413 -#define PREGRP7 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 7, NULL, 09.414 -#define PREGRP8 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 8, NULL, 09.415 -#define PREGRP9 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 9, NULL, 09.416 -#define PREGRP10 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 10, NULL, 09.417 -#define PREGRP11 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 11, NULL, 09.418 -#define PREGRP12 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 12, NULL, 09.419 -#define PREGRP13 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 13, NULL, 09.420 -#define PREGRP14 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 14, NULL, 09.421 -#define PREGRP15 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 15, NULL, 09.422 -#define PREGRP16 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 16, NULL, 09.423 -#define PREGRP17 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 17, NULL, 09.424 -#define PREGRP18 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 18, NULL, 09.425 -#define PREGRP19 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 19, NULL, 09.426 -#define PREGRP20 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 20, NULL, 09.427 -#define PREGRP21 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 21, NULL, 09.428 -#define PREGRP22 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 22, NULL, 09.429 -#define PREGRP23 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 23, NULL, 09.430 -#define PREGRP24 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 24, NULL, 09.431 -#define PREGRP25 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 25, NULL, 09.432 -#define PREGRP26 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 26, NULL, 09.433 -#define PREGRP27 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 27, NULL, 09.434 -#define PREGRP28 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 28, NULL, 09.435 -#define PREGRP29 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 29, NULL, 09.436 -#define PREGRP30 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 30, NULL, 09.437 -#define PREGRP31 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 31, NULL, 09.438 -#define PREGRP32 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 32, NULL, 09.439 -9.440 -#define X86_64_0 NULL, NULL, X86_64_SPECIAL, NULL, 0, NULL, 09.441 -9.442 -typedef void (*op_rtn) (int bytemode, int sizeflag);9.443 -9.444 -struct dis386 {9.445 - const char *name;9.446 - op_rtn op1;9.447 - int bytemode1;9.448 - op_rtn op2;9.449 - int bytemode2;9.450 - op_rtn op3;9.451 - int bytemode3;9.452 -};9.453 -9.454 -/* Upper case letters in the instruction names here are macros.9.455 - 'A' => print 'b' if no register operands or suffix_always is true9.456 - 'B' => print 'b' if suffix_always is true9.457 - 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand9.458 - . size prefix9.459 - 'E' => print 'e' if 32-bit form of jcxz9.460 - 'F' => print 'w' or 'l' depending on address size prefix (loop insns)9.461 - 'H' => print ",pt" or ",pn" branch hint9.462 - 'I' => honor following macro letter even in Intel mode (implemented only9.463 - . for some of the macro letters)9.464 - 'J' => print 'l'9.465 - 'L' => print 'l' if suffix_always is true9.466 - 'N' => print 'n' if instruction has no wait "prefix"9.467 - 'O' => print 'd', or 'o'9.468 - 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,9.469 - . or suffix_always is true. print 'q' if rex prefix is present.9.470 - 'Q' => print 'w', 'l' or 'q' if no register operands or suffix_always9.471 - . is true9.472 - 'R' => print 'w', 'l' or 'q' ("wd" or "dq" in intel mode)9.473 - 'S' => print 'w', 'l' or 'q' if suffix_always is true9.474 - 'T' => print 'q' in 64bit mode and behave as 'P' otherwise9.475 - 'U' => print 'q' in 64bit mode and behave as 'Q' otherwise9.476 - 'W' => print 'b' or 'w' ("w" or "de" in intel mode)9.477 - 'X' => print 's', 'd' depending on data16 prefix (for XMM)9.478 - 'Y' => 'q' if instruction has an REX 64bit overwrite prefix9.479 -9.480 - Many of the above letters print nothing in Intel mode. See "putop"9.481 - for the details.9.482 -9.483 - Braces '{' and '}', and vertical bars '|', indicate alternative9.484 - mnemonic strings for AT&T, Intel, X86_64 AT&T, and X86_64 Intel9.485 - modes. In cases where there are only two alternatives, the X86_649.486 - instruction is reserved, and "(bad)" is printed.9.487 -*/9.488 -9.489 -static const struct dis386 dis386[] = {9.490 - /* 00 */9.491 - { "addB", Eb, Gb, XX },9.492 - { "addS", Ev, Gv, XX },9.493 - { "addB", Gb, Eb, XX },9.494 - { "addS", Gv, Ev, XX },9.495 - { "addB", AL, Ib, XX },9.496 - { "addS", eAX, Iv, XX },9.497 - { "push{T|}", es, XX, XX },9.498 - { "pop{T|}", es, XX, XX },9.499 - /* 08 */9.500 - { "orB", Eb, Gb, XX },9.501 - { "orS", Ev, Gv, XX },9.502 - { "orB", Gb, Eb, XX },9.503 - { "orS", Gv, Ev, XX },9.504 - { "orB", AL, Ib, XX },9.505 - { "orS", eAX, Iv, XX },9.506 - { "push{T|}", cs, XX, XX },9.507 - { "(bad)", XX, XX, XX }, /* 0x0f extended opcode escape */9.508 - /* 10 */9.509 - { "adcB", Eb, Gb, XX },9.510 - { "adcS", Ev, Gv, XX },9.511 - { "adcB", Gb, Eb, XX },9.512 - { "adcS", Gv, Ev, XX },9.513 - { "adcB", AL, Ib, XX },9.514 - { "adcS", eAX, Iv, XX },9.515 - { "push{T|}", ss, XX, XX },9.516 - { "popT|}", ss, XX, XX },9.517 - /* 18 */9.518 - { "sbbB", Eb, Gb, XX },9.519 - { "sbbS", Ev, Gv, XX },9.520 - { "sbbB", Gb, Eb, XX },9.521 - { "sbbS", Gv, Ev, XX },9.522 - { "sbbB", AL, Ib, XX },9.523 - { "sbbS", eAX, Iv, XX },9.524 - { "push{T|}", ds, XX, XX },9.525 - { "pop{T|}", ds, XX, XX },9.526 - /* 20 */9.527 - { "andB", Eb, Gb, XX },9.528 - { "andS", Ev, Gv, XX },9.529 - { "andB", Gb, Eb, XX },9.530 - { "andS", Gv, Ev, XX },9.531 - { "andB", AL, Ib, XX },9.532 - { "andS", eAX, Iv, XX },9.533 - { "(bad)", XX, XX, XX }, /* SEG ES prefix */9.534 - { "daa{|}", XX, XX, XX },9.535 - /* 28 */9.536 - { "subB", Eb, Gb, XX },9.537 - { "subS", Ev, Gv, XX },9.538 - { "subB", Gb, Eb, XX },9.539 - { "subS", Gv, Ev, XX },9.540 - { "subB", AL, Ib, XX },9.541 - { "subS", eAX, Iv, XX },9.542 - { "(bad)", XX, XX, XX }, /* SEG CS prefix */9.543 - { "das{|}", XX, XX, XX },9.544 - /* 30 */9.545 - { "xorB", Eb, Gb, XX },9.546 - { "xorS", Ev, Gv, XX },9.547 - { "xorB", Gb, Eb, XX },9.548 - { "xorS", Gv, Ev, XX },9.549 - { "xorB", AL, Ib, XX },9.550 - { "xorS", eAX, Iv, XX },9.551 - { "(bad)", XX, XX, XX }, /* SEG SS prefix */9.552 - { "aaa{|}", XX, XX, XX },9.553 - /* 38 */9.554 - { "cmpB", Eb, Gb, XX },9.555 - { "cmpS", Ev, Gv, XX },9.556 - { "cmpB", Gb, Eb, XX },9.557 - { "cmpS", Gv, Ev, XX },9.558 - { "cmpB", AL, Ib, XX },9.559 - { "cmpS", eAX, Iv, XX },9.560 - { "(bad)", XX, XX, XX }, /* SEG DS prefix */9.561 - { "aas{|}", XX, XX, XX },9.562 - /* 40 */9.563 - { "inc{S|}", RMeAX, XX, XX },9.564 - { "inc{S|}", RMeCX, XX, XX },9.565 - { "inc{S|}", RMeDX, XX, XX },9.566 - { "inc{S|}", RMeBX, XX, XX },9.567 - { "inc{S|}", RMeSP, XX, XX },9.568 - { "inc{S|}", RMeBP, XX, XX },9.569 - { "inc{S|}", RMeSI, XX, XX },9.570 - { "inc{S|}", RMeDI, XX, XX },9.571 - /* 48 */9.572 - { "dec{S|}", RMeAX, XX, XX },9.573 - { "dec{S|}", RMeCX, XX, XX },9.574 - { "dec{S|}", RMeDX, XX, XX },9.575 - { "dec{S|}", RMeBX, XX, XX },9.576 - { "dec{S|}", RMeSP, XX, XX },9.577 - { "dec{S|}", RMeBP, XX, XX },9.578 - { "dec{S|}", RMeSI, XX, XX },9.579 - { "dec{S|}", RMeDI, XX, XX },9.580 - /* 50 */9.581 - { "pushS", RMrAX, XX, XX },9.582 - { "pushS", RMrCX, XX, XX },9.583 - { "pushS", RMrDX, XX, XX },9.584 - { "pushS", RMrBX, XX, XX },9.585 - { "pushS", RMrSP, XX, XX },9.586 - { "pushS", RMrBP, XX, XX },9.587 - { "pushS", RMrSI, XX, XX },9.588 - { "pushS", RMrDI, XX, XX },9.589 - /* 58 */9.590 - { "popS", RMrAX, XX, XX },9.591 - { "popS", RMrCX, XX, XX },9.592 - { "popS", RMrDX, XX, XX },9.593 - { "popS", RMrBX, XX, XX },9.594 - { "popS", RMrSP, XX, XX },9.595 - { "popS", RMrBP, XX, XX },9.596 - { "popS", RMrSI, XX, XX },9.597 - { "popS", RMrDI, XX, XX },9.598 - /* 60 */9.599 - { "pusha{P|}", XX, XX, XX },9.600 - { "popa{P|}", XX, XX, XX },9.601 - { "bound{S|}", Gv, Ma, XX },9.602 - { X86_64_0 },9.603 - { "(bad)", XX, XX, XX }, /* seg fs */9.604 - { "(bad)", XX, XX, XX }, /* seg gs */9.605 - { "(bad)", XX, XX, XX }, /* op size prefix */9.606 - { "(bad)", XX, XX, XX }, /* adr size prefix */9.607 - /* 68 */9.608 - { "pushT", Iq, XX, XX },9.609 - { "imulS", Gv, Ev, Iv },9.610 - { "pushT", sIb, XX, XX },9.611 - { "imulS", Gv, Ev, sIb },9.612 - { "ins{b||b|}", Yb, indirDX, XX },9.613 - { "ins{R||R|}", Yv, indirDX, XX },9.614 - { "outs{b||b|}", indirDX, Xb, XX },9.615 - { "outs{R||R|}", indirDX, Xv, XX },9.616 - /* 70 */9.617 - { "joH", Jb, XX, cond_jump_flag },9.618 - { "jnoH", Jb, XX, cond_jump_flag },9.619 - { "jbH", Jb, XX, cond_jump_flag },9.620 - { "jaeH", Jb, XX, cond_jump_flag },9.621 - { "jeH", Jb, XX, cond_jump_flag },9.622 - { "jneH", Jb, XX, cond_jump_flag },9.623 - { "jbeH", Jb, XX, cond_jump_flag },9.624 - { "jaH", Jb, XX, cond_jump_flag },9.625 - /* 78 */9.626 - { "jsH", Jb, XX, cond_jump_flag },9.627 - { "jnsH", Jb, XX, cond_jump_flag },9.628 - { "jpH", Jb, XX, cond_jump_flag },9.629 - { "jnpH", Jb, XX, cond_jump_flag },9.630 - { "jlH", Jb, XX, cond_jump_flag },9.631 - { "jgeH", Jb, XX, cond_jump_flag },9.632 - { "jleH", Jb, XX, cond_jump_flag },9.633 - { "jgH", Jb, XX, cond_jump_flag },9.634 - /* 80 */9.635 - { GRP1b },9.636 - { GRP1S },9.637 - { "(bad)", XX, XX, XX },9.638 - { GRP1Ss },9.639 - { "testB", Eb, Gb, XX },9.640 - { "testS", Ev, Gv, XX },9.641 - { "xchgB", Eb, Gb, XX },9.642 - { "xchgS", Ev, Gv, XX },9.643 - /* 88 */9.644 - { "movB", Eb, Gb, XX },9.645 - { "movS", Ev, Gv, XX },9.646 - { "movB", Gb, Eb, XX },9.647 - { "movS", Gv, Ev, XX },9.648 - { "movQ", Ev, Sw, XX },9.649 - { "leaS", Gv, M, XX },9.650 - { "movQ", Sw, Ev, XX },9.651 - { "popU", Ev, XX, XX },9.652 - /* 90 */9.653 - { "nop", NOP_Fixup, 0, XX, XX },9.654 - { "xchgS", RMeCX, eAX, XX },9.655 - { "xchgS", RMeDX, eAX, XX },9.656 - { "xchgS", RMeBX, eAX, XX },9.657 - { "xchgS", RMeSP, eAX, XX },9.658 - { "xchgS", RMeBP, eAX, XX },9.659 - { "xchgS", RMeSI, eAX, XX },9.660 - { "xchgS", RMeDI, eAX, XX },9.661 - /* 98 */9.662 - { "cW{tR||tR|}", XX, XX, XX },9.663 - { "cR{tO||tO|}", XX, XX, XX },9.664 - { "Jcall{T|}", Ap, XX, XX },9.665 - { "(bad)", XX, XX, XX }, /* fwait */9.666 - { "pushfT", XX, XX, XX },9.667 - { "popfT", XX, XX, XX },9.668 - { "sahf{|}", XX, XX, XX },9.669 - { "lahf{|}", XX, XX, XX },9.670 - /* a0 */9.671 - { "movB", AL, Ob64, XX },9.672 - { "movS", eAX, Ov64, XX },9.673 - { "movB", Ob64, AL, XX },9.674 - { "movS", Ov64, eAX, XX },9.675 - { "movs{b||b|}", Yb, Xb, XX },9.676 - { "movs{R||R|}", Yv, Xv, XX },9.677 - { "cmps{b||b|}", Xb, Yb, XX },9.678 - { "cmps{R||R|}", Xv, Yv, XX },9.679 - /* a8 */9.680 - { "testB", AL, Ib, XX },9.681 - { "testS", eAX, Iv, XX },9.682 - { "stosB", Yb, AL, XX },9.683 - { "stosS", Yv, eAX, XX },9.684 - { "lodsB", AL, Xb, XX },9.685 - { "lodsS", eAX, Xv, XX },9.686 - { "scasB", AL, Yb, XX },9.687 - { "scasS", eAX, Yv, XX },9.688 - /* b0 */9.689 - { "movB", RMAL, Ib, XX },9.690 - { "movB", RMCL, Ib, XX },9.691 - { "movB", RMDL, Ib, XX },9.692 - { "movB", RMBL, Ib, XX },9.693 - { "movB", RMAH, Ib, XX },9.694 - { "movB", RMCH, Ib, XX },9.695 - { "movB", RMDH, Ib, XX },9.696 - { "movB", RMBH, Ib, XX },9.697 - /* b8 */9.698 - { "movS", RMeAX, Iv64, XX },9.699 - { "movS", RMeCX, Iv64, XX },9.700 - { "movS", RMeDX, Iv64, XX },9.701 - { "movS", RMeBX, Iv64, XX },9.702 - { "movS", RMeSP, Iv64, XX },9.703 - { "movS", RMeBP, Iv64, XX },9.704 - { "movS", RMeSI, Iv64, XX },9.705 - { "movS", RMeDI, Iv64, XX },9.706 - /* c0 */9.707 - { GRP2b },9.708 - { GRP2S },9.709 - { "retT", Iw, XX, XX },9.710 - { "retT", XX, XX, XX },9.711 - { "les{S|}", Gv, Mp, XX },9.712 - { "ldsS", Gv, Mp, XX },9.713 - { "movA", Eb, Ib, XX },9.714 - { "movQ", Ev, Iv, XX },9.715 - /* c8 */9.716 - { "enterT", Iw, Ib, XX },9.717 - { "leaveT", XX, XX, XX },9.718 - { "lretP", Iw, XX, XX },9.719 - { "lretP", XX, XX, XX },9.720 - { "int3", XX, XX, XX },9.721 - { "int", Ib, XX, XX },9.722 - { "into{|}", XX, XX, XX },9.723 - { "iretP", XX, XX, XX },9.724 - /* d0 */9.725 - { GRP2b_one },9.726 - { GRP2S_one },9.727 - { GRP2b_cl },9.728 - { GRP2S_cl },9.729 - { "aam{|}", sIb, XX, XX },9.730 - { "aad{|}", sIb, XX, XX },9.731 - { "(bad)", XX, XX, XX },9.732 - { "xlat", DSBX, XX, XX },9.733 - /* d8 */9.734 - { FLOAT },9.735 - { FLOAT },9.736 - { FLOAT },9.737 - { FLOAT },9.738 - { FLOAT },9.739 - { FLOAT },9.740 - { FLOAT },9.741 - { FLOAT },9.742 - /* e0 */9.743 - { "loopneFH", Jb, XX, loop_jcxz_flag },9.744 - { "loopeFH", Jb, XX, loop_jcxz_flag },9.745 - { "loopFH", Jb, XX, loop_jcxz_flag },9.746 - { "jEcxzH", Jb, XX, loop_jcxz_flag },9.747 - { "inB", AL, Ib, XX },9.748 - { "inS", eAX, Ib, XX },9.749 - { "outB", Ib, AL, XX },9.750 - { "outS", Ib, eAX, XX },9.751 - /* e8 */9.752 - { "callT", Jv, XX, XX },9.753 - { "jmpT", Jv, XX, XX },9.754 - { "Jjmp{T|}", Ap, XX, XX },9.755 - { "jmp", Jb, XX, XX },9.756 - { "inB", AL, indirDX, XX },9.757 - { "inS", eAX, indirDX, XX },9.758 - { "outB", indirDX, AL, XX },9.759 - { "outS", indirDX, eAX, XX },9.760 - /* f0 */9.761 - { "(bad)", XX, XX, XX }, /* lock prefix */9.762 - { "icebp", XX, XX, XX },9.763 - { "(bad)", XX, XX, XX }, /* repne */9.764 - { "(bad)", XX, XX, XX }, /* repz */9.765 - { "hlt", XX, XX, XX },9.766 - { "cmc", XX, XX, XX },9.767 - { GRP3b },9.768 - { GRP3S },9.769 - /* f8 */9.770 - { "clc", XX, XX, XX },9.771 - { "stc", XX, XX, XX },9.772 - { "cli", XX, XX, XX },9.773 - { "sti", XX, XX, XX },9.774 - { "cld", XX, XX, XX },9.775 - { "std", XX, XX, XX },9.776 - { GRP4 },9.777 - { GRP5 },9.778 -};9.779 -9.780 -static const struct dis386 dis386_twobyte[] = {9.781 - /* 00 */9.782 - { GRP6 },9.783 - { GRP7 },9.784 - { "larS", Gv, Ew, XX },9.785 - { "lslS", Gv, Ew, XX },9.786 - { "(bad)", XX, XX, XX },9.787 - { "syscall", XX, XX, XX },9.788 - { "clts", XX, XX, XX },9.789 - { "sysretP", XX, XX, XX },9.790 - /* 08 */9.791 - { "invd", XX, XX, XX },9.792 - { "wbinvd", XX, XX, XX },9.793 - { "(bad)", XX, XX, XX },9.794 - { "ud2a", XX, XX, XX },9.795 - { "(bad)", XX, XX, XX },9.796 - { GRPAMD },9.797 - { "femms", XX, XX, XX },9.798 - { "", MX, EM, OPSUF }, /* See OP_3DNowSuffix. */9.799 - /* 10 */9.800 - { PREGRP8 },9.801 - { PREGRP9 },9.802 - { PREGRP30 },9.803 - { "movlpX", EX, XM, SIMD_Fixup, 'h' },9.804 - { "unpcklpX", XM, EX, XX },9.805 - { "unpckhpX", XM, EX, XX },9.806 - { PREGRP31 },9.807 - { "movhpX", EX, XM, SIMD_Fixup, 'l' },9.808 - /* 18 */9.809 - { GRP14 },9.810 - { "(bad)", XX, XX, XX },9.811 - { "(bad)", XX, XX, XX },9.812 - { "(bad)", XX, XX, XX },9.813 - { "(bad)", XX, XX, XX },9.814 - { "(bad)", XX, XX, XX },9.815 - { "(bad)", XX, XX, XX },9.816 - { "(bad)", XX, XX, XX },9.817 - /* 20 */9.818 - { "movL", Rm, Cm, XX },9.819 - { "movL", Rm, Dm, XX },9.820 - { "movL", Cm, Rm, XX },9.821 - { "movL", Dm, Rm, XX },9.822 - { "movL", Rd, Td, XX },9.823 - { "(bad)", XX, XX, XX },9.824 - { "movL", Td, Rd, XX },9.825 - { "(bad)", XX, XX, XX },9.826 - /* 28 */9.827 - { "movapX", XM, EX, XX },9.828 - { "movapX", EX, XM, XX },9.829 - { PREGRP2 },9.830 - { "movntpX", Ev, XM, XX },9.831 - { PREGRP4 },9.832 - { PREGRP3 },9.833 - { "ucomisX", XM,EX, XX },9.834 - { "comisX", XM,EX, XX },9.835 - /* 30 */9.836 - { "wrmsr", XX, XX, XX },9.837 - { "rdtsc", XX, XX, XX },9.838 - { "rdmsr", XX, XX, XX },9.839 - { "rdpmc", XX, XX, XX },9.840 - { "sysenter", XX, XX, XX },9.841 - { "sysexit", XX, XX, XX },9.842 - { "(bad)", XX, XX, XX },9.843 - { "(bad)", XX, XX, XX },9.844 - /* 38 */9.845 - { "(bad)", XX, XX, XX },9.846 - { "(bad)", XX, XX, XX },9.847 - { "(bad)", XX, XX, XX },9.848 - { "(bad)", XX, XX, XX },9.849 - { "(bad)", XX, XX, XX },9.850 - { "(bad)", XX, XX, XX },9.851 - { "(bad)", XX, XX, XX },9.852 - { "(bad)", XX, XX, XX },9.853 - /* 40 */9.854 - { "cmovo", Gv, Ev, XX },9.855 - { "cmovno", Gv, Ev, XX },9.856 - { "cmovb", Gv, Ev, XX },9.857 - { "cmovae", Gv, Ev, XX },9.858 - { "cmove", Gv, Ev, XX },9.859 - { "cmovne", Gv, Ev, XX },9.860 - { "cmovbe", Gv, Ev, XX },9.861 - { "cmova", Gv, Ev, XX },9.862 - /* 48 */9.863 - { "cmovs", Gv, Ev, XX },9.864 - { "cmovns", Gv, Ev, XX },9.865 - { "cmovp", Gv, Ev, XX },9.866 - { "cmovnp", Gv, Ev, XX },9.867 - { "cmovl", Gv, Ev, XX },9.868 - { "cmovge", Gv, Ev, XX },9.869 - { "cmovle", Gv, Ev, XX },9.870 - { "cmovg", Gv, Ev, XX },9.871 - /* 50 */9.872 - { "movmskpX", Gdq, XS, XX },9.873 - { PREGRP13 },9.874 - { PREGRP12 },9.875 - { PREGRP11 },9.876 - { "andpX", XM, EX, XX },9.877 - { "andnpX", XM, EX, XX },9.878 - { "orpX", XM, EX, XX },9.879 - { "xorpX", XM, EX, XX },9.880 - /* 58 */9.881 - { PREGRP0 },9.882 - { PREGRP10 },9.883 - { PREGRP17 },9.884 - { PREGRP16 },9.885 - { PREGRP14 },9.886 - { PREGRP7 },9.887 - { PREGRP5 },9.888 - { PREGRP6 },9.889 - /* 60 */9.890 - { "punpcklbw", MX, EM, XX },9.891 - { "punpcklwd", MX, EM, XX },9.892 - { "punpckldq", MX, EM, XX },9.893 - { "packsswb", MX, EM, XX },9.894 - { "pcmpgtb", MX, EM, XX },9.895 - { "pcmpgtw", MX, EM, XX },9.896 - { "pcmpgtd", MX, EM, XX },9.897 - { "packuswb", MX, EM, XX },9.898 - /* 68 */9.899 - { "punpckhbw", MX, EM, XX },9.900 - { "punpckhwd", MX, EM, XX },9.901 - { "punpckhdq", MX, EM, XX },9.902 - { "packssdw", MX, EM, XX },9.903 - { PREGRP26 },9.904 - { PREGRP24 },9.905 - { "movd", MX, Edq, XX },9.906 - { PREGRP19 },9.907 - /* 70 */9.908 - { PREGRP22 },9.909 - { GRP10 },9.910 - { GRP11 },9.911 - { GRP12 },9.912 - { "pcmpeqb", MX, EM, XX },9.913 - { "pcmpeqw", MX, EM, XX },9.914 - { "pcmpeqd", MX, EM, XX },9.915 - { "emms", XX, XX, XX },9.916 - /* 78 */9.917 - { "(bad)", XX, XX, XX },9.918 - { "(bad)", XX, XX, XX },9.919 - { "(bad)", XX, XX, XX },9.920 - { "(bad)", XX, XX, XX },9.921 - { PREGRP28 },9.922 - { PREGRP29 },9.923 - { PREGRP23 },9.924 - { PREGRP20 },9.925 - /* 80 */9.926 - { "joH", Jv, XX, cond_jump_flag },9.927 - { "jnoH", Jv, XX, cond_jump_flag },9.928 - { "jbH", Jv, XX, cond_jump_flag },9.929 - { "jaeH", Jv, XX, cond_jump_flag },9.930 - { "jeH", Jv, XX, cond_jump_flag },9.931 - { "jneH", Jv, XX, cond_jump_flag },9.932 - { "jbeH", Jv, XX, cond_jump_flag },9.933 - { "jaH", Jv, XX, cond_jump_flag },9.934 - /* 88 */9.935 - { "jsH", Jv, XX, cond_jump_flag },9.936 - { "jnsH", Jv, XX, cond_jump_flag },9.937 - { "jpH", Jv, XX, cond_jump_flag },9.938 - { "jnpH", Jv, XX, cond_jump_flag },9.939 - { "jlH", Jv, XX, cond_jump_flag },9.940 - { "jgeH", Jv, XX, cond_jump_flag },9.941 - { "jleH", Jv, XX, cond_jump_flag },9.942 - { "jgH", Jv, XX, cond_jump_flag },9.943 - /* 90 */9.944 - { "seto", Eb, XX, XX },9.945 - { "setno", Eb, XX, XX },9.946 - { "setb", Eb, XX, XX },9.947 - { "setae", Eb, XX, XX },9.948 - { "sete", Eb, XX, XX },9.949 - { "setne", Eb, XX, XX },9.950 - { "setbe", Eb, XX, XX },9.951 - { "seta", Eb, XX, XX },9.952 - /* 98 */9.953 - { "sets", Eb, XX, XX },9.954 - { "setns", Eb, XX, XX },9.955 - { "setp", Eb, XX, XX },9.956 - { "setnp", Eb, XX, XX },9.957 - { "setl", Eb, XX, XX },9.958 - { "setge", Eb, XX, XX },9.959 - { "setle", Eb, XX, XX },9.960 - { "setg", Eb, XX, XX },9.961 - /* a0 */9.962 - { "pushT", fs, XX, XX },9.963 - { "popT", fs, XX, XX },9.964 - { "cpuid", XX, XX, XX },9.965 - { "btS", Ev, Gv, XX },9.966 - { "shldS", Ev, Gv, Ib },9.967 - { "shldS", Ev, Gv, CL },9.968 - { GRPPADLCK2 },9.969 - { GRPPADLCK1 },9.970 - /* a8 */9.971 - { "pushT", gs, XX, XX },9.972 - { "popT", gs, XX, XX },9.973 - { "rsm", XX, XX, XX },9.974 - { "btsS", Ev, Gv, XX },9.975 - { "shrdS", Ev, Gv, Ib },9.976 - { "shrdS", Ev, Gv, CL },9.977 - { GRP13 },9.978 - { "imulS", Gv, Ev, XX },9.979 - /* b0 */9.980 - { "cmpxchgB", Eb, Gb, XX },9.981 - { "cmpxchgS", Ev, Gv, XX },9.982 - { "lssS", Gv, Mp, XX },9.983 - { "btrS", Ev, Gv, XX },9.984 - { "lfsS", Gv, Mp, XX },9.985 - { "lgsS", Gv, Mp, XX },9.986 - { "movz{bR|x|bR|x}", Gv, Eb, XX },9.987 - { "movz{wR|x|wR|x}", Gv, Ew, XX }, /* yes, there really is movzww ! */9.988 - /* b8 */9.989 - { "(bad)", XX, XX, XX },9.990 - { "ud2b", XX, XX, XX },9.991 - { GRP8 },9.992 - { "btcS", Ev, Gv, XX },9.993 - { "bsfS", Gv, Ev, XX },9.994 - { "bsrS", Gv, Ev, XX },9.995 - { "movs{bR|x|bR|x}", Gv, Eb, XX },9.996 - { "movs{wR|x|wR|x}", Gv, Ew, XX }, /* yes, there really is movsww ! */9.997 - /* c0 */9.998 - { "xaddB", Eb, Gb, XX },9.999 - { "xaddS", Ev, Gv, XX },9.1000 - { PREGRP1 },9.1001 - { "movntiS", Ev, Gv, XX },9.1002 - { "pinsrw", MX, Edqw, Ib },9.1003 - { "pextrw", Gdq, MS, Ib },9.1004 - { "shufpX", XM, EX, Ib },9.1005 - { GRP9 },9.1006 - /* c8 */9.1007 - { "bswap", RMeAX, XX, XX },9.1008 - { "bswap", RMeCX, XX, XX },9.1009 - { "bswap", RMeDX, XX, XX },9.1010 - { "bswap", RMeBX, XX, XX },9.1011 - { "bswap", RMeSP, XX, XX },9.1012 - { "bswap", RMeBP, XX, XX },9.1013 - { "bswap", RMeSI, XX, XX },9.1014 - { "bswap", RMeDI, XX, XX },9.1015 - /* d0 */9.1016 - { PREGRP27 },9.1017 - { "psrlw", MX, EM, XX },9.1018 - { "psrld", MX, EM, XX },9.1019 - { "psrlq", MX, EM, XX },9.1020 - { "paddq", MX, EM, XX },9.1021 - { "pmullw", MX, EM, XX },9.1022 - { PREGRP21 },9.1023 - { "pmovmskb", Gdq, MS, XX },9.1024 - /* d8 */9.1025 - { "psubusb", MX, EM, XX },9.1026 - { "psubusw", MX, EM, XX },9.1027 - { "pminub", MX, EM, XX },9.1028 - { "pand", MX, EM, XX },9.1029 - { "paddusb", MX, EM, XX },9.1030 - { "paddusw", MX, EM, XX },9.1031 - { "pmaxub", MX, EM, XX },9.1032 - { "pandn", MX, EM, XX },9.1033 - /* e0 */9.1034 - { "pavgb", MX, EM, XX },9.1035 - { "psraw", MX, EM, XX },9.1036 - { "psrad", MX, EM, XX },9.1037 - { "pavgw", MX, EM, XX },9.1038 - { "pmulhuw", MX, EM, XX },9.1039 - { "pmulhw", MX, EM, XX },9.1040 - { PREGRP15 },9.1041 - { PREGRP25 },9.1042 - /* e8 */9.1043 - { "psubsb", MX, EM, XX },9.1044 - { "psubsw", MX, EM, XX },9.1045 - { "pminsw", MX, EM, XX },9.1046 - { "por", MX, EM, XX },9.1047 - { "paddsb", MX, EM, XX },9.1048 - { "paddsw", MX, EM, XX },9.1049 - { "pmaxsw", MX, EM, XX },9.1050 - { "pxor", MX, EM, XX },9.1051 - /* f0 */9.1052 - { PREGRP32 },9.1053 - { "psllw", MX, EM, XX },9.1054 - { "pslld", MX, EM, XX },9.1055 - { "psllq", MX, EM, XX },9.1056 - { "pmuludq", MX, EM, XX },9.1057 - { "pmaddwd", MX, EM, XX },9.1058 - { "psadbw", MX, EM, XX },9.1059 - { PREGRP18 },9.1060 - /* f8 */9.1061 - { "psubb", MX, EM, XX },9.1062 - { "psubw", MX, EM, XX },9.1063 - { "psubd", MX, EM, XX },9.1064 - { "psubq", MX, EM, XX },9.1065 - { "paddb", MX, EM, XX },9.1066 - { "paddw", MX, EM, XX },9.1067 - { "paddd", MX, EM, XX },9.1068 - { "(bad)", XX, XX, XX }9.1069 -};9.1070 -9.1071 -static const unsigned char onebyte_has_modrm[256] = {9.1072 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1073 - /* ------------------------------- */9.1074 - /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */9.1075 - /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */9.1076 - /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */9.1077 - /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */9.1078 - /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */9.1079 - /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */9.1080 - /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */9.1081 - /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */9.1082 - /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */9.1083 - /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */9.1084 - /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */9.1085 - /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */9.1086 - /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */9.1087 - /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */9.1088 - /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */9.1089 - /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */9.1090 - /* ------------------------------- */9.1091 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1092 -};9.1093 -9.1094 -static const unsigned char twobyte_has_modrm[256] = {9.1095 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1096 - /* ------------------------------- */9.1097 - /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */9.1098 - /* 10 */ 1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, /* 1f */9.1099 - /* 20 */ 1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1, /* 2f */9.1100 - /* 30 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 3f */9.1101 - /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */9.1102 - /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */9.1103 - /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */9.1104 - /* 70 */ 1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1, /* 7f */9.1105 - /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */9.1106 - /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */9.1107 - /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */9.1108 - /* b0 */ 1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1, /* bf */9.1109 - /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */9.1110 - /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */9.1111 - /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */9.1112 - /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */9.1113 - /* ------------------------------- */9.1114 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1115 -};9.1116 -9.1117 -static const unsigned char twobyte_uses_SSE_prefix[256] = {9.1118 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1119 - /* ------------------------------- */9.1120 - /* 00 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0f */9.1121 - /* 10 */ 1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0, /* 1f */9.1122 - /* 20 */ 0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0, /* 2f */9.1123 - /* 30 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 3f */9.1124 - /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 4f */9.1125 - /* 50 */ 0,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* 5f */9.1126 - /* 60 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1, /* 6f */9.1127 - /* 70 */ 1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1, /* 7f */9.1128 - /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */9.1129 - /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 9f */9.1130 - /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* af */9.1131 - /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* bf */9.1132 - /* c0 */ 0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0, /* cf */9.1133 - /* d0 */ 1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0, /* df */9.1134 - /* e0 */ 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0, /* ef */9.1135 - /* f0 */ 1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 /* ff */9.1136 - /* ------------------------------- */9.1137 - /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */9.1138 -};9.1139 -9.1140 -static char obuf[100];9.1141 -static char *obufp;9.1142 -static char scratchbuf[100];9.1143 -static unsigned char *start_codep;9.1144 -static unsigned char *insn_codep;9.1145 -static unsigned char *codep;9.1146 -static disassemble_info *the_info;9.1147 -static int mod;9.1148 -static int rm;9.1149 -static int reg;9.1150 -static unsigned char need_modrm;9.1151 -9.1152 -/* If we are accessing mod/rm/reg without need_modrm set, then the9.1153 - values are stale. Hitting this abort likely indicates that you9.1154 - need to update onebyte_has_modrm or twobyte_has_modrm. */9.1155 -#define MODRM_CHECK if (!need_modrm) abort ()9.1156 -9.1157 -static const char **names64;9.1158 -static const char **names32;9.1159 -static const char **names16;9.1160 -static const char **names8;9.1161 -static const char **names8rex;9.1162 -static const char **names_seg;9.1163 -static const char **index16;9.1164 -9.1165 -static const char *intel_names64[] = {9.1166 - "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",9.1167 - "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"9.1168 -};9.1169 -static const char *intel_names32[] = {9.1170 - "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",9.1171 - "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"9.1172 -};9.1173 -static const char *intel_names16[] = {9.1174 - "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",9.1175 - "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"9.1176 -};9.1177 -static const char *intel_names8[] = {9.1178 - "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",9.1179 -};9.1180 -static const char *intel_names8rex[] = {9.1181 - "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",9.1182 - "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"9.1183 -};9.1184 -static const char *intel_names_seg[] = {9.1185 - "es", "cs", "ss", "ds", "fs", "gs", "?", "?",9.1186 -};9.1187 -static const char *intel_index16[] = {9.1188 - "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"9.1189 -};9.1190 -9.1191 -static const char *att_names64[] = {9.1192 - "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",9.1193 - "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"9.1194 -};9.1195 -static const char *att_names32[] = {9.1196 - "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",9.1197 - "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"9.1198 -};9.1199 -static const char *att_names16[] = {9.1200 - "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",9.1201 - "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"9.1202 -};9.1203 -static const char *att_names8[] = {9.1204 - "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",9.1205 -};9.1206 -static const char *att_names8rex[] = {9.1207 - "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",9.1208 - "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"9.1209 -};9.1210 -static const char *att_names_seg[] = {9.1211 - "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",9.1212 -};9.1213 -static const char *att_index16[] = {9.1214 - "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"9.1215 -};9.1216 -9.1217 -static const struct dis386 grps[][8] = {9.1218 - /* GRP1b */9.1219 - {9.1220 - { "addA", Eb, Ib, XX },9.1221 - { "orA", Eb, Ib, XX },9.1222 - { "adcA", Eb, Ib, XX },9.1223 - { "sbbA", Eb, Ib, XX },9.1224 - { "andA", Eb, Ib, XX },9.1225 - { "subA", Eb, Ib, XX },9.1226 - { "xorA", Eb, Ib, XX },9.1227 - { "cmpA", Eb, Ib, XX }9.1228 - },9.1229 - /* GRP1S */9.1230 - {9.1231 - { "addQ", Ev, Iv, XX },9.1232 - { "orQ", Ev, Iv, XX },9.1233 - { "adcQ", Ev, Iv, XX },9.1234 - { "sbbQ", Ev, Iv, XX },9.1235 - { "andQ", Ev, Iv, XX },9.1236 - { "subQ", Ev, Iv, XX },9.1237 - { "xorQ", Ev, Iv, XX },9.1238 - { "cmpQ", Ev, Iv, XX }9.1239 - },9.1240 - /* GRP1Ss */9.1241 - {9.1242 - { "addQ", Ev, sIb, XX },9.1243 - { "orQ", Ev, sIb, XX },9.1244 - { "adcQ", Ev, sIb, XX },9.1245 - { "sbbQ", Ev, sIb, XX },9.1246 - { "andQ", Ev, sIb, XX },9.1247 - { "subQ", Ev, sIb, XX },9.1248 - { "xorQ", Ev, sIb, XX },9.1249 - { "cmpQ", Ev, sIb, XX }9.1250 - },9.1251 - /* GRP2b */9.1252 - {9.1253 - { "rolA", Eb, Ib, XX },9.1254 - { "rorA", Eb, Ib, XX },9.1255 - { "rclA", Eb, Ib, XX },9.1256 - { "rcrA", Eb, Ib, XX },9.1257 - { "shlA", Eb, Ib, XX },9.1258 - { "shrA", Eb, Ib, XX },9.1259 - { "(bad)", XX, XX, XX },9.1260 - { "sarA", Eb, Ib, XX },9.1261 - },9.1262 - /* GRP2S */9.1263 - {9.1264 - { "rolQ", Ev, Ib, XX },9.1265 - { "rorQ", Ev, Ib, XX },9.1266 - { "rclQ", Ev, Ib, XX },9.1267 - { "rcrQ", Ev, Ib, XX },9.1268 - { "shlQ", Ev, Ib, XX },9.1269 - { "shrQ", Ev, Ib, XX },9.1270 - { "(bad)", XX, XX, XX },9.1271 - { "sarQ", Ev, Ib, XX },9.1272 - },9.1273 - /* GRP2b_one */9.1274 - {9.1275 - { "rolA", Eb, I1, XX },9.1276 - { "rorA", Eb, I1, XX },9.1277 - { "rclA", Eb, I1, XX },9.1278 - { "rcrA", Eb, I1, XX },9.1279 - { "shlA", Eb, I1, XX },9.1280 - { "shrA", Eb, I1, XX },9.1281 - { "(bad)", XX, XX, XX },9.1282 - { "sarA", Eb, I1, XX },9.1283 - },9.1284 - /* GRP2S_one */9.1285 - {9.1286 - { "rolQ", Ev, I1, XX },9.1287 - { "rorQ", Ev, I1, XX },9.1288 - { "rclQ", Ev, I1, XX },9.1289 - { "rcrQ", Ev, I1, XX },9.1290 - { "shlQ", Ev, I1, XX },9.1291 - { "shrQ", Ev, I1, XX },9.1292 - { "(bad)", XX, XX, XX},9.1293 - { "sarQ", Ev, I1, XX },9.1294 - },9.1295 - /* GRP2b_cl */9.1296 - {9.1297 - { "rolA", Eb, CL, XX },9.1298 - { "rorA", Eb, CL, XX },9.1299 - { "rclA", Eb, CL, XX },9.1300 - { "rcrA", Eb, CL, XX },9.1301 - { "shlA", Eb, CL, XX },9.1302 - { "shrA", Eb, CL, XX },9.1303 - { "(bad)", XX, XX, XX },9.1304 - { "sarA", Eb, CL, XX },9.1305 - },9.1306 - /* GRP2S_cl */9.1307 - {9.1308 - { "rolQ", Ev, CL, XX },9.1309 - { "rorQ", Ev, CL, XX },9.1310 - { "rclQ", Ev, CL, XX },9.1311 - { "rcrQ", Ev, CL, XX },9.1312 - { "shlQ", Ev, CL, XX },9.1313 - { "shrQ", Ev, CL, XX },9.1314 - { "(bad)", XX, XX, XX },9.1315 - { "sarQ", Ev, CL, XX }9.1316 - },9.1317 - /* GRP3b */9.1318 - {9.1319 - { "testA", Eb, Ib, XX },9.1320 - { "(bad)", Eb, XX, XX },9.1321 - { "notA", Eb, XX, XX },9.1322 - { "negA", Eb, XX, XX },9.1323 - { "mulA", Eb, XX, XX }, /* Don't print the implicit %al register, */9.1324 - { "imulA", Eb, XX, XX }, /* to distinguish these opcodes from other */9.1325 - { "divA", Eb, XX, XX }, /* mul/imul opcodes. Do the same for div */9.1326 - { "idivA", Eb, XX, XX } /* and idiv for consistency. */9.1327 - },9.1328 - /* GRP3S */9.1329 - {9.1330 - { "testQ", Ev, Iv, XX },9.1331 - { "(bad)", XX, XX, XX },9.1332 - { "notQ", Ev, XX, XX },9.1333 - { "negQ", Ev, XX, XX },9.1334 - { "mulQ", Ev, XX, XX }, /* Don't print the implicit register. */9.1335 - { "imulQ", Ev, XX, XX },9.1336 - { "divQ", Ev, XX, XX },9.1337 - { "idivQ", Ev, XX, XX },9.1338 - },9.1339 - /* GRP4 */9.1340 - {9.1341 - { "incA", Eb, XX, XX },9.1342 - { "decA", Eb, XX, XX },9.1343 - { "(bad)", XX, XX, XX },9.1344 - { "(bad)", XX, XX, XX },9.1345 - { "(bad)", XX, XX, XX },9.1346 - { "(bad)", XX, XX, XX },9.1347 - { "(bad)", XX, XX, XX },9.1348 - { "(bad)", XX, XX, XX },9.1349 - },9.1350 - /* GRP5 */9.1351 - {9.1352 - { "incQ", Ev, XX, XX },9.1353 - { "decQ", Ev, XX, XX },9.1354 - { "callT", indirEv, XX, XX },9.1355 - { "JcallT", indirEp, XX, XX },9.1356 - { "jmpT", indirEv, XX, XX },9.1357 - { "JjmpT", indirEp, XX, XX },9.1358 - { "pushU", Ev, XX, XX },9.1359 - { "(bad)", XX, XX, XX },9.1360 - },9.1361 - /* GRP6 */9.1362 - {9.1363 - { "sldtQ", Ev, XX, XX },9.1364 - { "strQ", Ev, XX, XX },9.1365 - { "lldt", Ew, XX, XX },9.1366 - { "ltr", Ew, XX, XX },9.1367 - { "verr", Ew, XX, XX },9.1368 - { "verw", Ew, XX, XX },9.1369 - { "(bad)", XX, XX, XX },9.1370 - { "(bad)", XX, XX, XX }9.1371 - },9.1372 - /* GRP7 */9.1373 - {9.1374 - { "sgdtIQ", M, XX, XX },9.1375 - { "sidtIQ", PNI_Fixup, 0, XX, XX },9.1376 - { "lgdt{Q|Q||}", M, XX, XX },9.1377 - { "lidt{Q|Q||}", M, XX, XX },9.1378 - { "smswQ", Ev, XX, XX },9.1379 - { "(bad)", XX, XX, XX },9.1380 - { "lmsw", Ew, XX, XX },9.1381 - { "invlpg", INVLPG_Fixup, w_mode, XX, XX },9.1382 - },9.1383 - /* GRP8 */9.1384 - {9.1385 - { "(bad)", XX, XX, XX },9.1386 - { "(bad)", XX, XX, XX },9.1387 - { "(bad)", XX, XX, XX },9.1388 - { "(bad)", XX, XX, XX },9.1389 - { "btQ", Ev, Ib, XX },9.1390 - { "btsQ", Ev, Ib, XX },9.1391 - { "btrQ", Ev, Ib, XX },9.1392 - { "btcQ", Ev, Ib, XX },9.1393 - },9.1394 - /* GRP9 */9.1395 - {9.1396 - { "(bad)", XX, XX, XX },9.1397 - { "cmpxchg8b", Eq, XX, XX },9.1398 - { "(bad)", XX, XX, XX },9.1399 - { "(bad)", XX, XX, XX },9.1400 - { "(bad)", XX, XX, XX },9.1401 - { "(bad)", XX, XX, XX },9.1402 - { "(bad)", XX, XX, XX },9.1403 - { "(bad)", XX, XX, XX },9.1404 - },9.1405 - /* GRP10 */9.1406 - {9.1407 - { "(bad)", XX, XX, XX },9.1408 - { "(bad)", XX, XX, XX },9.1409 - { "psrlw", MS, Ib, XX },9.1410 - { "(bad)", XX, XX, XX },9.1411 - { "psraw", MS, Ib, XX },9.1412 - { "(bad)", XX, XX, XX },9.1413 - { "psllw", MS, Ib, XX },9.1414 - { "(bad)", XX, XX, XX },9.1415 - },9.1416 - /* GRP11 */9.1417 - {9.1418 - { "(bad)", XX, XX, XX },9.1419 - { "(bad)", XX, XX, XX },9.1420 - { "psrld", MS, Ib, XX },9.1421 - { "(bad)", XX, XX, XX },9.1422 - { "psrad", MS, Ib, XX },9.1423 - { "(bad)", XX, XX, XX },9.1424 - { "pslld", MS, Ib, XX },9.1425 - { "(bad)", XX, XX, XX },9.1426 - },9.1427 - /* GRP12 */9.1428 - {9.1429 - { "(bad)", XX, XX, XX },9.1430 - { "(bad)", XX, XX, XX },9.1431 - { "psrlq", MS, Ib, XX },9.1432 - { "psrldq", MS, Ib, XX },9.1433 - { "(bad)", XX, XX, XX },9.1434 - { "(bad)", XX, XX, XX },9.1435 - { "psllq", MS, Ib, XX },9.1436 - { "pslldq", MS, Ib, XX },9.1437 - },9.1438 - /* GRP13 */9.1439 - {9.1440 - { "fxsave", Ev, XX, XX },9.1441 - { "fxrstor", Ev, XX, XX },9.1442 - { "ldmxcsr", Ev, XX, XX },9.1443 - { "stmxcsr", Ev, XX, XX },9.1444 - { "(bad)", XX, XX, XX },9.1445 - { "lfence", OP_0fae, 0, XX, XX },9.1446 - { "mfence", OP_0fae, 0, XX, XX },9.1447 - { "clflush", OP_0fae, 0, XX, XX },9.1448 - },9.1449 - /* GRP14 */9.1450 - {9.1451 - { "prefetchnta", Ev, XX, XX },9.1452 - { "prefetcht0", Ev, XX, XX },9.1453 - { "prefetcht1", Ev, XX, XX },9.1454 - { "prefetcht2", Ev, XX, XX },9.1455 - { "(bad)", XX, XX, XX },9.1456 - { "(bad)", XX, XX, XX },9.1457 - { "(bad)", XX, XX, XX },9.1458 - { "(bad)", XX, XX, XX },9.1459 - },9.1460 - /* GRPAMD */9.1461 - {9.1462 - { "prefetch", Eb, XX, XX },9.1463 - { "prefetchw", Eb, XX, XX },9.1464 - { "(bad)", XX, XX, XX },9.1465 - { "(bad)", XX, XX, XX },9.1466 - { "(bad)", XX, XX, XX },9.1467 - { "(bad)", XX, XX, XX },9.1468 - { "(bad)", XX, XX, XX },9.1469 - { "(bad)", XX, XX, XX },9.1470 - },9.1471 - /* GRPPADLCK1 */9.1472 - {9.1473 - { "xstorerng", OP_0f07, 0, XX, XX },9.1474 - { "xcryptecb", OP_0f07, 0, XX, XX },9.1475 - { "xcryptcbc", OP_0f07, 0, XX, XX },9.1476 - { "(bad)", OP_0f07, 0, XX, XX },9.1477 - { "xcryptcfb", OP_0f07, 0, XX, XX },9.1478 - { "xcryptofb", OP_0f07, 0, XX, XX },9.1479 - { "(bad)", OP_0f07, 0, XX, XX },9.1480 - { "(bad)", OP_0f07, 0, XX, XX },9.1481 - },9.1482 - /* GRPPADLCK2 */9.1483 - {9.1484 - { "montmul", OP_0f07, 0, XX, XX },9.1485 - { "xsha1", OP_0f07, 0, XX, XX },9.1486 - { "xsha256", OP_0f07, 0, XX, XX },9.1487 - { "(bad)", OP_0f07, 0, XX, XX },9.1488 - { "(bad)", OP_0f07, 0, XX, XX },9.1489 - { "(bad)", OP_0f07, 0, XX, XX },9.1490 - { "(bad)", OP_0f07, 0, XX, XX },9.1491 - { "(bad)", OP_0f07, 0, XX, XX },9.1492 - }9.1493 -};9.1494 -9.1495 -static const struct dis386 prefix_user_table[][4] = {9.1496 - /* PREGRP0 */9.1497 - {9.1498 - { "addps", XM, EX, XX },9.1499 - { "addss", XM, EX, XX },9.1500 - { "addpd", XM, EX, XX },9.1501 - { "addsd", XM, EX, XX },9.1502 - },9.1503 - /* PREGRP1 */9.1504 - {9.1505 - { "", XM, EX, OPSIMD }, /* See OP_SIMD_SUFFIX. */9.1506 - { "", XM, EX, OPSIMD },9.1507 - { "", XM, EX, OPSIMD },9.1508 - { "", XM, EX, OPSIMD },9.1509 - },9.1510 - /* PREGRP2 */9.1511 - {9.1512 - { "cvtpi2ps", XM, EM, XX },9.1513 - { "cvtsi2ssY", XM, Ev, XX },9.1514 - { "cvtpi2pd", XM, EM, XX },9.1515 - { "cvtsi2sdY", XM, Ev, XX },9.1516 - },9.1517 - /* PREGRP3 */9.1518 - {9.1519 - { "cvtps2pi", MX, EX, XX },9.1520 - { "cvtss2siY", Gv, EX, XX },9.1521 - { "cvtpd2pi", MX, EX, XX },9.1522 - { "cvtsd2siY", Gv, EX, XX },9.1523 - },9.1524 - /* PREGRP4 */9.1525 - {9.1526 - { "cvttps2pi", MX, EX, XX },9.1527 - { "cvttss2siY", Gv, EX, XX },9.1528 - { "cvttpd2pi", MX, EX, XX },9.1529 - { "cvttsd2siY", Gv, EX, XX },9.1530 - },9.1531 - /* PREGRP5 */9.1532 - {9.1533 - { "divps", XM, EX, XX },9.1534 - { "divss", XM, EX, XX },9.1535 - { "divpd", XM, EX, XX },9.1536 - { "divsd", XM, EX, XX },9.1537 - },9.1538 - /* PREGRP6 */9.1539 - {9.1540 - { "maxps", XM, EX, XX },9.1541 - { "maxss", XM, EX, XX },9.1542 - { "maxpd", XM, EX, XX },9.1543 - { "maxsd", XM, EX, XX },9.1544 - },9.1545 - /* PREGRP7 */9.1546 - {9.1547 - { "minps", XM, EX, XX },9.1548 - { "minss", XM, EX, XX },9.1549 - { "minpd", XM, EX, XX },9.1550 - { "minsd", XM, EX, XX },9.1551 - },9.1552 - /* PREGRP8 */9.1553 - {9.1554 - { "movups", XM, EX, XX },9.1555 - { "movss", XM, EX, XX },9.1556 - { "movupd", XM, EX, XX },9.1557 - { "movsd", XM, EX, XX },9.1558 - },9.1559 - /* PREGRP9 */9.1560 - {9.1561 - { "movups", EX, XM, XX },9.1562 - { "movss", EX, XM, XX },9.1563 - { "movupd", EX, XM, XX },9.1564 - { "movsd", EX, XM, XX },9.1565 - },9.1566 - /* PREGRP10 */9.1567 - {9.1568 - { "mulps", XM, EX, XX },9.1569 - { "mulss", XM, EX, XX },9.1570 - { "mulpd", XM, EX, XX },9.1571 - { "mulsd", XM, EX, XX },9.1572 - },9.1573 - /* PREGRP11 */9.1574 - {9.1575 - { "rcpps", XM, EX, XX },9.1576 - { "rcpss", XM, EX, XX },9.1577 - { "(bad)", XM, EX, XX },9.1578 - { "(bad)", XM, EX, XX },9.1579 - },9.1580 - /* PREGRP12 */9.1581 - {9.1582 - { "rsqrtps", XM, EX, XX },9.1583 - { "rsqrtss", XM, EX, XX },9.1584 - { "(bad)", XM, EX, XX },9.1585 - { "(bad)", XM, EX, XX },9.1586 - },9.1587 - /* PREGRP13 */9.1588 - {9.1589 - { "sqrtps", XM, EX, XX },9.1590 - { "sqrtss", XM, EX, XX },9.1591 - { "sqrtpd", XM, EX, XX },9.1592 - { "sqrtsd", XM, EX, XX },9.1593 - },9.1594 - /* PREGRP14 */9.1595 - {9.1596 - { "subps", XM, EX, XX },9.1597 - { "subss", XM, EX, XX },9.1598 - { "subpd", XM, EX, XX },9.1599 - { "subsd", XM, EX, XX },9.1600 - },9.1601 - /* PREGRP15 */9.1602 - {9.1603 - { "(bad)", XM, EX, XX },9.1604 - { "cvtdq2pd", XM, EX, XX },9.1605 - { "cvttpd2dq", XM, EX, XX },9.1606 - { "cvtpd2dq", XM, EX, XX },9.1607 - },9.1608 - /* PREGRP16 */9.1609 - {9.1610 - { "cvtdq2ps", XM, EX, XX },9.1611 - { "cvttps2dq",XM, EX, XX },9.1612 - { "cvtps2dq",XM, EX, XX },9.1613 - { "(bad)", XM, EX, XX },9.1614 - },9.1615 - /* PREGRP17 */9.1616 - {9.1617 - { "cvtps2pd", XM, EX, XX },9.1618 - { "cvtss2sd", XM, EX, XX },9.1619 - { "cvtpd2ps", XM, EX, XX },9.1620 - { "cvtsd2ss", XM, EX, XX },9.1621 - },9.1622 - /* PREGRP18 */9.1623 - {9.1624 - { "maskmovq", MX, MS, XX },9.1625 - { "(bad)", XM, EX, XX },9.1626 - { "maskmovdqu", XM, EX, XX },9.1627 - { "(bad)", XM, EX, XX },9.1628 - },9.1629 - /* PREGRP19 */9.1630 - {9.1631 - { "movq", MX, EM, XX },9.1632 - { "movdqu", XM, EX, XX },9.1633 - { "movdqa", XM, EX, XX },9.1634 - { "(bad)", XM, EX, XX },9.1635 - },9.1636 - /* PREGRP20 */9.1637 - {9.1638 - { "movq", EM, MX, XX },9.1639 - { "movdqu", EX, XM, XX },9.1640 - { "movdqa", EX, XM, XX },9.1641 - { "(bad)", EX, XM, XX },9.1642 - },9.1643 - /* PREGRP21 */9.1644 - {9.1645 - { "(bad)", EX, XM, XX },9.1646 - { "movq2dq", XM, MS, XX },9.1647 - { "movq", EX, XM, XX },9.1648 - { "movdq2q", MX, XS, XX },9.1649 - },9.1650 - /* PREGRP22 */9.1651 - {9.1652 - { "pshufw", MX, EM, Ib },9.1653 - { "pshufhw", XM, EX, Ib },9.1654 - { "pshufd", XM, EX, Ib },9.1655 - { "pshuflw", XM, EX, Ib },9.1656 - },9.1657 - /* PREGRP23 */9.1658 - {9.1659 - { "movd", Edq, MX, XX },9.1660 - { "movq", XM, EX, XX },9.1661 - { "movd", Edq, XM, XX },9.1662 - { "(bad)", Ed, XM, XX },9.1663 - },9.1664 - /* PREGRP24 */9.1665 - {9.1666 - { "(bad)", MX, EX, XX },9.1667 - { "(bad)", XM, EX, XX },9.1668 - { "punpckhqdq", XM, EX, XX },9.1669 - { "(bad)", XM, EX, XX },9.1670 - },9.1671 - /* PREGRP25 */9.1672 - {9.1673 - { "movntq", EM, MX, XX },9.1674 - { "(bad)", EM, XM, XX },9.1675 - { "movntdq", EM, XM, XX },9.1676 - { "(bad)", EM, XM, XX },9.1677 - },9.1678 - /* PREGRP26 */9.1679 - {9.1680 - { "(bad)", MX, EX, XX },9.1681 - { "(bad)", XM, EX, XX },9.1682 - { "punpcklqdq", XM, EX, XX },9.1683 - { "(bad)", XM, EX, XX },9.1684 - },9.1685 - /* PREGRP27 */9.1686 - {9.1687 - { "(bad)", MX, EX, XX },9.1688 - { "(bad)", XM, EX, XX },9.1689 - { "addsubpd", XM, EX, XX },9.1690 - { "addsubps", XM, EX, XX },9.1691 - },9.1692 - /* PREGRP28 */9.1693 - {9.1694 - { "(bad)", MX, EX, XX },9.1695 - { "(bad)", XM, EX, XX },9.1696 - { "haddpd", XM, EX, XX },9.1697 - { "haddps", XM, EX, XX },9.1698 - },9.1699 - /* PREGRP29 */9.1700 - {9.1701 - { "(bad)", MX, EX, XX },9.1702 - { "(bad)", XM, EX, XX },9.1703 - { "hsubpd", XM, EX, XX },9.1704 - { "hsubps", XM, EX, XX },9.1705 - },9.1706 - /* PREGRP30 */9.1707 - {9.1708 - { "movlpX", XM, EX, SIMD_Fixup, 'h' }, /* really only 2 operands */9.1709 - { "movsldup", XM, EX, XX },9.1710 - { "movlpd", XM, EX, XX },9.1711 - { "movddup", XM, EX, XX },9.1712 - },9.1713 - /* PREGRP31 */9.1714 - {9.1715 - { "movhpX", XM, EX, SIMD_Fixup, 'l' },9.1716 - { "movshdup", XM, EX, XX },9.1717 - { "movhpd", XM, EX, XX },9.1718 - { "(bad)", XM, EX, XX },9.1719 - },9.1720 - /* PREGRP32 */9.1721 - {9.1722 - { "(bad)", XM, EX, XX },9.1723 - { "(bad)", XM, EX, XX },9.1724 - { "(bad)", XM, EX, XX },9.1725 - { "lddqu", XM, M, XX },9.1726 - },9.1727 -};9.1728 -9.1729 -static const struct dis386 x86_64_table[][2] = {9.1730 - {9.1731 - { "arpl", Ew, Gw, XX },9.1732 - { "movs{||lq|xd}", Gv, Ed, XX },9.1733 - },9.1734 -};9.1735 -9.1736 -#define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")9.1737 -9.1738 -static void9.1739 -ckprefix (void)9.1740 -{9.1741 - int newrex;9.1742 - rex = 0;9.1743 - prefixes = 0;9.1744 - used_prefixes = 0;9.1745 - rex_used = 0;9.1746 - while (1)9.1747 - {9.1748 - FETCH_DATA (the_info, codep + 1);9.1749 - newrex = 0;9.1750 - switch (*codep)9.1751 - {9.1752 - /* REX prefixes family. */9.1753 - case 0x40:9.1754 - case 0x41:9.1755 - case 0x42:9.1756 - case 0x43:9.1757 - case 0x44:9.1758 - case 0x45:9.1759 - case 0x46:9.1760 - case 0x47:9.1761 - case 0x48:9.1762 - case 0x49:9.1763 - case 0x4a:9.1764 - case 0x4b:9.1765 - case 0x4c:9.1766 - case 0x4d:9.1767 - case 0x4e:9.1768 - case 0x4f:9.1769 - if (mode_64bit)9.1770 - newrex = *codep;9.1771 - else9.1772 - return;9.1773 - break;9.1774 - case 0xf3:9.1775 - prefixes |= PREFIX_REPZ;9.1776 - break;9.1777 - case 0xf2:9.1778 - prefixes |= PREFIX_REPNZ;9.1779 - break;9.1780 - case 0xf0:9.1781 - prefixes |= PREFIX_LOCK;9.1782 - break;9.1783 - case 0x2e:9.1784 - prefixes |= PREFIX_CS;9.1785 - break;9.1786 - case 0x36:9.1787 - prefixes |= PREFIX_SS;9.1788 - break;9.1789 - case 0x3e:9.1790 - prefixes |= PREFIX_DS;9.1791 - break;9.1792 - case 0x26:9.1793 - prefixes |= PREFIX_ES;9.1794 - break;9.1795 - case 0x64:9.1796 - prefixes |= PREFIX_FS;9.1797 - break;9.1798 - case 0x65:9.1799 - prefixes |= PREFIX_GS;9.1800 - break;9.1801 - case 0x66:9.1802 - prefixes |= PREFIX_DATA;9.1803 - break;9.1804 - case 0x67:9.1805 - prefixes |= PREFIX_ADDR;9.1806 - break;9.1807 - case FWAIT_OPCODE:9.1808 - /* fwait is really an instruction. If there are prefixes9.1809 - before the fwait, they belong to the fwait, *not* to the9.1810 - following instruction. */9.1811 - if (prefixes)9.1812 - {9.1813 - prefixes |= PREFIX_FWAIT;9.1814 - codep++;9.1815 - return;9.1816 - }9.1817 - prefixes = PREFIX_FWAIT;9.1818 - break;9.1819 - default:9.1820 - return;9.1821 - }9.1822 - /* Rex is ignored when followed by another prefix. */9.1823 - if (rex)9.1824 - {9.1825 - oappend (prefix_name (rex, 0));9.1826 - oappend (" ");9.1827 - }9.1828 - rex = newrex;9.1829 - codep++;9.1830 - }9.1831 -}9.1832 -9.1833 -/* Return the name of the prefix byte PREF, or NULL if PREF is not a9.1834 - prefix byte. */9.1835 -9.1836 -static const char *9.1837 -prefix_name (int pref, int sizeflag)9.1838 -{9.1839 - switch (pref)9.1840 - {9.1841 - /* REX prefixes family. */9.1842 - case 0x40:9.1843 - return "rex";9.1844 - case 0x41:9.1845 - return "rexZ";9.1846 - case 0x42:9.1847 - return "rexY";9.1848 - case 0x43:9.1849 - return "rexYZ";9.1850 - case 0x44:9.1851 - return "rexX";9.1852 - case 0x45:9.1853 - return "rexXZ";9.1854 - case 0x46:9.1855 - return "rexXY";9.1856 - case 0x47:9.1857 - return "rexXYZ";9.1858 - case 0x48:9.1859 - return "rex64";9.1860 - case 0x49:9.1861 - return "rex64Z";9.1862 - case 0x4a:9.1863 - return "rex64Y";9.1864 - case 0x4b:9.1865 - return "rex64YZ";9.1866 - case 0x4c:9.1867 - return "rex64X";9.1868 - case 0x4d:9.1869 - return "rex64XZ";9.1870 - case 0x4e:9.1871 - return "rex64XY";9.1872 - case 0x4f:9.1873 - return "rex64XYZ";9.1874 - case 0xf3:9.1875 - return "repz";9.1876 - case 0xf2:9.1877 - return "repnz";9.1878 - case 0xf0:9.1879 - return "lock";9.1880 - case 0x2e:9.1881 - return "cs";9.1882 - case 0x36:9.1883 - return "ss";9.1884 - case 0x3e:9.1885 - return "ds";9.1886 - case 0x26:9.1887 - return "es";9.1888 - case 0x64:9.1889 - return "fs";9.1890 - case 0x65:9.1891 - return "gs";9.1892 - case 0x66:9.1893 - return (sizeflag & DFLAG) ? "data16" : "data32";9.1894 - case 0x67:9.1895 - if (mode_64bit)9.1896 - return (sizeflag & AFLAG) ? "addr32" : "addr64";9.1897 - else9.1898 - return ((sizeflag & AFLAG) && !mode_64bit) ? "addr16" : "addr32";9.1899 - case FWAIT_OPCODE:9.1900 - return "fwait";9.1901 - default:9.1902 - return NULL;9.1903 - }9.1904 -}9.1905 -9.1906 -static char op1out[100], op2out[100], op3out[100];9.1907 -static int op_ad, op_index[3];9.1908 -static int two_source_ops;9.1909 -static bfd_vma op_address[3];9.1910 -static bfd_vma op_riprel[3];9.1911 -static bfd_vma start_pc;9.1912 -9.1913 -/*9.1914 - * On the 386's of 1988, the maximum length of an instruction is 15 bytes.9.1915 - * (see topic "Redundant prefixes" in the "Differences from 8086"9.1916 - * section of the "Virtual 8086 Mode" chapter.)9.1917 - * 'pc' should be the address of this instruction, it will9.1918 - * be used to print the target address if this is a relative jump or call9.1919 - * The function returns the length of this instruction in bytes.9.1920 - */9.1921 -9.1922 -static char intel_syntax;9.1923 -static char open_char;9.1924 -static char close_char;9.1925 -static char separator_char;9.1926 -static char scale_char;9.1927 -9.1928 -/* Here for backwards compatibility. When gdb stops using9.1929 - print_insn_i386_att and print_insn_i386_intel these functions can9.1930 - disappear, and print_insn_i386 be merged into print_insn. */9.1931 -int9.1932 -print_insn_i386_att (bfd_vma pc, disassemble_info *info)9.1933 -{9.1934 - intel_syntax = 0;9.1935 -9.1936 - return print_insn (pc, info);9.1937 -}9.1938 -9.1939 -int9.1940 -print_insn_i386_intel (bfd_vma pc, disassemble_info *info)9.1941 -{9.1942 - intel_syntax = 1;9.1943 -9.1944 - return print_insn (pc, info);9.1945 -}9.1946 -9.1947 -int9.1948 -print_insn_i386 (bfd_vma pc, disassemble_info *info)9.1949 -{9.1950 - intel_syntax = -1;9.1951 -9.1952 - return print_insn (pc, info);9.1953 -}9.1954 -9.1955 -static int9.1956 -print_insn (bfd_vma pc, disassemble_info *info)9.1957 -{9.1958 - const struct dis386 *dp;9.1959 - int i;9.1960 - char *first, *second, *third;9.1961 - int needcomma;9.1962 - unsigned char uses_SSE_prefix, uses_LOCK_prefix;9.1963 - int sizeflag;9.1964 - const char *p;9.1965 - struct dis_private priv;9.1966 -9.1967 - mode_64bit = (info->mach == bfd_mach_x86_64_intel_syntax9.1968 - || info->mach == bfd_mach_x86_64);9.1969 -9.1970 - if (intel_syntax == (char) -1)9.1971 - intel_syntax = (info->mach == bfd_mach_i386_i386_intel_syntax9.1972 - || info->mach == bfd_mach_x86_64_intel_syntax);9.1973 -9.1974 - if (info->mach == bfd_mach_i386_i3869.1975 - || info->mach == bfd_mach_x86_649.1976 - || info->mach == bfd_mach_i386_i386_intel_syntax9.1977 - || info->mach == bfd_mach_x86_64_intel_syntax)9.1978 - priv.orig_sizeflag = AFLAG | DFLAG;9.1979 - else if (info->mach == bfd_mach_i386_i8086)9.1980 - priv.orig_sizeflag = 0;9.1981 - else9.1982 - abort ();9.1983 -9.1984 - for (p = info->disassembler_options; p != NULL; )9.1985 - {9.1986 - if (strncmp (p, "x86-64", 6) == 0)9.1987 - {9.1988 - mode_64bit = 1;9.1989 - priv.orig_sizeflag = AFLAG | DFLAG;9.1990 - }9.1991 - else if (strncmp (p, "i386", 4) == 0)9.1992 - {9.1993 - mode_64bit = 0;9.1994 - priv.orig_sizeflag = AFLAG | DFLAG;9.1995 - }9.1996 - else if (strncmp (p, "i8086", 5) == 0)9.1997 - {9.1998 - mode_64bit = 0;9.1999 - priv.orig_sizeflag = 0;9.2000 - }9.2001 - else if (strncmp (p, "intel", 5) == 0)9.2002 - {9.2003 - intel_syntax = 1;9.2004 - }9.2005 - else if (strncmp (p, "att", 3) == 0)9.2006 - {9.2007 - intel_syntax = 0;9.2008 - }9.2009 - else if (strncmp (p, "addr", 4) == 0)9.2010 - {9.2011 - if (p[4] == '1' && p[5] == '6')9.2012 - priv.orig_sizeflag &= ~AFLAG;9.2013 - else if (p[4] == '3' && p[5] == '2')9.2014 - priv.orig_sizeflag |= AFLAG;9.2015 - }9.2016 - else if (strncmp (p, "data", 4) == 0)9.2017 - {9.2018 - if (p[4] == '1' && p[5] == '6')9.2019 - priv.orig_sizeflag &= ~DFLAG;9.2020 - else if (p[4] == '3' && p[5] == '2')9.2021 - priv.orig_sizeflag |= DFLAG;9.2022 - }9.2023 - else if (strncmp (p, "suffix", 6) == 0)9.2024 - priv.orig_sizeflag |= SUFFIX_ALWAYS;9.2025 -9.2026 - p = strchr (p, ',');9.2027 - if (p != NULL)9.2028 - p++;9.2029 - }9.2030 -9.2031 - if (intel_syntax)9.2032 - {9.2033 - names64 = intel_names64;9.2034 - names32 = intel_names32;9.2035 - names16 = intel_names16;9.2036 - names8 = intel_names8;9.2037 - names8rex = intel_names8rex;9.2038 - names_seg = intel_names_seg;9.2039 - index16 = intel_index16;9.2040 - open_char = '[';9.2041 - close_char = ']';9.2042 - separator_char = '+';9.2043 - scale_char = '*';9.2044 - }9.2045 - else9.2046 - {9.2047 - names64 = att_names64;9.2048 - names32 = att_names32;9.2049 - names16 = att_names16;9.2050 - names8 = att_names8;9.2051 - names8rex = att_names8rex;9.2052 - names_seg = att_names_seg;9.2053 - index16 = att_index16;9.2054 - open_char = '(';9.2055 - close_char = ')';9.2056 - separator_char = ',';9.2057 - scale_char = ',';9.2058 - }9.2059 -9.2060 - /* The output looks better if we put 7 bytes on a line, since that9.2061 - puts most long word instructions on a single line. */9.2062 - info->bytes_per_line = 7;9.2063 -9.2064 - info->private_data = &priv;9.2065 - priv.max_fetched = priv.the_buffer;9.2066 - priv.insn_start = pc;9.2067 -9.2068 - obuf[0] = 0;9.2069 - op1out[0] = 0;9.2070 - op2out[0] = 0;9.2071 - op3out[0] = 0;9.2072 -9.2073 - op_index[0] = op_index[1] = op_index[2] = -1;9.2074 -9.2075 - the_info = info;9.2076 - start_pc = pc;9.2077 - start_codep = priv.the_buffer;9.2078 - codep = priv.the_buffer;9.2079 -9.2080 - if (setjmp (priv.bailout) != 0)9.2081 - {9.2082 - const char *name;9.2083 -9.2084 - /* Getting here means we tried for data but didn't get it. That9.2085 - means we have an incomplete instruction of some sort. Just9.2086 - print the first byte as a prefix or a .byte pseudo-op. */9.2087 - if (codep > priv.the_buffer)9.2088 - {9.2089 - name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);9.2090 - if (name != NULL)9.2091 - (*info->fprintf_func) (info->stream, "%s", name);9.2092 - else9.2093 - {9.2094 - /* Just print the first byte as a .byte instruction. */9.2095 - (*info->fprintf_func) (info->stream, ".byte 0x%x",9.2096 - (unsigned int) priv.the_buffer[0]);9.2097 - }9.2098 -9.2099 - return 1;9.2100 - }9.2101 -9.2102 - return -1;9.2103 - }9.2104 -9.2105 - obufp = obuf;9.2106 - ckprefix ();9.2107 -9.2108 - insn_codep = codep;9.2109 - sizeflag = priv.orig_sizeflag;9.2110 -9.2111 - FETCH_DATA (info, codep + 1);9.2112 - two_source_ops = (*codep == 0x62) || (*codep == 0xc8);9.2113 -9.2114 - if ((prefixes & PREFIX_FWAIT)9.2115 - && ((*codep < 0xd8) || (*codep > 0xdf)))9.2116 - {9.2117 - const char *name;9.2118 -9.2119 - /* fwait not followed by floating point instruction. Print the9.2120 - first prefix, which is probably fwait itself. */9.2121 - name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);9.2122 - if (name == NULL)9.2123 - name = INTERNAL_DISASSEMBLER_ERROR;9.2124 - (*info->fprintf_func) (info->stream, "%s", name);9.2125 - return 1;9.2126 - }9.2127 -9.2128 - if (*codep == 0x0f)9.2129 - {9.2130 - FETCH_DATA (info, codep + 2);9.2131 - dp = &dis386_twobyte[*++codep];9.2132 - need_modrm = twobyte_has_modrm[*codep];9.2133 - uses_SSE_prefix = twobyte_uses_SSE_prefix[*codep];9.2134 - uses_LOCK_prefix = (*codep & ~0x02) == 0x20;9.2135 - }9.2136 - else9.2137 - {9.2138 - dp = &dis386[*codep];9.2139 - need_modrm = onebyte_has_modrm[*codep];9.2140 - uses_SSE_prefix = 0;9.2141 - uses_LOCK_prefix = 0;9.2142 - }