logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: e30af50a10da65544aa9993a24efbabeaa92e589
parent bb1308153046dfc26fe9ce2548f60eba9f2ff4aa
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 11 Feb 2020 10:12:11 -0800

Add binutils 2.34

Diffstat:

Apkg/binutils/.gitignore10++++++++++
Apkg/binutils/README.md14++++++++++++++
Apkg/binutils/arch.lua90+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/bfd/bfd_stdint.h1+
Apkg/binutils/bfd/config.h142+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/binutils/config.h105+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/gas/config.h147+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/gen.lua376+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/ld/config.h91+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/libctf/config.h65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/libiberty/config.h199+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/opcodes/config.h49+++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/sha2561+
Apkg/binutils/url1+
Apkg/binutils/vec.lua295+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/binutils/ver1+
Mpkg/gen.lua1+
Msets.lua1+
18 files changed, 1589 insertions(+), 0 deletions(-)

diff --git a/pkg/binutils/.gitignore b/pkg/binutils/.gitignore @@ -0,0 +1,10 @@ +/bfd.ninja +/binutils-2.34.tar.xz +/binutils.ninja +/gas.ninja +/ld.ninja +/ld/ldemul-list.h +/libctf.ninja +/libiberty.ninja +/opcodes.ninja +/src diff --git a/pkg/binutils/README.md b/pkg/binutils/README.md @@ -0,0 +1,14 @@ +# binutils + +## */config.h +Generated with + + ./configure \ + --target=x86_64-linux-musl \ + --disable-gold \ + --disable-nls \ + --disable-plugins \ + --enable-default-hash-style=gnu \ + --enable-deterministic-archives \ + --enable-new-dtags + make configure-host diff --git a/pkg/binutils/arch.lua b/pkg/binutils/arch.lua @@ -0,0 +1,90 @@ +-- src/opcodes/configure.ac:/for arch in/ +return { + bfd_aarch64_arch={'aarch64-asm.c', 'aarch64-dis.c', 'aarch64-opc.c', 'aarch64-asm-2.c', 'aarch64-dis-2.c', 'aarch64-opc-2.c'}, + bfd_alpha_arch={'alpha-dis.c', 'alpha-opc.c'}, + bfd_arc_arch={'arc-dis.c', 'arc-opc.c', 'arc-ext.c'}, + bfd_arm_arch={'arm-dis.c'}, + bfd_avr_arch={'avr-dis.c'}, + bfd_bfin_arch={'bfin-dis.c'}, + bfd_cr16_arch={'cr16-dis.c', 'cr16-opc.c'}, + bfd_cris_arch={'cris-dis.c', 'cris-opc.c', 'cgen-bitset.c'}, + bfd_crx_arch={'crx-dis.c', 'crx-opc.c'}, + bfd_csky_arch={'csky-dis.c'}, + bfd_d10v_arch={'d10v-dis.c', 'd10v-opc.c'}, + bfd_d30v_arch={'d30v-dis.c', 'd30v-opc.c'}, + bfd_dlx_arch={'dlx-dis.c'}, + bfd_fr30_arch={'fr30-asm.c', 'fr30-desc.c', 'fr30-dis.c', 'fr30-ibld.c', 'fr30-opc.c'}, + bfd_frv_arch={'frv-asm.c', 'frv-desc.c', 'frv-dis.c', 'frv-ibld.c', 'frv-opc.c'}, + bfd_ft32_arch={'ft32-opc.c', 'ft32-dis.c'}, + bfd_moxie_arch={'moxie-dis.c', 'moxie-opc.c'}, + bfd_h8300_arch={'h8300-dis.c'}, + bfd_hppa_arch={'hppa-dis.c'}, + bfd_i386_arch={'i386-dis.c', 'i386-opc.c'}, + bfd_iamcu_arch={'i386-dis.c', 'i386-opc.c'}, + bfd_l1om_arch={'i386-dis.c', 'i386-opc.c'}, + bfd_k1om_arch={'i386-dis.c', 'i386-opc.c'}, + bfd_ia64_arch={'ia64-dis.c', 'ia64-opc.c'}, + bfd_ip2k_arch={'ip2k-asm.c', 'ip2k-desc.c', 'ip2k-dis.c', 'ip2k-ibld.c', 'ip2k-opc.c'}, + bfd_epiphany_arch={'epiphany-asm.c', 'epiphany-desc.c', 'epiphany-dis.c', 'epiphany-ibld.c', 'epiphany-opc.c'}, + bfd_iq2000_arch={'iq2000-asm.c', 'iq2000-desc.c', 'iq2000-dis.c', 'iq2000-ibld.c', 'iq2000-opc.c'}, + bfd_lm32_arch={'lm32-asm.c', 'lm32-desc.c', 'lm32-dis.c', 'lm32-ibld.c', 'lm32-opc.c', 'lm32-opinst.c'}, + bfd_m32c_arch={'m32c-asm.c', 'm32c-desc.c', 'm32c-dis.c', 'm32c-ibld.c', 'm32c-opc.c'}, + bfd_m32r_arch={'m32r-asm.c', 'm32r-desc.c', 'm32r-dis.c', 'm32r-ibld.c', 'm32r-opc.c', 'm32r-opinst.c'}, + bfd_m68hc11_arch={'m68hc11-dis.c', 'm68hc11-opc.c'}, + bfd_m68hc12_arch={'m68hc11-dis.c', 'm68hc11-opc.c'}, + bfd_m9s12x_arch={'m68hc11-dis.c', 'm68hc11-opc.c'}, + bfd_m9s12xg_arch={'m68hc11-dis.c', 'm68hc11-opc.c'}, + bfd_s12z_arch={'s12z-dis.c', 's12z-opc.c'}, + bfd_m68k_arch={'m68k-dis.c', 'm68k-opc.c'}, + bfd_mcore_arch={'mcore-dis.c'}, + bfd_mep_arch={'mep-asm.c', 'mep-desc.c', 'mep-dis.c', 'mep-ibld.c', 'mep-opc.c'}, + bfd_metag_arch={'metag-dis.c'}, + bfd_microblaze_arch={'microblaze-dis.c'}, + bfd_mips_arch={'mips-dis.c', 'mips-opc.c', 'mips16-opc.c', 'micromips-opc.c'}, + bfd_mmix_arch={'mmix-dis.c', 'mmix-opc.c'}, + bfd_mn10200_arch={'m10200-dis.c', 'm10200-opc.c'}, + bfd_mn10300_arch={'m10300-dis.c', 'm10300-opc.c'}, + bfd_mt_arch={'mt-asm.c', 'mt-desc.c', 'mt-dis.c', 'mt-ibld.c', 'mt-opc.c'}, + bfd_msp430_arch={'msp430-dis.c', 'msp430-decode.c'}, + bfd_nds32_arch={'nds32-asm.c', 'nds32-dis.c'}, + bfd_nfp_arch={'nfp-dis.c'}, + bfd_nios2_arch={'nios2-dis.c', 'nios2-opc.c'}, + bfd_ns32k_arch={'ns32k-dis.c'}, + bfd_or1k_arch={'or1k-asm.c', 'or1k-desc.c', 'or1k-dis.c', 'or1k-ibld.c', 'or1k-opc.c'}, + bfd_pdp11_arch={'pdp11-dis.c', 'pdp11-opc.c'}, + bfd_pj_arch={'pj-dis.c', 'pj-opc.c'}, + bfd_powerpc_arch={'ppc-dis.c', 'ppc-opc.c'}, + bfd_powerpc_64_arch={'ppc-dis.c', 'ppc-opc.c'}, + bfd_pru_arch={'pru-dis.c', 'pru-opc.c'}, + bfd_pyramid_arch={}, + bfd_romp_arch={}, + bfd_riscv_arch={'riscv-dis.c', 'riscv-opc.c'}, + bfd_rs6000_arch={'ppc-dis.c', 'ppc-opc.c'}, + bfd_rl78_arch={'rl78-dis.c', 'rl78-decode.c'}, + bfd_rx_arch={'rx-dis.c', 'rx-decode.c'}, + bfd_s390_arch={'s390-dis.c', 's390-opc.c'}, + bfd_score_arch={'score-dis.c', 'score7-dis.c'}, + bfd_sh_arch={'sh-dis.c', 'cgen-bitset.c'}, + bfd_sparc_arch={'sparc-dis.c', 'sparc-opc.c'}, + bfd_spu_arch={'spu-dis.c', 'spu-opc.c'}, + bfd_tic30_arch={'tic30-dis.c'}, + bfd_tic4x_arch={'tic4x-dis.c'}, + bfd_tic54x_arch={'tic54x-dis.c', 'tic54x-opc.c'}, + bfd_tic6x_arch={'tic6x-dis.c'}, + bfd_tilegx_arch={'tilegx-dis.c', 'tilegx-opc.c'}, + bfd_tilepro_arch={'tilepro-dis.c', 'tilepro-opc.c'}, + bfd_v850_arch={'v850-opc.c', 'v850-dis.c'}, + bfd_v850e_arch={'v850-opc.c', 'v850-dis.c'}, + bfd_v850ea_arch={'v850-opc.c', 'v850-dis.c'}, + bfd_v850_rh850_arch={'v850-opc.c', 'v850-dis.c'}, + bfd_vax_arch={'vax-dis.c'}, + bfd_visium_arch={'visium-dis.c', 'visium-opc.c'}, + bfd_wasm32_arch={'wasm32-dis.c'}, + bfd_xc16x_arch={'xc16x-asm.c', 'xc16x-desc.c', 'xc16x-dis.c', 'xc16x-ibld.c', 'xc16x-opc.c'}, + bfd_xgate_arch={'xgate-dis.c', 'xgate-opc.c'}, + bfd_xstormy16_arch={'xstormy16-asm.c', 'xstormy16-desc.c', 'xstormy16-dis.c', 'xstormy16-ibld.c', 'xstormy16-opc.c'}, + bfd_xtensa_arch={'xtensa-dis.c'}, + bfd_z80_arch={'z80-dis.c'}, + bfd_z8k_arch={'z8k-dis.c'}, + bfd_bpf_arch={'bpf-asm.c', 'bpf-desc.c', 'bpf-dis.c', 'bpf-ibld.c', 'bpf-opc.c'}, +} diff --git a/pkg/binutils/bfd/bfd_stdint.h b/pkg/binutils/bfd/bfd_stdint.h @@ -0,0 +1 @@ +#include <stdint.h> diff --git a/pkg/binutils/bfd/config.h b/pkg/binutils/bfd/config.h @@ -0,0 +1,142 @@ +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1 +#define CORE_HEADER "hosts/x86-64linux.h" +#define DEFAULT_LD_Z_SEPARATE_CODE 1 +/* #undef ENABLE_NLS */ +#define HAVE_ALLOCA_H 1 +#define HAVE_DECL_ASPRINTF 1 +#define HAVE_DECL_BASENAME 1 +#define HAVE_DECL_FFS 1 +#define HAVE_DECL_FREE 1 +#define HAVE_DECL_FSEEKO 1 +#define HAVE_DECL_FSEEKO64 1 +#define HAVE_DECL_FTELLO 1 +#define HAVE_DECL_FTELLO64 1 +#define HAVE_DECL_GETENV 1 +#define HAVE_DECL_MALLOC 1 +#define HAVE_DECL_REALLOC 1 +#define HAVE_DECL_SNPRINTF 1 +#define HAVE_DECL_STPCPY 1 +#define HAVE_DECL_STRNLEN 1 +#define HAVE_DECL_STRSTR 1 +#define HAVE_DECL_VASPRINTF 1 +#define HAVE_DECL_VSNPRINTF 1 +#define HAVE_DIRENT_H 1 +#define HAVE_DLFCN_H 1 +#define HAVE_FCNTL 1 +#define HAVE_FCNTL_H 1 +#define HAVE_FDOPEN 1 +#define HAVE_FILENO 1 +/* #undef HAVE_FLS */ +#define HAVE_FOPEN64 1 +#define HAVE_FSEEKO 1 +#define HAVE_FSEEKO64 1 +#define HAVE_FTELLO 1 +#define HAVE_FTELLO64 1 +#define HAVE_GETGID 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_GETRLIMIT 1 +#define HAVE_GETUID 1 +#define HAVE_HIDDEN 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LONG_DOUBLE 1 +#define HAVE_LONG_LONG 1 +/* #undef HAVE_LWPSTATUS_T */ +/* #undef HAVE_LWPSTATUS_T_PR_CONTEXT */ +/* #undef HAVE_LWPSTATUS_T_PR_FPREG */ +/* #undef HAVE_LWPSTATUS_T_PR_REG */ +/* #undef HAVE_LWPXSTATUS_T */ +#define HAVE_MADVISE 1 +#define HAVE_MEMORY_H 1 +#define HAVE_MMAP 1 +#define HAVE_MPROTECT 1 +/* #undef HAVE_NDIR_H */ +/* #undef HAVE_PRPSINFO32_T */ +/* #undef HAVE_PRPSINFO32_T_PR_PID */ +#define HAVE_PRPSINFO_T 1 +#define HAVE_PRPSINFO_T_PR_PID 1 +/* #undef HAVE_PRSTATUS32_T */ +/* #undef HAVE_PRSTATUS32_T_PR_WHO */ +#define HAVE_PRSTATUS_T 1 +/* #undef HAVE_PRSTATUS_T_PR_WHO */ +/* #undef HAVE_PSINFO32_T */ +/* #undef HAVE_PSINFO32_T_PR_PID */ +/* #undef HAVE_PSINFO_T */ +/* #undef HAVE_PSINFO_T_PR_PID */ +/* #undef HAVE_PSTATUS32_T */ +/* #undef HAVE_PSTATUS_T */ +/* #undef HAVE_PXSTATUS_T */ +#define HAVE_SETITIMER 1 +#define HAVE_STDDEF_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRTOULL 1 +/* #undef HAVE_ST_C_IMPL */ +#define HAVE_SYSCONF 1 +/* #undef HAVE_SYS_DIR_H */ +#define HAVE_SYS_FILE_H 1 +/* #undef HAVE_SYS_NDIR_H */ +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_PROCFS_H 1 +#define HAVE_SYS_RESOURCE_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_TIME_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_WCHAR_H 1 +#define HAVE_WCTYPE_H 1 +/* #undef HAVE_WIN32_PSTATUS_T */ +/* #undef HAVE_WINDOWS_H */ +#define LT_OBJDIR ".libs/" +#define PACKAGE "bfd" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "bfd" +#define PACKAGE_STRING "bfd 2.34" +#define PACKAGE_TARNAME "bfd" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "2.34" +/* #undef SIZEOF_CHAR */ +#define SIZEOF_INT 4 +#define SIZEOF_LONG 8 +#define SIZEOF_LONG_LONG 8 +#define SIZEOF_OFF_T 8 +/* #undef SIZEOF_SHORT */ +#define SIZEOF_VOID_P 8 +#define STDC_HEADERS 1 +#define STRING_WITH_STRINGS 1 +#define TIME_WITH_SYS_TIME 1 +/* #undef TRAD_HEADER */ +/* #undef USE_64_BIT_ARCHIVE */ +/* #undef USE_BINARY_FOPEN */ +/* #undef USE_MINGW64_LEADING_UNDERSCORES */ +/* #undef USE_MMAP */ +#define USE_SECUREPLT 1 +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#define VERSION "2.34" +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ diff --git a/pkg/binutils/binutils/config.h b/pkg/binutils/binutils/config.h @@ -0,0 +1,105 @@ +/* Check that config.h is #included before system headers +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1 +/* #undef CRAY_STACKSEG_END */ +/* #undef C_ALLOCA */ +#define DEFAULT_AR_DETERMINISTIC 1 +#define DEFAULT_STRINGS_ALL 1 +/* #undef ENABLE_NLS */ +#define EXECUTABLE_SUFFIX "" +#define HAVE_ALLOCA 1 +#define HAVE_ALLOCA_H 1 +#define HAVE_DECL_ASPRINTF 1 +#define HAVE_DECL_ENVIRON 1 +#define HAVE_DECL_FPRINTF 1 +#define HAVE_DECL_GETC_UNLOCKED 1 +#define HAVE_DECL_GETENV 1 +#define HAVE_DECL_GETOPT 1 +#define HAVE_DECL_SBRK 1 +#define HAVE_DECL_SNPRINTF 1 +#define HAVE_DECL_STPCPY 1 +#define HAVE_DECL_STRNLEN 1 +#define HAVE_DECL_STRSTR 1 +#define HAVE_DECL_VSNPRINTF 1 +#define HAVE_DLFCN_H 1 +/* #undef HAVE_EXECUTABLE_SUFFIX */ +#define HAVE_FCNTL_H 1 +#define HAVE_GETC_UNLOCKED 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_GOOD_UTIME_H 1 +#define HAVE_ICONV 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LC_MESSAGES 1 +/* #undef HAVE_LIBDEBUGINFOD */ +#define HAVE_LIMITS_H 1 +#define HAVE_LOCALE_H 1 +#define HAVE_LONG_LONG 1 +#define HAVE_MBSTATE_T 1 +#define HAVE_MEMORY_H 1 +#define HAVE_MKDTEMP 1 +#define HAVE_MKSTEMP 1 +#define HAVE_MMAP 1 +#define HAVE_SBRK 1 +#define HAVE_SETLOCALE 1 +/* #undef HAVE_SETMODE */ +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRCOLL 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_SYS_FILE_H 1 +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_WAIT_H 1 +#define HAVE_TIME_T_IN_TIME_H 1 +#define HAVE_TIME_T_IN_TYPES_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_UTIMES 1 +#define HAVE_WCHAR_H 1 +/* #undef HAVE_WINDOWS_H */ +#define ICONV_CONST +#define LT_OBJDIR ".libs/" +#define PACKAGE "binutils" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "binutils" +#define PACKAGE_STRING "binutils 2.34" +#define PACKAGE_TARNAME "binutils" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "2.34" +#define SIZEOF_LONG 8 +#define SIZEOF_LONG_LONG 8 +/* #undef STACK_DIRECTION */ +#define STDC_HEADERS 1 +#define STRING_WITH_STRINGS 1 +#define TARGET "x86_64-pc-linux-musl" +#define TARGET_PREPENDS_UNDERSCORE 0 +/* #undef USE_BINARY_FOPEN */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#define VERSION "2.34" +/* #undef YYTEXT_POINTER */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ +/* #undef size_t */ diff --git a/pkg/binutils/gas/config.h b/pkg/binutils/gas/config.h @@ -0,0 +1,147 @@ +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1 +/* #undef AC_APPLE_UNIVERSAL_BUILD */ +/* #undef AIX_WEAK_SUPPORT */ +/* #undef BROKEN_ASSERT */ +/* #undef CRAY_STACKSEG_END */ +/* #undef CROSS_COMPILE */ +/* #undef C_ALLOCA */ +#define DEFAULT_ARCH "x86_64" +/* #undef DEFAULT_CRIS_ARCH */ +#define DEFAULT_EMULATION "i386elf" +#define DEFAULT_FLAG_COMPRESS_DEBUG 1 +#define DEFAULT_GENERATE_BUILD_NOTES 0 +#define DEFAULT_GENERATE_ELF_STT_COMMON 0 +#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS 1 +#define DEFAULT_MIPS_FIX_LOONGSON3_LLSC 0 +#define DEFAULT_RISCV_ATTR 0 +#define DEFAULT_X86_USED_NOTE 0 +#define EMULATIONS &i386elf, +/* #undef ENABLE_CHECKING */ +/* #undef ENABLE_NLS */ +#define HAVE_ALLOCA 1 +#define HAVE_ALLOCA_H 1 +#define HAVE_DECL_ASPRINTF 1 +#define HAVE_DECL_FREE 1 +#define HAVE_DECL_GETENV 1 +#define HAVE_DECL_GETOPT 1 +#define HAVE_DECL_MALLOC 1 +#define HAVE_DECL_MEMPCPY 1 +#define HAVE_DECL_REALLOC 1 +#define HAVE_DECL_STPCPY 1 +#define HAVE_DECL_STRSTR 1 +#define HAVE_DECL_VSNPRINTF 1 +#define HAVE_DLFCN_H 1 +#define HAVE_ERRNO_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LC_MESSAGES 1 +#define HAVE_LIMITS_H 1 +#define HAVE_LOCALE_H 1 +#define HAVE_MEMORY_H 1 +/* #undef HAVE_REMOVE */ +#define HAVE_SBRK 1 +#define HAVE_SETLOCALE 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRSIGNAL 1 +#define HAVE_ST_MTIM_TV_NSEC 1 +#define HAVE_ST_MTIM_TV_SEC 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_TIME_H 1 +#define HAVE_TM_GMTOFF 1 +#define HAVE_UNISTD_H 1 +#define HAVE_UNLINK 1 +/* #undef HAVE_WINDOWS_H */ +/* #undef I386COFF */ +#define LT_OBJDIR ".libs/" +/* #undef MIPS_CPU_STRING_DEFAULT */ +/* #undef MIPS_DEFAULT_64BIT */ +/* #undef MIPS_DEFAULT_ABI */ +/* #undef NDS32_DEFAULT_ARCH_NAME */ +/* #undef NDS32_DEFAULT_AUDIO_EXT */ +/* #undef NDS32_DEFAULT_DSP_EXT */ +/* #undef NDS32_DEFAULT_DX_REGS */ +/* #undef NDS32_DEFAULT_PERF_EXT */ +/* #undef NDS32_DEFAULT_PERF_EXT2 */ +/* #undef NDS32_DEFAULT_STRING_EXT */ +/* #undef NDS32_DEFAULT_ZOL_EXT */ +/* #undef NDS32_LINUX_TOOLCHAIN */ +/* #undef NEED_DECLARATION_ENVIRON */ +/* #undef NEED_DECLARATION_ERRNO */ +/* #undef NEED_DECLARATION_FFS */ +/* #undef NEED_DECLARATION_FREE */ +/* #undef NEED_DECLARATION_MALLOC */ +/* #undef NEED_DECLARATION_SBRK */ +/* #undef NEED_DECLARATION_STRSTR */ +/* #undef OBJ_MAYBE_AOUT */ +/* #undef OBJ_MAYBE_COFF */ +/* #undef OBJ_MAYBE_ECOFF */ +/* #undef OBJ_MAYBE_ELF */ +/* #undef OBJ_MAYBE_GENERIC */ +/* #undef OBJ_MAYBE_SOM */ +#define PACKAGE "gas" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "gas" +#define PACKAGE_STRING "gas 2.34" +#define PACKAGE_TARNAME "gas" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "2.34" +/* #undef STACK_DIRECTION */ +#define STDC_HEADERS 1 +/* #undef STRICTCOFF */ +#define STRING_WITH_STRINGS 1 +#define TARGET_ALIAS "x86_64-linux-musl" +/* #undef TARGET_BYTES_BIG_ENDIAN */ +#define TARGET_CANONICAL "x86_64-pc-linux-musl" +#define TARGET_CPU "x86_64" +#define TARGET_OS "linux-musl" +/* #undef TARGET_SOLARIS_COMMENT */ +#define TARGET_VENDOR "pc" +/* #undef TARGET_WITH_CPU */ +/* #undef USE_BINARY_FOPEN */ +/* #undef USE_EMULATIONS */ +/* #undef USE_E_MIPS_ABI_O32 */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +/* #undef USING_CGEN */ +#define VERSION "2.34" +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif +/* #undef YYTEXT_POINTER */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ +#ifndef __cplusplus +/* #undef inline */ +#endif +/* #undef size_t */ diff --git a/pkg/binutils/gen.lua b/pkg/binutils/gen.lua @@ -0,0 +1,376 @@ +local version = setmetatable({2, 34}, {__index=function() return 0 end}) +local defvec = 'x86_64_elf64_vec' +local selvecs = {[defvec]=true, i386_elf32_vec=true} +local selarchs = {bfd_i386_arch=true} +local emuls = { + 'elf_x86_64', + 'elf_i386', +} + +cflags{ + '-D HAVE_CONFIG_H', + '-I $srcdir/include', + '-I $builddir/pkg/zlib/include', +} + +pkg.deps = { + 'pkg/zlib/headers', +} + +sub('libiberty.ninja', function() + cflags{'-I $dir/libiberty'} + -- src/libiberty/Makefile.in:/^REQUIRED_OFILES + lib('libiberty.a', [[libiberty/( + regex.c cplus-dem.c cp-demangle.c + md5.c sha1.c alloca.c + argv.c + choose-temp.c concat.c + cp-demint.c crc32.c d-demangle.c + dwarfnames.c dyn-string.c + fdmatch.c fibheap.c + filedescriptor.c + filename_cmp.c floatformat.c + fnmatch.c fopen_unlocked.c + getopt.c getopt1.c getpwd.c + getruntime.c hashtab.c hex.c + lbasename.c lrealpath.c + make-relative-prefix.c make-temp-file.c + objalloc.c + obstack.c + partition.c pexecute.c physmem.c + pex-common.c pex-one.c + pex-unix.c vprintf-support.c + rust-demangle.c + safe-ctype.c + simple-object.c simple-object-coff.c + simple-object-elf.c simple-object-mach-o.c + simple-object-xcoff.c + sort.c spaces.c + splay-tree.c stack-limit.c + strerror.c strsignal.c + timeval-utils.c unlink-if-ordinary.c + xasprintf.c xatexit.c xexit.c + xmalloc.c xmemdup.c xstrdup.c + xstrerror.c xstrndup.c + xvasprintf.c + )]]) +end) + +sub('libctf.ninja', function() + cflags{ + '-I $dir/libctf', + '-I $srcdir/libctf', + '-I $srcdir/bfd', + '-I $outdir/bfd', + } + -- src/libctf/Makefile.am:/^libctf_nobfd_la_SOURCES + lib('libctf.a', [[ + libctf/( + ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c + ctf-hash.c ctf-labels.c ctf-link.c ctf-lookup.c ctf-open.c + ctf-string.c ctf-subr.c ctf-types.c ctf-util.c + ctf-qsort_r.c + + ctf-open-bfd.c + ) + libiberty.a + $builddir/pkg/zlib/libz.a + ]]) +end) + +sub('bfd.ninja', function() + cflags{ + '-I $dir/bfd', + '-I $outdir/bfd', + '-I $srcdir/bfd', -- ? + } + build('sed', '$outdir/bfd/bfd.h', '$srcdir/bfd/bfd-in2.h', {expr={ + '-e s,@supports_plugins@,0,', + '-e s,@wordsize@,64,', + '-e s,@bfd_default_target_size@,64,', + '-e s,@BFD_HOST_64BIT_LONG@,1,', + '-e s,@BFD_HOST_64BIT_LONG_LONG@,1,', + '-e s,@BFD_HOST_64_BIT_DEFINED@,1,', + '-e s,@BFD_HOST_64_BIT@,long,', + [[-e 's,@BFD_HOST_U_64_BIT@,unsigned long,']], + [[-e 's,@BFD_HOSTPTR_T@,unsigned long,']], + '-e s,@bfd_file_ptr@,BFD_HOST_64_BIT,', + }}) + build('sed', '$outdir/bfd/bfdver.h', '$srcdir/bfd/version.h', {expr={ + string.format('-e s,@bfd_version@,%d%02d%02d%02d%02d,', version[1], version[2], version[3], version[4], version[5]), + string.format([[-e 's,@bfd_version_string@,"%s",']], table.concat(version, '.')), + [[-e 's,@bfd_version_package@,"(GNU Binutils) ",']], + [[-e 's,@report_bugs_to@,"<http://www.sourceware.org/bugzilla/>",']], + }}) + build('sed', '$outdir/bfd/targmatch.h', {'$srcdir/bfd/config.bfd', '|', '$srcdir/bfd/targmatch.sed'}, { + expr='-f $srcdir/bfd/targmatch.sed', + }) + build('sed', '$outdir/bfd/elf32-target.h', '$srcdir/bfd/elfxx-target.h', {expr='-e s,NN,32,g'}) + build('sed', '$outdir/bfd/elf64-target.h', '$srcdir/bfd/elfxx-target.h', {expr='-e s,NN,64,g'}) + build('sed', '$outdir/bfd/pex64igen.c', '$srcdir/bfd/peXXigen.c', {expr='-e s,XX,pex64,g'}) + build('sed', '$outdir/bfd/peigen.c', '$srcdir/bfd/peXXigen.c', {expr='-e s,XX,pe,g'}) + + -- src/bfd/config.bfd + for vec in pairs(selvecs) do + if vec:find('elf64') or vec:find('mips_elf32_n') then + selvecs.elf64_le_vec = true + selvecs.elf64_be_vec = true + end + if vec:find('elf32') or vec:find('elf64') or vec:find('mips_elf32_n') then + selvecs.elf32_le_vec = true + selvecs.elf32_be_vec = true + end + if vec:find('iamcu_elf32') then + selarchs.bfd_iamcu_arch = true + end + if vec:find('l1om_elf64') then + selarchs.bfd_l1om_arch = true + end + if vec:find('k1om_elf64') then + selarchs.bfd_k1om_arch = true + end + end + local srcs = {} + local special = { + ['dwarf2.c']='bfd/dwarf2.c.o', + ['peigen.c']='$outdir/bfd/peigen.c', + ['pex64igen.c']='$outdir/bfd/pex64igen.c', + } + for vec, vecsrcs in pairs(load 'vec.lua') do + if selvecs[vec] then + for src in iterstrings(vecsrcs) do + srcs[special[src] or 'bfd/'..src] = true + end + end + end + for arch in pairs(selarchs) do + srcs['bfd/cpu-'..arch:match('bfd_(%g+)_arch')..'.c'] = true + end + local deps = { + '$gendir/deps', + '$outdir/bfd/bfd.h', + '$outdir/bfd/targmatch.h', + '$outdir/bfd/elf32-target.h', + '$outdir/bfd/elf64-target.h', + } + local selvecnames = table.keys(selvecs) + cc('bfd/targets.c', nil, {cflags={ + '$cflags', + '-D DEFAULT_VECTOR='..defvec, + '-D HAVE_'..table.concat(selvecnames, ' -D HAVE_'), + string.format([[-D 'SELECT_VECS=&%s']], table.concat(selvecnames, ',&')), + }}) + cc('bfd/archures.c', nil, {cflags={ + '$cflags', + string.format([[-D 'SELECT_ARCHITECTURES=&%s']], table.concat(table.keys(selarchs), ',&')), + }}) + cc('bfd/dwarf2.c', nil, {cflags={'$cflags', [[-D 'DEBUGDIR="/lib/debug"']]}}) + lib('libbfd.a', { + -- src/bfd/Makefile.am:/^BFD32_LIBS_CFILES + -- src/bfd/Makefile.am:/^BFD64_LIBS_CFILES + paths[[bfd/( + archive.c archures.c.o bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c + compress.c corefile.c elf-properties.c format.c hash.c + init.c libbfd.c linker.c merge.c opncls.c reloc.c + section.c simple.c stab-syms.c stabs.c syms.c targets.c.o + binary.c ihex.c srec.c tekhex.c verilog.c + + archive64.c + )]], + table.keys(srcs), + 'libiberty.a', + '$builddir/pkg/zlib/libz.a', + }, deps) +end) + +sub('opcodes.ninja', function() + cflags{ + '-I $dir/opcodes', + } + local srcs = {} + for arch, archsrcs in pairs(load 'arch.lua') do + if selarchs[arch] then + for src in iterstrings(archsrcs) do + srcs['opcodes/'..src] = true + end + end + end + lib('libopcodes.a', { + paths[[opcodes/(dis-buf.c disassemble.c dis-init.c)]], + table.keys(srcs), + }) +end) + +sub('binutils.ninja', function() + cflags{ + [[-D 'LOCALEDIR="/share/locale"']], + '-D bin_dummy_emulation=bin_vanilla_emulation', + '-I $dir/binutils', + '-I $srcdir/binutils', + '-I $dir/bfd', + '-I $outdir/bfd', + '-I $srcdir/bfd', + } + lib('libbu.a', [[ + binutils/( + bucomm.c version.c filemode.c rename.c + elfcomm.c + rddbg.c debug.c stabs.c rdcoff.c wrstabs.c + ) + ]]) + + cc('binutils/objcopy.c') + cc('binutils/dwarf.c') + cc('binutils/objdump.c', nil, {cflags='$cflags -D OBJDUMP_PRIVATE_VECTORS='}) + exe('bin/size', [[binutils/size.c libbu.a libbfd.a.d]]) + exe('bin/objcopy', [[binutils/(objcopy.c.o not-strip.c) libbu.a libbfd.a.d]]) + exe('bin/strings', [[binutils/strings.c libbu.a libbfd.a.d]]) + exe('bin/readelf', [[binutils/(readelf.c unwind-ia64.c dwarf.c.o) libbu.a libctf.a.d]]) + exe('bin/elfedit', [[binutils/elfedit.c libbu.a libbfd.a.d]]) + exe('bin/strip', [[binutils/(objcopy.c.o is-strip.c) libbu.a libbfd.a.d]]) + exe('bin/nm', [[binutils/nm.c libbu.a libbfd.a.d]]) + exe('bin/objdump', [[binutils/(objdump.c.o dwarf.c.o prdbg.c) libbu.a libbfd.a.d libopcodes.a libctf.a.d]]) + exe('bin/ar', [[ + binutils/( + arparse.c arlex.c ar.c not-ranlib.c arsup.c binemul.c + emul_vanilla.c + ) + libbu.a libbfd.a.d + ]]) + + for _, tool in ipairs{'size', 'objcopy', 'strings', 'readelf', 'elfedit', 'strip', 'nm', 'objdump', 'ar'} do + file('bin/'..tool, '755', '$outdir/bin/'..tool) + sym(string.format('bin/%s-%s', config.target.platform, tool), tool) + end +end) + +sub('gas.ninja', function() + cflags{ + '-I $dir/gas', + '-I $outdir/gas', + '-I $srcdir/gas', + '-I $dir/bfd', + '-I $srcdir/gas/config', + '-I $srcdir', + '-I $outdir/bfd', + '-I $srcdir/bfd', + } + build('copy', '$outdir/gas/targ-cpu.h', '$srcdir/gas/config/tc-i386.h') + build('copy', '$outdir/gas/targ-env.h', '$srcdir/gas/config/te-linux.h') + build('copy', '$outdir/gas/obj-format.h', '$srcdir/gas/config/obj-elf.h') + local deps = { + '$gendir/deps', + '$outdir/gas/targ-cpu.h', + '$outdir/gas/targ-env.h', + '$outdir/gas/obj-format.h', + '$outdir/bfd/bfd.h', + '$outdir/bfd/bfdver.h', + } + -- src/gas/Makefile.am:/^GAS_CFILES + exe('bin/as', [[ + gas/( + app.c + as.c + atof-generic.c + compress-debug.c + cond.c + depend.c + dwarf2dbg.c + dw2gencfi.c + ecoff.c + ehopt.c + expr.c + flonum-copy.c + flonum-konst.c + flonum-mult.c + frags.c + hash.c + input-file.c + input-scrub.c + listing.c + literal.c + macro.c + messages.c + output-file.c + read.c + remap.c + sb.c + stabs.c + subsegs.c + symbols.c + write.c + + config/(tc-i386.c obj-elf.c atof-ieee.c) + ) + libopcodes.a + libbfd.a.d + ]], deps) + file('bin/as', '755', '$outdir/bin/as') + sym(string.format('bin/%s-as', config.target.platform), 'as') + man{'gas/doc/as.1'} +end) + +sub('ld.ninja', function() + cflags{ + '-D ELF_LIST_OPTIONS=TRUE', + '-D ELF_SHLIB_LIST_OPTIONS=TRUE', + '-D ELF_PLT_UNWIND_LIST_OPTIONS=TRUE', + [[-D 'BINDIR="/bin"']], + string.format([[-D 'SCRIPTDIR="/%s/lib"']], config.target.platform), + string.format([[-D 'TOOLBINDIR="/%s/bin"']], config.target.platform), + '-I $dir/ld', + '-I $outdir/ld', + '-I $srcdir/ld', + '-I $dir/bfd', + '-I $outdir/bfd', + '-I $srcdir/bfd', + } + local f = io.open(pkg.dir..'/ld/ldemul-list.h', 'w') + for _, emul in ipairs(emuls) do + f:write(string.format('extern ld_emulation_xfer_type ld_%s_emulation;\n', emul)) + end + f:write('#define EMULATION_LIST ') + for _, emul in ipairs(emuls) do + f:write(string.format('&ld_%s_emulation, ', emul)) + end + f:write('0\n') + f:close() + + build('copy', '$outdir/ld/stringify.sed', '$srcdir/ld/emultempl/astring.sed') + rule('genscripts', string.format([[cd $outdir/ld && LIB_PATH= sh $$OLDPWD/$srcdir/ld/genscripts.sh $$OLDPWD/$srcdir/ld /lib '' '' %s %s %s '' /lib '%s' /lib no yes $emul %s]], config.target.platform, config.target.platform, config.target.platform, table.concat(emuls, ' '), config.target.platform)) + local srcs = {} + for _, emul in ipairs(emuls) do + local out = string.format('$outdir/ld/e%s.c', emul) + table.insert(srcs, out) + build('genscripts', string.format('$outdir/ld/e%s.c', emul), {'|', '$srcdir/ld/genscripts.sh', '$outdir/ld/stringify.sed'}, { + emul=emul, + }) + end + + cc('ld/ldmain.c', nil, {cflags={ + '$cflags', + string.format([[-D 'DEFAULT_EMULATION="%s"']], emuls[1]), + string.format([[-D 'TARGET="%s"']], 'x86_64-pc-linux-musl'), + }}) + exe('bin/ld', { + -- src/ld/Makefile.am:/^ld_new_SOURCES + -- src/ld/configure.tgt:/^targ_extra_ofiles + paths[[ + ld/( + ldgram.c ldlex-wrapper.c lexsup.c ldlang.c mri.c ldctor.c ldmain.c.o + ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c + ldbuildid.c + + ldelf.c ldelfgen.c + ) + libbfd.a.d + libctf.a.d + ]], + srcs, + }) + file('bin/ld', '755', '$outdir/bin/ld') + sym(string.format('bin/%s-ld', config.target.platform), 'ld') + man{'ld/ld.1'} +end) + +fetch 'curl' diff --git a/pkg/binutils/ld/config.h b/pkg/binutils/ld/config.h @@ -0,0 +1,91 @@ +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1 +#define DEFAULT_EMIT_GNU_HASH 1 +#define DEFAULT_EMIT_SYSV_HASH 0 +/* #undef DEFAULT_FLAG_COMPRESS_DEBUG */ +#define DEFAULT_LD_Z_RELRO 1 +#define DEFAULT_LD_Z_SEPARATE_CODE 1 +#define DEFAULT_NEW_DTAGS 1 +/* #undef ENABLE_NLS */ +/* #undef EXTRA_SHLIB_EXTENSION */ +#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT +#define HAVE_CLOSE 1 +#define HAVE_DECL_ENVIRON 1 +#define HAVE_DECL_FREE 1 +#define HAVE_DECL_GETENV 1 +#define HAVE_DECL_GETOPT 1 +#define HAVE_DECL_SBRK 1 +#define HAVE_DECL_STRSTR 1 +#define HAVE_DIRENT_H 1 +#define HAVE_DLFCN_H 1 +/* #undef HAVE_ELF_HINTS_H */ +#define HAVE_FCNTL_H 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_GLOB 1 +#define HAVE_INITFINI_ARRAY 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LC_MESSAGES 1 +#define HAVE_LIMITS_H 1 +#define HAVE_LOCALE_H 1 +#define HAVE_LSEEK 1 +#define HAVE_MEMORY_H 1 +#define HAVE_MKSTEMP 1 +#define HAVE_MMAP 1 +/* #undef HAVE_NDIR_H */ +#define HAVE_OPEN 1 +#define HAVE_REALPATH 1 +#define HAVE_SBRK 1 +#define HAVE_SETLOCALE 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +/* #undef HAVE_SYS_DIR_H */ +#define HAVE_SYS_FILE_H 1 +/* #undef HAVE_SYS_NDIR_H */ +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_WAITPID 1 +/* #undef HAVE_WINDOWS_H */ +#define LT_OBJDIR ".libs/" +#define PACKAGE "ld" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "ld" +#define PACKAGE_STRING "ld 2.34" +#define PACKAGE_TARNAME "ld" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "2.34" +#define SIZEOF_VOID_P 8 +#define STDC_HEADERS 1 +#define STRING_WITH_STRINGS 1 +/* #undef USE_BINARY_FOPEN */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#define VERSION "2.34" +/* #undef YYTEXT_POINTER */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ diff --git a/pkg/binutils/libctf/config.h b/pkg/binutils/libctf/config.h @@ -0,0 +1,65 @@ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ +#define HAVE_BFD_ELF 1 +#define HAVE_BYTESWAP_H 1 +#define HAVE_DECL_ASPRINTF 1 +#define HAVE_DLFCN_H 1 +#define HAVE_ENDIAN_H 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_MMAP 1 +#define HAVE_O_CLOEXEC 1 +#define HAVE_PREAD 1 +/* #undef HAVE_QSORT_R */ +/* #undef HAVE_QSORT_R_ARG_LAST */ +/* #undef HAVE_QSORT_R_COMPAR_LAST */ +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_UNISTD_H 1 +#define LT_OBJDIR ".libs/" +#define PACKAGE "libctf-library" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "libctf library" +#define PACKAGE_STRING "libctf library 1.2.0-pre" +#define PACKAGE_TARNAME "libctf-library" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "1.2.0-pre" +#define STDC_HEADERS 1 +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#define VERSION "1.2.0-pre" +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ diff --git a/pkg/binutils/libiberty/config.h b/pkg/binutils/libiberty/config.h @@ -0,0 +1,199 @@ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ +/* #undef CRAY_STACKSEG_END */ +#define HAVE_ALLOCA_H 1 +#define HAVE_ASPRINTF 1 +#define HAVE_ATEXIT 1 +#define HAVE_BASENAME 1 +#define HAVE_BCMP 1 +#define HAVE_BCOPY 1 +#define HAVE_BSEARCH 1 +#define HAVE_BZERO 1 +#define HAVE_CALLOC 1 +/* #undef HAVE_CANONICALIZE_FILE_NAME */ +#define HAVE_CLOCK 1 +#define HAVE_DECL_ASPRINTF 1 +#define HAVE_DECL_BASENAME 1 +#define HAVE_DECL_CALLOC 1 +#define HAVE_DECL_FFS 1 +#define HAVE_DECL_GETENV 1 +#define HAVE_DECL_GETOPT 1 +#define HAVE_DECL_MALLOC 1 +#define HAVE_DECL_REALLOC 1 +#define HAVE_DECL_SBRK 1 +#define HAVE_DECL_SNPRINTF 1 +#define HAVE_DECL_STRNLEN 1 +#define HAVE_DECL_STRTOL 1 +#define HAVE_DECL_STRTOLL 1 +#define HAVE_DECL_STRTOUL 1 +#define HAVE_DECL_STRTOULL 1 +#define HAVE_DECL_STRVERSCMP 1 +#define HAVE_DECL_VASPRINTF 1 +#define HAVE_DECL_VSNPRINTF 1 +#define HAVE_DUP3 1 +#define HAVE_FCNTL_H 1 +#define HAVE_FFS 1 +#define HAVE_FORK 1 +#define HAVE_GETCWD 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_GETRLIMIT 1 +#define HAVE_GETRUSAGE 1 +/* #undef HAVE_GETSYSINFO */ +#define HAVE_GETTIMEOFDAY 1 +#define HAVE_INDEX 1 +#define HAVE_INSQUE 1 +#define HAVE_INTPTR_T 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LIMITS_H 1 +#define HAVE_LONG_LONG 1 +/* #undef HAVE_MACHINE_HAL_SYSINFO_H */ +#define HAVE_MALLOC_H 1 +#define HAVE_MEMCHR 1 +#define HAVE_MEMCMP 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMEM 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMORY_H 1 +#define HAVE_MEMSET 1 +#define HAVE_MKSTEMPS 1 +#define HAVE_MMAP 1 +/* #undef HAVE_ON_EXIT */ +#define HAVE_PIPE2 1 +/* #undef HAVE_PROCESS_H */ +#define HAVE_PSIGNAL 1 +/* #undef HAVE_PSTAT_GETDYNAMIC */ +/* #undef HAVE_PSTAT_GETSTATIC */ +#define HAVE_PUTENV 1 +#define HAVE_RANDOM 1 +#define HAVE_REALPATH 1 +#define HAVE_RENAME 1 +#define HAVE_RINDEX 1 +#define HAVE_SBRK 1 +#define HAVE_SETENV 1 +/* #undef HAVE_SETPROCTITLE */ +#define HAVE_SETRLIMIT 1 +/* #undef HAVE_SIGSETMASK */ +#define HAVE_SNPRINTF 1 +/* #undef HAVE_SPAWNVE */ +/* #undef HAVE_SPAWNVPE */ +#define HAVE_STDINT_H 1 +#define HAVE_STDIO_EXT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STPCPY 1 +#define HAVE_STPNCPY 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRCHR 1 +#define HAVE_STRDUP 1 +#define HAVE_STRERROR 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRNCASECMP 1 +#define HAVE_STRNDUP 1 +#define HAVE_STRNLEN 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSIGNAL 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOD 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOULL 1 +#define HAVE_STRVERSCMP 1 +#define HAVE_SYSCONF 1 +/* #undef HAVE_SYSCTL */ +/* #undef HAVE_SYSMP */ +/* #undef HAVE_SYS_ERRLIST */ +#define HAVE_SYS_FILE_H 1 +#define HAVE_SYS_MMAN_H 1 +/* #undef HAVE_SYS_NERR */ +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_PRCTL_H 1 +/* #undef HAVE_SYS_PSTAT_H */ +#define HAVE_SYS_RESOURCE_H 1 +/* #undef HAVE_SYS_SIGLIST */ +#define HAVE_SYS_STAT_H 1 +/* #undef HAVE_SYS_SYSCTL_H */ +#define HAVE_SYS_SYSINFO_H 1 +/* #undef HAVE_SYS_SYSMP_H */ +/* #undef HAVE_SYS_SYSTEMCFG_H */ +/* #undef HAVE_SYS_TABLE_H */ +#define HAVE_SYS_TIME_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_WAIT_H 1 +/* #undef HAVE_TABLE */ +#define HAVE_TIMES 1 +#define HAVE_TIME_H 1 +#define HAVE_TMPNAM 1 +#define HAVE_UINTPTR_T 1 +#define HAVE_UNISTD_H 1 +#define HAVE_VASPRINTF 1 +#define HAVE_VFORK 1 +/* #undef HAVE_VFORK_H */ +#define HAVE_VFPRINTF 1 +#define HAVE_VPRINTF 1 +#define HAVE_VSPRINTF 1 +#define HAVE_WAIT3 1 +#define HAVE_WAIT4 1 +#define HAVE_WAITPID 1 +#define HAVE_WORKING_FORK 1 +#define HAVE_WORKING_VFORK 1 +/* #undef HAVE__DOPRNT */ +/* #undef HAVE__SYSTEM_CONFIGURATION */ +#define HAVE___FSETLOCKING 1 +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 +/* #undef NEED_DECLARATION_ERRNO */ +/* #undef NO_MINUS_C_MINUS_O */ +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "" +#define PACKAGE_STRING "" +#define PACKAGE_TARNAME "" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "" +#define SIZEOF_INT 4 +#define SIZEOF_LONG 8 +#define SIZEOF_LONG_LONG 8 +#define SIZEOF_SIZE_T 8 +#define STACK_DIRECTION -1 +#define STDC_HEADERS 1 +#define TIME_WITH_SYS_TIME 1 +#define UNSIGNED_64BIT_TYPE uint64_t +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ +/* #undef const */ +#ifndef __cplusplus +/* #undef inline */ +#endif +/* #undef intptr_t */ +/* #undef pid_t */ +/* #undef ssize_t */ +/* #undef uintptr_t */ +/* #undef vfork */ diff --git a/pkg/binutils/opcodes/config.h b/pkg/binutils/opcodes/config.h @@ -0,0 +1,49 @@ +/* Check that config.h is #included before system headers +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1 +/* #undef ENABLE_NLS */ +#define HAVE_DECL_BASENAME 1 +#define HAVE_DECL_STPCPY 1 +#define HAVE_DLFCN_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LIMITS_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_SIGSETJMP 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_UNISTD_H 1 +#define LT_OBJDIR ".libs/" +#define PACKAGE "opcodes" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "opcodes" +#define PACKAGE_STRING "opcodes 2.34" +#define PACKAGE_TARNAME "opcodes" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "2.34" +#define STDC_HEADERS 1 +#define STRING_WITH_STRINGS 1 +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#define VERSION "2.34" +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ diff --git a/pkg/binutils/sha256 b/pkg/binutils/sha256 @@ -0,0 +1 @@ +f00b0e8803dc9bab1e2165bd568528135be734df3fabf8d0161828cd56028952 binutils-2.34.tar.xz diff --git a/pkg/binutils/url b/pkg/binutils/url @@ -0,0 +1 @@ +url = "https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz" diff --git a/pkg/binutils/vec.lua b/pkg/binutils/vec.lua @@ -0,0 +1,295 @@ +local elf = { + 'elf.c', 'elflink.c', 'elf-attrs.c', 'elf-strtab.c', 'elf-eh-frame.c', + 'dwarf1.c', 'dwarf2.c' +} +local coffgen = {'coffgen.c', 'dwarf2.c'} +local coff = {'cofflink.c', coffgen} +local ecoff = {'ecofflink.c', coffgen} +local xcoff = {'xcofflink.c', coffgen} +local elfxx_x86 = {'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf-vxworks.c'} + +-- src/bfd/configure.ac:/for vec in/ +return { + aarch64_elf32_be_vec={'elf32-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf32.c', elf}, + aarch64_elf32_le_vec={'elf32-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf32.c', elf}, + aarch64_elf64_be_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf}, + aarch64_elf64_be_cloudabi_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf}, + aarch64_elf64_le_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf}, + aarch64_elf64_le_cloudabi_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf}, + aarch64_mach_o_vec={'mach-o-aarch64.c'}, + alpha_ecoff_le_vec={'coff-alpha.c', 'ecoff.c', ecoff}, + alpha_elf64_vec={'elf64-alpha.c', 'elf64.c', elf}, + alpha_elf64_fbsd_vec={'elf64-alpha.c', 'elf64.c', elf}, + alpha_vms_vec={'vms-alpha.c', 'vms-misc.c', 'vms-lib.c'}, + alpha_vms_lib_txt_vec={'vms-lib.c', 'vms-misc.c'}, + am33_elf32_linux_vec={'elf32-am33lin.c', 'elf32.c', elf}, + aout0_be_vec={'aout0.c', 'aout32.c'}, + aout64_vec={'demo64.c', 'aout64.c'}, + aout_vec={'host-aout.c', 'aout32.c'}, + arc_elf32_be_vec={'elf32-arc.c', 'elf32.c', elf}, + arc_elf32_le_vec={'elf32-arc.c', 'elf32.c', elf}, + arm_elf32_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_fdpic_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_fdpic_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_nacl_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_nacl_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_symbian_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_symbian_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_vxworks_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_elf32_vxworks_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, + arm_pe_be_vec={'pe-arm.c', 'peigen.c', coff}, + arm_pe_le_vec={'pe-arm.c', 'peigen.c', coff}, + arm_pe_wince_be_vec={'pe-arm-wince.c', 'pe-arm.c', 'peigen.c', coff}, + arm_pe_wince_le_vec={'pe-arm-wince.c', 'pe-arm.c', 'peigen.c', coff}, + arm_pei_be_vec={'pei-arm.c', 'peigen.c', coff}, + arm_pei_le_vec={'pei-arm.c', 'peigen.c', coff}, + arm_pei_wince_be_vec={'pei-arm-wince.c', 'pei-arm.c', 'peigen.c', coff}, + arm_pei_wince_le_vec={'pei-arm-wince.c', 'pei-arm.c', 'peigen.c', coff}, + arm_mach_o_vec={'mach-o-arm.c'}, + avr_elf32_vec={'elf32-avr.c', 'elf32.c', elf}, + bfin_elf32_vec={'elf32-bfin.c', 'elf32.c', elf}, + bfin_elf32_fdpic_vec={'elf32-bfin.c', 'elf32.c', elf}, + cr16_elf32_vec={'elf32-cr16.c', 'elf32.c', elf}, + cris_aout_vec={'aout-cris.c'}, + cris_elf32_vec={'elf32-cris.c', 'elf32.c', elf}, + cris_elf32_us_vec={'elf32-cris.c', 'elf32.c', elf}, + crx_elf32_vec={'elf32-crx.c', 'elf32.c', elf}, + csky_elf32_be_vec={'elf32-csky.c', 'elf32.c', elf}, + csky_elf32_le_vec={'elf32-csky.c', 'elf32.c', elf}, + d10v_elf32_vec={'elf32-d10v.c', 'elf32.c', elf}, + d30v_elf32_vec={'elf32-d30v.c', 'elf32.c', elf}, + dlx_elf32_be_vec={'elf32-dlx.c', 'elf32.c', elf}, + elf32_be_vec={'elf32-gen.c', 'elf32.c', elf}, + elf32_le_vec={'elf32-gen.c', 'elf32.c', elf}, + elf64_be_vec={'elf64-gen.c', 'elf64.c', elf}, + elf64_le_vec={'elf64-gen.c', 'elf64.c', elf}, + bpf_elf64_le_vec={'elf64-bpf.c', 'elf64.c', elf}, + bpf_elf64_be_vec={'elf64-bpf.c', 'elf64.c', elf}, + epiphany_elf32_vec={'elf32-epiphany.c', 'elf32.c', elf}, + fr30_elf32_vec={'elf32-fr30.c', 'elf32.c', elf}, + frv_elf32_vec={'elf32-frv.c', 'elf32.c', elf}, + frv_elf32_fdpic_vec={'elf32-frv.c', 'elf32.c', elf}, + h8300_elf32_vec={'elf32-h8300.c', 'elf32.c', elf}, + h8300_elf32_linux_vec={'elf32-h8300.c', 'elf32.c', elf}, + hppa_elf32_vec={'elf32-hppa.c', 'elf32.c', elf}, + hppa_elf32_linux_vec={'elf32-hppa.c', 'elf32.c', elf}, + hppa_elf32_nbsd_vec={'elf32-hppa.c', 'elf32.c', elf}, + hppa_elf64_vec={'elf64-hppa.c', 'elf64.c', elf}, + hppa_elf64_linux_vec={'elf64-hppa.c', 'elf64.c', elf}, + hppa_som_vec={'som.c'}, + i386_aout_vec={'i386aout.c', 'aout32.c'}, + i386_aout_bsd_vec={'i386bsd.c', 'aout32.c'}, + i386_aout_lynx_vec={'i386lynx.c', 'lynx-core.c', 'aout32.c'}, + i386_coff_vec={'coff-i386.c', coff}, + i386_coff_go32_vec={'coff-go32.c', coff}, + i386_coff_go32stubbed_vec={'coff-stgo32.c', coff}, + i386_coff_lynx_vec={'cf-i386lynx.c', 'lynx-core.c', coff}, + i386_elf32_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + i386_elf32_fbsd_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + i386_elf32_nacl_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + i386_elf32_sol2_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + i386_elf32_vxworks_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + i386_mach_o_vec={'mach-o-i386.c'}, + i386_msdos_vec={'i386msdos.c'}, + i386_pe_vec={'pe-i386.c', 'peigen.c', coff}, + i386_pei_vec={'pei-i386.c', 'peigen.c', coff}, + iamcu_elf32_vec={'elf32-i386.c', elfxx_x86, 'elf32.c', elf}, + ia64_elf32_be_vec={'elf32-ia64.c', 'elfxx-ia64.c', 'elf32.c', elf}, + ia64_elf32_hpux_be_vec={'elf32-ia64.c', 'elfxx-ia64.c', 'elf32.c', elf}, + ia64_elf64_be_vec={'elf64-ia64.c', 'elfxx-ia64.c', 'elf64.c', elf}, + ia64_elf64_le_vec={'elf64-ia64.c', 'elfxx-ia64.c', 'elf64.c', elf}, + ia64_elf64_hpux_be_vec={'elf64-ia64.c', 'elfxx-ia64.c', 'elf64.c', elf}, + ia64_elf64_vms_vec={'elf64-ia64-vms.c', 'elf64-ia64.c', 'elfxx-ia64.c', 'elf64.c', 'vms-lib.c', 'vms-misc.c', elf}, + ia64_pei_vec={'pei-ia64.c', 'pepigen.c', coff}, + ip2k_elf32_vec={'elf32-ip2k.c', 'elf32.c', elf}, + iq2000_elf32_vec={'elf32-iq2000.c', 'elf32.c', elf}, + k1om_elf64_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf64.c', elf}, + k1om_elf64_fbsd_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf64.c', elf}, + l1om_elf64_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf64.c', elf}, + l1om_elf64_fbsd_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf64.c', elf}, + lm32_elf32_vec={'elf32-lm32.c', 'elf32.c', elf}, + lm32_elf32_fdpic_vec={'elf32-lm32.c', 'elf32.c', elf}, + m32c_elf32_vec={'elf32-m32c.c', 'elf32.c', elf}, + m32r_elf32_vec={'elf32-m32r.c', 'elf32.c', elf}, + m32r_elf32_le_vec={'elf32-m32r.c', 'elf32.c', elf}, + m32r_elf32_linux_vec={'elf32-m32r.c', 'elf32.c', elf}, + m32r_elf32_linux_le_vec={'elf32-m32r.c', 'elf32.c', elf}, + m68hc11_elf32_vec={'elf32-m68hc11.c', 'elf32-m68hc1x.c', 'elf32.c', elf}, + m68hc12_elf32_vec={'elf32-m68hc12.c', 'elf32-m68hc1x.c', 'elf32.c', elf}, + m68k_elf32_vec={'elf32-m68k.c', 'elf32.c', elf}, + s12z_elf32_vec={'elf32-s12z.c', 'elf32.c', elf}, + mach_o_be_vec={'mach-o.c', 'dwarf2.c'}, + mach_o_le_vec={'mach-o.c', 'dwarf2.c'}, + mach_o_fat_vec={'mach-o.c', 'dwarf2.c'}, + mcore_elf32_be_vec={'elf32-mcore.c', 'elf32.c', elf}, + mcore_elf32_le_vec={'elf32-mcore.c', 'elf32.c', elf}, + mcore_pe_be_vec={'pe-mcore.c', 'peigen.c', coff}, + mcore_pe_le_vec={'pe-mcore.c', 'peigen.c', coff}, + mcore_pei_be_vec={'pei-mcore.c', 'peigen.c', coff}, + mcore_pei_le_vec={'pei-mcore.c', 'peigen.c', coff}, + mep_elf32_vec={'elf32-mep.c', 'elf32.c', elf}, + mep_elf32_le_vec={'elf32-mep.c', 'elf32.c', elf}, + metag_elf32_vec={'elf32-metag.c', 'elf32.c', elf}, + microblaze_elf32_vec={'elf32-microblaze.c', 'elf32.c', elf}, + microblaze_elf32_le_vec={'elf32-microblaze.c', 'elf32.c', elf}, + mips_ecoff_be_vec={'coff-mips.c', 'ecoff.c', ecoff}, + mips_ecoff_le_vec={'coff-mips.c', 'ecoff.c', ecoff}, + mips_ecoff_bele_vec={'coff-mips.c', 'ecoff.c', ecoff}, + mips_elf32_be_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_le_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_n_be_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_n_le_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_ntrad_be_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_ntrad_le_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_ntradfbsd_be_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_ntradfbsd_le_vec={'elfn32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_trad_be_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_trad_le_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_tradfbsd_be_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_tradfbsd_le_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_vxworks_be_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf32_vxworks_le_vec={'elf32-mips.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_be_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_le_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_trad_be_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_trad_le_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_tradfbsd_be_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mips_elf64_tradfbsd_le_vec={'elf64-mips.c', 'elf64.c', 'elfxx-mips.c', 'elf-vxworks.c', 'elf32.c', elf, ecoff}, + mmix_elf64_vec={'elf64-mmix.c', 'elf64.c', elf}, + mmix_mmo_vec={'mmo.c'}, + mn10200_elf32_vec={'elf-m10200.c', 'elf32.c', elf}, + mn10300_elf32_vec={'elf-m10300.c', 'elf32.c', elf}, + moxie_elf32_be_vec={'elf32-moxie.c', 'elf32.c', elf}, + moxie_elf32_le_vec={'elf32-moxie.c', 'elf32.c', elf}, + msp430_elf32_vec={'elf32-msp430.c', 'elf32.c', elf}, + msp430_elf32_ti_vec={'elf32-msp430.c', 'elf32.c', elf}, + mt_elf32_vec={'elf32-mt.c', 'elf32.c', elf}, + nds32_elf32_be_vec={'elf32-nds32.c', 'elf32.c', elf}, + nds32_elf32_le_vec={'elf32-nds32.c', 'elf32.c', elf}, + nds32_elf32_linux_be_vec={'elf32-nds32.c', 'elf32.c', elf}, + nds32_elf32_linux_le_vec={'elf32-nds32.c', 'elf32.c', elf}, + nfp_elf64_vec={'elf64-nfp.c', 'elf64.c', elf}, + nios2_elf32_be_vec={'elf32-nios2.c', 'elf32.c', elf}, + nios2_elf32_le_vec={'elf32-nios2.c', 'elf32.c', elf}, + ns32k_aout_pc532mach_vec={'pc532-mach.c', 'aout-ns32k.c'}, + ns32k_aout_pc532nbsd_vec={'ns32knetbsd.c', 'aout-ns32k.c'}, + or1k_elf32_vec={'elf32-or1k.c', 'elf32.c', elf}, + pdp11_aout_vec={'pdp11.c'}, + pef_vec={'pef.c'}, + pef_xlib_vec={'pef.c'}, + pj_elf32_vec={'elf32-pj.c', 'elf32.c', elf}, + pj_elf32_le_vec={'elf32-pj.c', 'elf32.c', elf}, + powerpc_boot_vec={'ppcboot.c'}, + powerpc_elf32_vec={'elf32-ppc.c', 'elf-vxworks.c', 'elf32.c', elf}, + powerpc_elf32_le_vec={'elf32-ppc.c', 'elf-vxworks.c', 'elf32.c', elf}, + powerpc_elf32_fbsd_vec={'elf32-ppc.c', 'elf-vxworks.c', 'elf32.c', elf}, + powerpc_elf32_vxworks_vec={'elf32-ppc.c', 'elf-vxworks.c', 'elf32.c', elf}, + powerpc_elf64_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf}, + powerpc_elf64_le_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf}, + powerpc_elf64_fbsd_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf}, + powerpc_pe_vec={'pe-ppc.c', 'peigen.c', coff}, + powerpc_pe_le_vec={'pe-ppc.c', 'peigen.c', coff}, + powerpc_pei_vec={'pei-ppc.c', 'peigen.c', coff}, + powerpc_pei_le_vec={'pei-ppc.c', 'peigen.c', coff}, + powerpc_xcoff_vec={'coff-rs6000.c', xcoff}, + pru_elf32_vec={'elf32-pru.c', 'elf32.c', elf}, + riscv_elf32_vec={'elf32-riscv.c', 'elfxx-riscv.c', 'elf32.c', elf}, + riscv_elf64_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf32.c', elf}, + rl78_elf32_vec={'elf32-rl78.c', 'elf32.c', elf}, + rs6000_xcoff64_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff}, + rs6000_xcoff64_aix_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff}, + rs6000_xcoff_vec={'coff-rs6000.c', xcoff}, + rx_elf32_be_vec={'elf32-rx.c', 'elf32.c', elf}, + rx_elf32_be_ns_vec={'elf32-rx.c', 'elf32.c', elf}, + rx_elf32_le_vec={'elf32-rx.c', 'elf32.c', elf}, + rx_elf32_linux_le_vec={'elf32-rx.c', 'elf32.c', elf}, + s390_elf32_vec={'elf32-s390.c', 'elf32.c', elf}, + s390_elf64_vec={'elf64-s390.c', 'elf64.c', elf}, + score_elf32_be_vec={'elf32-score.c', 'elf32-score7.c', 'elf32.c', elf}, + score_elf32_le_vec={'elf32-score.c', 'elf32-score7.c', 'elf32.c', elf}, + sh_coff_vec={'coff-sh.c', coff}, + sh_coff_le_vec={'coff-sh.c', coff}, + sh_coff_small_vec={'coff-sh.c', coff}, + sh_coff_small_le_vec={'coff-sh.c', coff}, + sh_elf32_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_le_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_fdpic_be_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_fdpic_le_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_linux_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_linux_be_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_nbsd_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_nbsd_le_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_vxworks_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_elf32_vxworks_le_vec={'elf32-sh.c', 'elf-vxworks.c', 'elf32.c', elf, 'coff-sh.c', coff}, + sh_pe_le_vec={'pe-sh.c', 'coff-sh.c', 'peigen.c', coff}, + sh_pei_le_vec={'pei-sh.c', 'coff-sh.c', 'peigen.c', coff}, + sparc_elf32_vec={'elf32-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf32.c', elf}, + sparc_elf32_sol2_vec={'elf32-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf32.c', elf}, + sparc_elf32_vxworks_vec={'elf32-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf32.c', elf}, + sparc_elf64_vec={'elf64-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf64.c', elf}, + sparc_elf64_fbsd_vec={'elf64-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf64.c', elf}, + sparc_elf64_sol2_vec={'elf64-sparc.c', 'elfxx-sparc.c', 'elf-vxworks.c', 'elf64.c', elf}, + spu_elf32_vec={'elf32-spu.c', 'elf32.c', elf}, + sym_vec={'xsym.c'}, + tic30_aout_vec={'aout-tic30.c'}, + tic30_coff_vec={'coff-tic30.c', coffgen}, + tic4x_coff0_vec={'coff-tic4x.c', coffgen}, + tic4x_coff0_beh_vec={'coff-tic4x.c', coffgen}, + tic4x_coff1_vec={'coff-tic4x.c', coffgen}, + tic4x_coff1_beh_vec={'coff-tic4x.c', coffgen}, + tic4x_coff2_vec={'coff-tic4x.c', coffgen}, + tic4x_coff2_beh_vec={'coff-tic4x.c', coffgen}, + tic54x_coff0_vec={'coff-tic54x.c', coffgen}, + tic54x_coff0_beh_vec={'coff-tic54x.c', coffgen}, + tic54x_coff1_vec={'coff-tic54x.c', coffgen}, + tic54x_coff1_beh_vec={'coff-tic54x.c', coffgen}, + tic54x_coff2_vec={'coff-tic54x.c', coffgen}, + tic54x_coff2_beh_vec={'coff-tic54x.c', coffgen}, + tic6x_elf32_be_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tic6x_elf32_le_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tic6x_elf32_c6000_be_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tic6x_elf32_c6000_le_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tic6x_elf32_linux_be_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tic6x_elf32_linux_le_vec={'elf32-tic6x.c', 'elf32.c', elf}, + tilegx_elf32_be_vec={'elf32-tilegx.c', 'elfxx-tilegx.c', 'elf32.c', elf}, + tilegx_elf32_le_vec={'elf32-tilegx.c', 'elfxx-tilegx.c', 'elf32.c', elf}, + tilegx_elf64_be_vec={'elf64-tilegx.c', 'elfxx-tilegx.c', 'elf64.c', elf}, + tilegx_elf64_le_vec={'elf64-tilegx.c', 'elfxx-tilegx.c', 'elf64.c', elf}, + tilepro_elf32_vec={'elf32-tilepro.c', 'elf32.c', elf}, + v800_elf32_vec={'elf32-v850.c', 'elf32.c', elf}, + v850_elf32_vec={'elf32-v850.c', 'elf32.c', elf}, + vax_aout_1knbsd_vec={'vax1knetbsd.c', 'aout32.c'}, + vax_aout_nbsd_vec={'vaxnetbsd.c', 'aout32.c'}, + vax_elf32_vec={'elf32-vax.c', 'elf32.c', elf}, + ft32_elf32_vec={'elf32-ft32.c', 'elf32.c', elf}, + visium_elf32_vec={'elf32-visium.c', 'elf32.c', elf}, + wasm_vec={'wasm-module.c'}, + wasm32_elf32_vec={'elf32-wasm32.c', 'elf32.c', elf}, + x86_64_coff_vec={'coff-x86_64.c', coff}, + x86_64_elf32_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', 'elf32.c', elf}, + x86_64_elf32_nacl_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', 'elf32.c', elf}, + x86_64_elf64_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf}, + x86_64_elf64_cloudabi_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf}, + x86_64_elf64_fbsd_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf}, + x86_64_elf64_nacl_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf}, + x86_64_elf64_sol2_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf}, + x86_64_mach_o_vec={'mach-o-x86-64.c'}, + x86_64_pe_vec={'pe-x86_64.c', 'pex64igen.c', coff}, + x86_64_pe_be_vec={'pe-x86_64.c', 'pex64igen.c', coff}, + x86_64_pei_vec={'pei-x86_64.c', 'pex64igen.c', coff}, + xc16x_elf32_vec={'elf32-xc16x.c', 'elf32.c', elf}, + xgate_elf32_vec={'elf32-xgate.c', 'elf32.c', elf}, + xstormy16_elf32_vec={'elf32-xstormy16.c', 'elf32.c', elf}, + xtensa_elf32_be_vec={'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf}, + xtensa_elf32_le_vec={'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf}, + z80_coff_vec={'coff-z80.c', 'reloc16.c', coffgen}, + z80_elf32_vec={'elf32-z80.c', 'elf32.c', elf}, + z8k_coff_vec={'coff-z8k.c', 'reloc16.c', coff}, + + srec_vec={'srec.c'}, + symbolsrec_vec={'srec.c'}, + tekhex_vec={'tekhex.c'}, + core_cisco_be_vec={'cisco-core.c'}, + core_cisco_le_vec={'cisco-core.c'}, +} diff --git a/pkg/binutils/ver b/pkg/binutils/ver @@ -0,0 +1 @@ +2.34 r0 diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -5,6 +5,7 @@ subgen 'alsa-utils' subgen 'awk' subgen 'bc' subgen 'bearssl' +subgen 'binutils' subgen 'blind' subgen 'byacc' subgen 'bzip2' diff --git a/sets.lua b/sets.lua @@ -42,6 +42,7 @@ return { 'zstd', }, devel={ + 'binutils', 'cproc', 'flex', 'make',