From 63bb3388250d9dc9026ca289dce73ac86c0a7f76 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 11 Apr 2013 13:22:01 +0000 Subject: [PATCH] Binutils-2.22: Optional install from base system This patch updates and enable the generation of native binutils, as part of the system build. To get binutils on the target system, set MKBINUTILS=yes on the command line. Change-Id: I0dc24b30123e943e1e9eed9fcf30c9dea2eab56a --- distrib/sets/lists/minix/mi | 37 ++ external/gpl3/binutils/Makefile | 3 +- .../gpl3/binutils/lib/libbfd/arch/earm/bfd.h | 342 ++++++++++++++++-- .../lib/libbfd/arch/earm/bfd_stdint.h | 2 +- .../binutils/lib/libbfd/arch/earm/bfdver.h | 6 +- .../binutils/lib/libbfd/arch/earm/config.h | 20 +- .../binutils/lib/libbfd/arch/earm/defs.mk | 6 +- .../gpl3/binutils/lib/libbfd/arch/i386/bfd.h | 342 ++++++++++++++++-- .../lib/libbfd/arch/i386/bfd_stdint.h | 2 +- .../binutils/lib/libbfd/arch/i386/bfdver.h | 6 +- .../binutils/lib/libbfd/arch/i386/config.h | 24 +- .../binutils/lib/libbfd/arch/i386/defs.mk | 6 +- .../binutils/lib/libiberty/arch/earm/config.h | 32 +- .../binutils/lib/libiberty/arch/i386/config.h | 32 +- .../binutils/lib/libiberty/arch/i386/defs.mk | 4 +- .../lib/libopcodes/arch/earm/config.h | 10 +- .../lib/libopcodes/arch/i386/config.h | 10 +- external/gpl3/binutils/usr.bin/Makefile.inc | 5 + .../binutils/usr.bin/common/Makefile.prog | 2 + .../usr.bin/common/arch/earm/config.h | 20 +- .../binutils/usr.bin/common/arch/earm/defs.mk | 28 +- .../usr.bin/common/arch/i386/config.h | 16 +- .../binutils/usr.bin/common/arch/i386/defs.mk | 28 +- external/gpl3/binutils/usr.bin/gas/Makefile | 2 + .../binutils/usr.bin/gas/arch/earm/config.h | 26 +- .../binutils/usr.bin/gas/arch/earm/itbl-cpu.h | 3 +- .../usr.bin/gas/arch/earm/obj-format.h | 3 +- .../binutils/usr.bin/gas/arch/earm/targ-cpu.h | 3 +- .../binutils/usr.bin/gas/arch/i386/config.h | 22 +- .../binutils/usr.bin/gas/arch/i386/defs.mk | 2 +- .../binutils/usr.bin/gas/arch/i386/targ-env.h | 5 +- external/gpl3/binutils/usr.bin/gprof/Makefile | 2 + .../usr.bin/gprof/arch/earm/gconfig.h | 10 +- .../usr.bin/gprof/arch/i386/gconfig.h | 10 +- external/gpl3/binutils/usr.bin/ld/Makefile | 12 +- .../binutils/usr.bin/ld/arch/earm/config.h | 19 +- .../binutils/usr.bin/ld/arch/earm/defs.mk | 8 +- .../usr.bin/ld/arch/earm/ldemul-list.h | 8 +- .../binutils/usr.bin/ld/arch/i386/config.h | 15 +- .../binutils/usr.bin/ld/arch/i386/defs.mk | 8 +- .../usr.bin/ld/arch/i386/ldemul-list.h | 7 +- .../gpl3/binutils/usr.bin/objdump/Makefile | 4 + share/mk/bsd.own.mk | 2 +- 43 files changed, 887 insertions(+), 267 deletions(-) diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index b1be8e708..73065678d 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -208,10 +208,13 @@ ./usr/bin minix-sys ./usr/bin/acknm minix-sys ./usr/bin/acksize minix-sys +./usr/bin/addr2line minix-sys binutils ./usr/bin/add_route minix-sys ./usr/bin/apropos minix-sys +./usr/bin/ar minix-sys binutils ./usr/bin/arch minix-sys ./usr/bin/arp minix-sys +./usr/bin/as minix-sys binutils ./usr/bin/at minix-sys ./usr/bin/awk minix-sys ./usr/bin/backup minix-sys @@ -229,6 +232,7 @@ ./usr/bin/cawf minix-sys ./usr/bin/cc minix-sys ./usr/bin/cdprobe minix-sys +./usr/bin/c++filt minix-sys binutils ./usr/bin/checkhier minix-sys obsolete ./usr/bin/chfn minix-sys ./usr/bin/chgrp minix-sys @@ -270,6 +274,7 @@ ./usr/bin/dumpcore minix-sys ./usr/bin/egrep minix-sys ./usr/bin/eject minix-sys +./usr/bin/elfedit minix-sys binutils ./usr/bin/elvis minix-sys obsolete ./usr/bin/elvprsv minix-sys obsolete ./usr/bin/elvrec minix-sys obsolete @@ -297,6 +302,7 @@ ./usr/bin/gcov-pull minix-sys ./usr/bin/genassym minix-sys ./usr/bin/getopt minix-sys +./usr/bin/gprof minix-sys binutils ./usr/bin/grep minix-sys ./usr/bin/groups minix-sys ./usr/bin/gunzip minix-sys @@ -329,6 +335,7 @@ ./usr/bin/join minix-sys ./usr/bin/kill minix-sys obsolete ./usr/bin/last minix-sys +./usr/bin/ld minix-sys binutils ./usr/bin/ldd minix-sys ./usr/bin/less minix-sys ./usr/bin/lessecho minix-sys @@ -366,9 +373,12 @@ ./usr/bin/nbperf minix-sys ./usr/bin/newgrp minix-sys ./usr/bin/nice minix-sys +./usr/bin/nm minix-sys binutils ./usr/bin/nohup minix-sys ./usr/bin/nonamed minix-sys ./usr/bin/nroff minix-sys +./usr/bin/objcopy minix-sys binutils +./usr/bin/objdump minix-sys binutils ./usr/bin/od minix-sys ./usr/bin/page minix-sys ./usr/bin/passwd minix-sys @@ -389,11 +399,13 @@ ./usr/bin/pr_routes minix-sys ./usr/bin/ps minix-sys ./usr/bin/ramdisk minix-sys +./usr/bin/ranlib minix-sys binutils ./usr/bin/rarpd minix-sys ./usr/bin/rawspeed minix-sys ./usr/bin/rcp minix-sys ./usr/bin/rdate minix-sys obsolete ./usr/bin/readall minix-sys obsolete +./usr/bin/readelf minix-sys binutils ./usr/bin/readlink minix-sys ./usr/bin/reboot minix-sys ./usr/bin/ref minix-sys obsolete @@ -412,6 +424,7 @@ ./usr/bin/sha1 minix-sys ./usr/bin/shar minix-sys ./usr/bin/shutdown minix-sys +./usr/bin/size minix-sys binutils ./usr/bin/sleep minix-sys ./usr/bin/slip minix-sys ./usr/bin/sort minix-sys @@ -421,6 +434,7 @@ ./usr/bin/sprofdiff minix-sys ./usr/bin/srccrc minix-sys ./usr/bin/stat minix-sys +./usr/bin/strings minix-sys binutils ./usr/bin/strip minix-sys ./usr/bin/stty minix-sys ./usr/bin/su minix-sys @@ -1054,6 +1068,8 @@ ./usr/lib/libaudiodriver_pic.a minix-sys ./usr/lib/libbdev.a minix-sys ./usr/lib/libbdev_pic.a minix-sys +./usr/lib/libbfd.so.12.0 minix-sys binutils +./usr/lib/libbfd.so.12 minix-sys binutils ./usr/lib/libblockdriver.a minix-sys ./usr/lib/libblockdriver_pic.a minix-sys ./usr/lib/libbz2.a minix-sys @@ -1139,6 +1155,8 @@ ./usr/lib/libnetdriver_pic.a minix-sys ./usr/lib/libnetsock.a minix-sys ./usr/lib/libnetsock_pic.a minix-sys +./usr/lib/libopcodes.so.5.0 minix-sys binutils +./usr/lib/libopcodes.so.5 minix-sys binutils ./usr/lib/libprop.a minix-sys ./usr/lib/libprop_pic.a minix-sys ./usr/lib/libprop.so.0.0 minix-sys @@ -1205,7 +1223,10 @@ ./usr/man/man1/..1 minix-sys ./usr/man/man1/[.1 minix-sys ./usr/man/man1/acksize.1 minix-sys +./usr/man/man1/addr2line.1 minix-sys binutils ./usr/man/man1/apropos.1 minix-sys +./usr/man/man1/ar.1 minix-sys binutils +./usr/man/man1/as.1 minix-sys binutils ./usr/man/man1/ash.1 minix-sys ./usr/man/man1/at.1 minix-sys ./usr/man/man1/awk.1 minix-sys @@ -1223,6 +1244,7 @@ ./usr/man/man1/cat.1 minix-sys ./usr/man/man1/cawf.1 minix-sys ./usr/man/man1/cd.1 minix-sys +./usr/man/man1/c++filt.1 minix-sys binutils ./usr/man/man1/chfn.1 minix-sys ./usr/man/man1/chgrp.1 minix-sys ./usr/man/man1/chmod.1 minix-sys @@ -1260,6 +1282,7 @@ ./usr/man/man1/ed.1 minix-sys ./usr/man/man1/egrep.1 minix-sys ./usr/man/man1/eject.1 minix-sys +./usr/man/man1/elfedit.1 minix-sys binutils ./usr/man/man1/elvis.1 minix-sys obsolete ./usr/man/man1/elvrec.1 minix-sys obsolete ./usr/man/man1/env.1 minix-sys @@ -1289,6 +1312,7 @@ ./usr/man/man1/genassym.1 minix-sys ./usr/man/man1/getopt.1 minix-sys ./usr/man/man1/getopts.1 minix-sys +./usr/man/man1/gprof.1 minix-sys binutils ./usr/man/man1/grep.1 minix-sys ./usr/man/man1/groups.1 minix-sys ./usr/man/man1/gunzip.1 minix-sys @@ -1317,6 +1341,7 @@ ./usr/man/man1/kill.1 minix-sys ./usr/man/man1/ksh.1 minix-sys ./usr/man/man1/last.1 minix-sys +./usr/man/man1/ld.1 minix-sys binutils ./usr/man/man1/ldd.1 minix-sys ./usr/man/man1/ld.elf_so.1 minix-sys ./usr/man/man1/less.1 minix-sys @@ -1362,6 +1387,8 @@ ./usr/man/man1/nice.1 minix-sys ./usr/man/man1/nm.1 minix-sys ./usr/man/man1/nohup.1 minix-sys +./usr/man/man1/objcopy.1 minix-sys binutils +./usr/man/man1/objdump.1 minix-sys binutils ./usr/man/man1/od.1 minix-sys ./usr/man/man1/page.1 minix-sys ./usr/man/man1/passwd.1 minix-sys @@ -1377,9 +1404,11 @@ ./usr/man/man1/profile.1 minix-sys ./usr/man/man1/ps.1 minix-sys ./usr/man/man1/pwd.1 minix-sys +./usr/man/man1/ranlib.1 minix-sys binutils ./usr/man/man1/rcp.1 minix-sys ./usr/man/man1/read.1 minix-sys ./usr/man/man1/readall.1 minix-sys obsolete +./usr/man/man1/readelf.1 minix-sys binutils ./usr/man/man1/readlink.1 minix-sys ./usr/man/man1/readonly.1 minix-sys ./usr/man/man1/recwave.1 minix-sys @@ -1401,11 +1430,14 @@ ./usr/man/man1/sha1.1 minix-sys ./usr/man/man1/shar.1 minix-sys ./usr/man/man1/shift.1 minix-sys +./usr/man/man1/size.1 minix-sys binutils ./usr/man/man1/sleep.1 minix-sys ./usr/man/man1/sort.1 minix-sys ./usr/man/man1/spell.1 minix-sys ./usr/man/man1/split.1 minix-sys ./usr/man/man1/stat.1 minix-sys +./usr/man/man1/strings.1 minix-sys binutils +./usr/man/man1/strip.1 minix-sys binutils ./usr/man/man1/stty.1 minix-sys ./usr/man/man1/su.1 minix-sys ./usr/man/man1/sum.1 minix-sys @@ -3887,9 +3919,14 @@ ./usr/share/doc/psd/19.curses/twinkle2.c minix-sys ./usr/share/doc/psd/19.curses/win_st.c minix-sys ./usr/share/info minix-sys +./usr/share/info/as.info minix-sys binutils +./usr/share/info/bfd.info minix-sys binutils +./usr/share/info/binutils.info minix-sys binutils ./usr/share/info/dir minix-sys +./usr/share/info/gprof.info minix-sys binutils ./usr/share/info/info.info minix-sys ./usr/share/info/info-stnd.info minix-sys +./usr/share/info/ld.info minix-sys binutils ./usr/share/info/texinfo.info minix-sys ./usr/share/misc minix-sys ./usr/share/misc/acronyms minix-sys diff --git a/external/gpl3/binutils/Makefile b/external/gpl3/binutils/Makefile index a2ee173cc..f8ece0415 100644 --- a/external/gpl3/binutils/Makefile +++ b/external/gpl3/binutils/Makefile @@ -1,6 +1,7 @@ # $NetBSD: Makefile,v 1.1 2009/08/18 20:21:58 skrll Exp $ -SUBDIR+= lib .WAIT usr.bin usr.sbin +# LSC: NetBSD-specific tools: usr.sbin +SUBDIR+= lib .WAIT usr.bin # Speedup stubs for some subtrees that don't need to run these rules includes-libexec: diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h index b511736cc..532278325 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h @@ -11,8 +11,8 @@ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -191,8 +191,8 @@ typedef bfd_vma bfd_uint64_t; /* An offset into a file. BFD always uses the largest possible offset based on the build time availability of fseek, fseeko, or fseeko64. */ -typedef BFD_HOST_64_BIT file_ptr; -typedef unsigned BFD_HOST_64_BIT ufile_ptr; +typedef long file_ptr; +typedef unsigned long ufile_ptr; extern void bfd_sprintf_vma (bfd *, char *, bfd_vma); extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); @@ -302,8 +302,8 @@ typedef struct bfd_section *sec_ptr; #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ - (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \ - / bfd_octets_per_byte (bfd)) + (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ + ? (sec)->rawsize : (sec)->size) / bfd_octets_per_byte (bfd)) /* Return TRUE if input section SEC has been discarded. */ #define elf_discarded_section(sec) \ @@ -443,7 +443,7 @@ extern void bfd_hash_traverse /* Allows the default size of a hash table to be configured. New hash tables allocated using bfd_hash_table_init will be created with this size. */ -extern void bfd_hash_set_default_size (bfd_size_type); +extern unsigned long bfd_hash_set_default_size (unsigned long); /* This structure is used to keep track of stabs in sections information while linking. */ @@ -563,11 +563,6 @@ void bfd_putl16 (bfd_vma, void *); bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean); void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean); -extern bfd_boolean bfd_section_already_linked_table_init (void); -extern void bfd_section_already_linked_table_free (void); - -/* Externally visible ECOFF routines. */ - #if defined(__STDC__) || defined(ALMOST_STDC) struct ecoff_debug_info; struct ecoff_debug_swap; @@ -575,8 +570,18 @@ struct ecoff_extr; struct bfd_symbol; struct bfd_link_info; struct bfd_link_hash_entry; +struct bfd_section_already_linked; struct bfd_elf_version_tree; #endif + +extern bfd_boolean bfd_section_already_linked_table_init (void); +extern void bfd_section_already_linked_table_free (void); +extern bfd_boolean _bfd_handle_already_linked + (struct bfd_section *, struct bfd_section_already_linked *, + struct bfd_link_info *); + +/* Externally visible ECOFF routines. */ + extern bfd_vma bfd_ecoff_get_gp_value (bfd * abfd); extern bfd_boolean bfd_ecoff_set_gp_value @@ -651,8 +656,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name @@ -880,7 +884,7 @@ extern bfd_boolean bfd_elf32_arm_process_before_allocation void bfd_elf32_arm_set_target_relocs (bfd *, struct bfd_link_info *, int, char *, int, int, bfd_arm_vfp11_fix, - int, int, int, int); + int, int, int, int, int); extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking (bfd *, struct bfd_link_info *); @@ -923,6 +927,10 @@ extern bfd_boolean elf32_arm_build_stubs extern bfd_boolean elf32_arm_fix_exidx_coverage (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); +/* C6x unwind section editing support. */ +extern bfd_boolean elf32_tic6x_fix_exidx_coverage +(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); + /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform (unsigned int, unsigned int); @@ -1143,7 +1151,8 @@ long bfd_get_mtime (bfd *abfd); file_ptr bfd_get_size (bfd *abfd); void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, - int prot, int flags, file_ptr offset); + int prot, int flags, file_ptr offset, + void **map_addr, bfd_size_type *map_len); /* Extracted from bfdwin.c. */ /* Extracted from section.c. */ @@ -1324,6 +1333,11 @@ typedef struct bfd_section sections. */ #define SEC_COFF_SHARED_LIBRARY 0x4000000 + /* This input section should be copied to output in reverse order + as an array of pointers. This is for ELF linker internal use + only. */ +#define SEC_ELF_REVERSE_COPY 0x4000000 + /* This section contains data which may be shared with other executables or shared objects. This is for COFF only. */ #define SEC_COFF_SHARED 0x8000000 @@ -1508,6 +1522,9 @@ typedef struct bfd_section /* The BFD which owns the section. */ bfd *owner; + /* INPUT_SECTION_FLAGS if specified in the linker script. */ + struct flag_info *section_flag_info; + /* A symbol which points at this section only. */ struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; @@ -1686,6 +1703,9 @@ extern asection bfd_ind_section; /* target_index, used_by_bfd, constructor_chain, owner, */ \ 0, NULL, NULL, NULL, \ \ + /* flag_info, */ \ + NULL, \ + \ /* symbol, symbol_ptr_ptr, */ \ (struct bfd_symbol *) SYM, &SEC.symbol, \ \ @@ -1864,6 +1884,7 @@ enum bfd_architecture #define bfd_mach_mips5 5 #define bfd_mach_mips_loongson_2e 3001 #define bfd_mach_mips_loongson_2f 3002 +#define bfd_mach_mips_loongson_3a 3003 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ #define bfd_mach_mips_octeon 6501 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ @@ -1871,15 +1892,22 @@ enum bfd_architecture #define bfd_mach_mipsisa32r2 33 #define bfd_mach_mipsisa64 64 #define bfd_mach_mipsisa64r2 65 +#define bfd_mach_mips_micromips 96 bfd_arch_i386, /* Intel 386 */ -#define bfd_mach_i386_i386 1 -#define bfd_mach_i386_i8086 2 -#define bfd_mach_i386_i386_intel_syntax 3 -#define bfd_mach_x86_64 64 -#define bfd_mach_x86_64_intel_syntax 65 +#define bfd_mach_i386_intel_syntax (1 << 0) +#define bfd_mach_i386_i8086 (1 << 1) +#define bfd_mach_i386_i386 (1 << 2) +#define bfd_mach_x86_64 (1 << 3) +#define bfd_mach_x64_32 (1 << 4) +#define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax) bfd_arch_l1om, /* Intel L1OM */ -#define bfd_mach_l1om 66 -#define bfd_mach_l1om_intel_syntax 67 +#define bfd_mach_l1om (1 << 5) +#define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax) + bfd_arch_k1om, /* Intel K1OM */ +#define bfd_mach_k1om (1 << 6) +#define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax) bfd_arch_we32k, /* AT&T WE32xxx */ bfd_arch_tahoe, /* CCI/Harris Tahoe */ bfd_arch_i860, /* Intel 860 */ @@ -2064,6 +2092,13 @@ enum bfd_architecture #define bfd_mach_avr5 5 #define bfd_mach_avr51 51 #define bfd_mach_avr6 6 +#define bfd_mach_avrxmega1 101 +#define bfd_mach_avrxmega2 102 +#define bfd_mach_avrxmega3 103 +#define bfd_mach_avrxmega4 104 +#define bfd_mach_avrxmega5 105 +#define bfd_mach_avrxmega6 106 +#define bfd_mach_avrxmega7 107 bfd_arch_bfin, /* ADI Blackfin */ #define bfd_mach_bfin 1 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ @@ -2118,6 +2153,10 @@ enum bfd_architecture bfd_arch_lm32, /* Lattice Mico32 */ #define bfd_mach_lm32 1 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ + bfd_arch_tilepro, /* Tilera TILEPro */ + bfd_arch_tilegx, /* Tilera TILE-Gx */ +#define bfd_mach_tilepro 1 +#define bfd_mach_tilegx 1 bfd_arch_last }; @@ -2697,9 +2736,9 @@ between two procedure entry points is < 2^21, or else a hint. */ BFD_RELOC_ALPHA_TPREL_LO16, BFD_RELOC_ALPHA_TPREL16, -/* Bits 27..2 of the relocation address shifted right 2 bits; -simple reloc otherwise. */ +/* The MIPS jump instruction. */ BFD_RELOC_MIPS_JMP, + BFD_RELOC_MICROMIPS_JMP, /* The MIPS16 jump instruction. */ BFD_RELOC_MIPS16_JMP, @@ -2747,42 +2786,75 @@ to compensate for the borrow when the low bits are added. */ /* Relocation against a MIPS literal section. */ BFD_RELOC_MIPS_LITERAL, + BFD_RELOC_MICROMIPS_LITERAL, + +/* microMIPS PC-relative relocations. */ + BFD_RELOC_MICROMIPS_7_PCREL_S1, + BFD_RELOC_MICROMIPS_10_PCREL_S1, + BFD_RELOC_MICROMIPS_16_PCREL_S1, + +/* microMIPS versions of generic BFD relocs. */ + BFD_RELOC_MICROMIPS_GPREL16, + BFD_RELOC_MICROMIPS_HI16, + BFD_RELOC_MICROMIPS_HI16_S, + BFD_RELOC_MICROMIPS_LO16, /* MIPS ELF relocations. */ BFD_RELOC_MIPS_GOT16, + BFD_RELOC_MICROMIPS_GOT16, BFD_RELOC_MIPS_CALL16, + BFD_RELOC_MICROMIPS_CALL16, BFD_RELOC_MIPS_GOT_HI16, + BFD_RELOC_MICROMIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MICROMIPS_GOT_LO16, BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MICROMIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16, + BFD_RELOC_MICROMIPS_CALL_LO16, BFD_RELOC_MIPS_SUB, + BFD_RELOC_MICROMIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE, + BFD_RELOC_MICROMIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST, + BFD_RELOC_MICROMIPS_GOT_OFST, BFD_RELOC_MIPS_GOT_DISP, + BFD_RELOC_MICROMIPS_GOT_DISP, BFD_RELOC_MIPS_SHIFT5, BFD_RELOC_MIPS_SHIFT6, BFD_RELOC_MIPS_INSERT_A, BFD_RELOC_MIPS_INSERT_B, BFD_RELOC_MIPS_DELETE, BFD_RELOC_MIPS_HIGHEST, + BFD_RELOC_MICROMIPS_HIGHEST, BFD_RELOC_MIPS_HIGHER, + BFD_RELOC_MICROMIPS_HIGHER, BFD_RELOC_MIPS_SCN_DISP, + BFD_RELOC_MICROMIPS_SCN_DISP, BFD_RELOC_MIPS_REL16, BFD_RELOC_MIPS_RELGOT, BFD_RELOC_MIPS_JALR, + BFD_RELOC_MICROMIPS_JALR, BFD_RELOC_MIPS_TLS_DTPMOD32, BFD_RELOC_MIPS_TLS_DTPREL32, BFD_RELOC_MIPS_TLS_DTPMOD64, BFD_RELOC_MIPS_TLS_DTPREL64, BFD_RELOC_MIPS_TLS_GD, + BFD_RELOC_MICROMIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM, + BFD_RELOC_MICROMIPS_TLS_LDM, BFD_RELOC_MIPS_TLS_DTPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16, BFD_RELOC_MIPS_TLS_GOTTPREL, + BFD_RELOC_MICROMIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL32, BFD_RELOC_MIPS_TLS_TPREL64, BFD_RELOC_MIPS_TLS_TPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_TPREL_HI16, BFD_RELOC_MIPS_TLS_TPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_TPREL_LO16, /* MIPS ELF relocations (VxWorks and PLT extensions). */ @@ -3147,6 +3219,12 @@ pc-relative or some form of GOT-indirect relocation. */ BFD_RELOC_ARM_TLS_TPOFF32, BFD_RELOC_ARM_TLS_IE32, BFD_RELOC_ARM_TLS_LE32, + BFD_RELOC_ARM_TLS_GOTDESC, + BFD_RELOC_ARM_TLS_CALL, + BFD_RELOC_ARM_THM_TLS_CALL, + BFD_RELOC_ARM_TLS_DESCSEQ, + BFD_RELOC_ARM_THM_TLS_DESCSEQ, + BFD_RELOC_ARM_TLS_DESC, /* ARM group relocations. */ BFD_RELOC_ARM_ALU_PC_G0_NC, @@ -3181,6 +3259,9 @@ pc-relative or some form of GOT-indirect relocation. */ /* Annotation of BX instructions. */ BFD_RELOC_ARM_V4BX, +/* ARM support for STT_GNU_IFUNC. */ + BFD_RELOC_ARM_IRELATIVE, + /* These relocs are only used within the ARM assembler. They are not (at present) written to any object files. */ BFD_RELOC_ARM_IMMEDIATE, @@ -3759,6 +3840,10 @@ the opcode. */ BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, BFD_RELOC_C6000_COPY, + BFD_RELOC_C6000_JUMP_SLOT, + BFD_RELOC_C6000_EHTYPE, + BFD_RELOC_C6000_PCR_H16, + BFD_RELOC_C6000_PCR_L16, BFD_RELOC_C6000_ALIGN, BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP, @@ -3992,9 +4077,12 @@ instructions */ BFD_RELOC_RX_GPRELL, BFD_RELOC_RX_SYM, BFD_RELOC_RX_OP_SUBTRACT, + BFD_RELOC_RX_OP_NEG, BFD_RELOC_RX_ABS8, BFD_RELOC_RX_ABS16, + BFD_RELOC_RX_ABS16_REV, BFD_RELOC_RX_ABS32, + BFD_RELOC_RX_ABS32_REV, BFD_RELOC_RX_ABS16U, BFD_RELOC_RX_ABS16UW, BFD_RELOC_RX_ABS16UL, @@ -4768,6 +4856,178 @@ value in a word. The relocation is relative offset from */ /* This is used to tell the dynamic linker to copy the value out of the dynamic object into the runtime process image. */ BFD_RELOC_MICROBLAZE_COPY, + +/* Tilera TILEPro Relocations. */ + BFD_RELOC_TILEPRO_COPY, + BFD_RELOC_TILEPRO_GLOB_DAT, + BFD_RELOC_TILEPRO_JMP_SLOT, + BFD_RELOC_TILEPRO_RELATIVE, + BFD_RELOC_TILEPRO_BROFF_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT, + BFD_RELOC_TILEPRO_IMM8_X0, + BFD_RELOC_TILEPRO_IMM8_Y0, + BFD_RELOC_TILEPRO_IMM8_X1, + BFD_RELOC_TILEPRO_IMM8_Y1, + BFD_RELOC_TILEPRO_DEST_IMM8_X1, + BFD_RELOC_TILEPRO_MT_IMM15_X1, + BFD_RELOC_TILEPRO_MF_IMM15_X1, + BFD_RELOC_TILEPRO_IMM16_X0, + BFD_RELOC_TILEPRO_IMM16_X1, + BFD_RELOC_TILEPRO_IMM16_X0_LO, + BFD_RELOC_TILEPRO_IMM16_X1_LO, + BFD_RELOC_TILEPRO_IMM16_X0_HI, + BFD_RELOC_TILEPRO_IMM16_X1_HI, + BFD_RELOC_TILEPRO_IMM16_X0_HA, + BFD_RELOC_TILEPRO_IMM16_X1_HA, + BFD_RELOC_TILEPRO_IMM16_X0_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_GOT, + BFD_RELOC_TILEPRO_IMM16_X1_GOT, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA, + BFD_RELOC_TILEPRO_MMSTART_X0, + BFD_RELOC_TILEPRO_MMEND_X0, + BFD_RELOC_TILEPRO_MMSTART_X1, + BFD_RELOC_TILEPRO_MMEND_X1, + BFD_RELOC_TILEPRO_SHAMT_X0, + BFD_RELOC_TILEPRO_SHAMT_X1, + BFD_RELOC_TILEPRO_SHAMT_Y0, + BFD_RELOC_TILEPRO_SHAMT_Y1, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA, + BFD_RELOC_TILEPRO_TLS_DTPMOD32, + BFD_RELOC_TILEPRO_TLS_DTPOFF32, + BFD_RELOC_TILEPRO_TLS_TPOFF32, + +/* Tilera TILE-Gx Relocations. */ + BFD_RELOC_TILEGX_HW0, + BFD_RELOC_TILEGX_HW1, + BFD_RELOC_TILEGX_HW2, + BFD_RELOC_TILEGX_HW3, + BFD_RELOC_TILEGX_HW0_LAST, + BFD_RELOC_TILEGX_HW1_LAST, + BFD_RELOC_TILEGX_HW2_LAST, + BFD_RELOC_TILEGX_COPY, + BFD_RELOC_TILEGX_GLOB_DAT, + BFD_RELOC_TILEGX_JMP_SLOT, + BFD_RELOC_TILEGX_RELATIVE, + BFD_RELOC_TILEGX_BROFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1_PLT, + BFD_RELOC_TILEGX_IMM8_X0, + BFD_RELOC_TILEGX_IMM8_Y0, + BFD_RELOC_TILEGX_IMM8_X1, + BFD_RELOC_TILEGX_IMM8_Y1, + BFD_RELOC_TILEGX_DEST_IMM8_X1, + BFD_RELOC_TILEGX_MT_IMM14_X1, + BFD_RELOC_TILEGX_MF_IMM14_X1, + BFD_RELOC_TILEGX_MMSTART_X0, + BFD_RELOC_TILEGX_MMEND_X0, + BFD_RELOC_TILEGX_SHAMT_X0, + BFD_RELOC_TILEGX_SHAMT_X1, + BFD_RELOC_TILEGX_SHAMT_Y0, + BFD_RELOC_TILEGX_SHAMT_Y1, + BFD_RELOC_TILEGX_IMM16_X0_HW0, + BFD_RELOC_TILEGX_IMM16_X1_HW0, + BFD_RELOC_TILEGX_IMM16_X0_HW1, + BFD_RELOC_TILEGX_IMM16_X1_HW1, + BFD_RELOC_TILEGX_IMM16_X0_HW2, + BFD_RELOC_TILEGX_IMM16_X1_HW2, + BFD_RELOC_TILEGX_IMM16_X0_HW3, + BFD_RELOC_TILEGX_IMM16_X1_HW3, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_TLS_DTPMOD64, + BFD_RELOC_TILEGX_TLS_DTPOFF64, + BFD_RELOC_TILEGX_TLS_TPOFF64, + BFD_RELOC_TILEGX_TLS_DTPMOD32, + BFD_RELOC_TILEGX_TLS_DTPOFF32, + BFD_RELOC_TILEGX_TLS_TPOFF32, BFD_RELOC_UNUSED }; typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; reloc_howto_type *bfd_reloc_type_lookup @@ -5076,11 +5336,6 @@ struct bfd /* This BFD has been created by the linker and doesn't correspond to any input file. */ #define BFD_LINKER_CREATED 0x2000 - /* This may be set before writing out a BFD to request that it - be written using values for UIDs, GIDs, timestamps, etc. that - will be consistent from run to run. */ -#define BFD_DETERMINISTIC_OUTPUT 0x4000 - /* This may be set before writing out a BFD to request that it be written using values for UIDs, GIDs, timestamps, etc. that @@ -5368,6 +5623,9 @@ bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); #define bfd_gc_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) +#define bfd_lookup_section_flags(link_info, flag_info) \ + BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info)) + #define bfd_merge_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) @@ -5524,6 +5782,9 @@ enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; /* Forward declaration. */ typedef struct bfd_link_info _bfd_link_info; +/* Forward declaration. */ +typedef struct flag_info flag_info; + typedef struct bfd_target { /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ @@ -5555,7 +5816,11 @@ typedef struct bfd_target char ar_pad_char; /* The maximum number of characters in an archive header. */ - unsigned short ar_max_namelen; + unsigned char ar_max_namelen; + + /* How well this target matches, used to select between various + possible targets when more than one target matches. */ + unsigned char match_priority; /* Entries for byte swapping for data. These are different from the other entry points, since they don't take a BFD as the first argument. @@ -5789,6 +6054,7 @@ typedef struct bfd_target NAME##_bfd_final_link, \ NAME##_bfd_link_split_section, \ NAME##_bfd_gc_sections, \ + NAME##_bfd_lookup_section_flags, \ NAME##_bfd_merge_sections, \ NAME##_bfd_is_group_section, \ NAME##_bfd_discard_group, \ @@ -5833,6 +6099,10 @@ typedef struct bfd_target /* Remove sections that are not referenced from the output. */ bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); + /* Sets the bitmask of allowed and disallowed section flags. */ + void (*_bfd_lookup_section_flags) (struct bfd_link_info *, + struct flag_info *); + /* Attempt to merge SEC_MERGE sections. */ bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); @@ -5844,8 +6114,8 @@ typedef struct bfd_target /* Check if SEC has been already linked during a reloceatable or final link. */ - void (*_section_already_linked) (bfd *, struct bfd_section *, - struct bfd_link_info *); + bfd_boolean (*_section_already_linked) (bfd *, asection *, + struct bfd_link_info *); /* Define a common symbol. */ bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, @@ -5914,7 +6184,8 @@ bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); #define bfd_link_split_section(abfd, sec) \ BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) -void bfd_section_already_linked (bfd *abfd, asection *sec, +bfd_boolean bfd_section_already_linked (bfd *abfd, + asection *sec, struct bfd_link_info *info); #define bfd_section_already_linked(abfd, sec, info) \ @@ -5931,6 +6202,9 @@ struct bfd_elf_version_tree * bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs, const char *sym_name, bfd_boolean *hide); +bfd_boolean bfd_hide_sym_by_version + (struct bfd_elf_version_tree *verdefs, const char *sym_name); + /* Extracted from simple.c. */ bfd_byte *bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table); diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h index f9c83e65a..bc3113d41 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb2 20111202) 4.5.3 */ +/* generated for arm-elf32-minix-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h index 773501328..ac630b84b 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#define BFD_VERSION_DATE 20110627 -#define BFD_VERSION 221010000 -#define BFD_VERSION_STRING "(NetBSD Binutils nb1) " "2.21.1" +#define BFD_VERSION_DATE 20111121 +#define BFD_VERSION 222000000 +#define BFD_VERSION_STRING "(NetBSD Binutils nb1)" "2.22" #define REPORT_BUGS_TO "" diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/config.h b/external/gpl3/binutils/lib/libbfd/arch/earm/config.h index b24b1d2d2..ca35904a3 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/config.h @@ -10,7 +10,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ALLOCA_H */ @@ -132,16 +132,16 @@ /* #undef HAVE_LWPXSTATUS_T */ /* Define to 1 if you have the `madvise' function. */ -#define HAVE_MADVISE 1 +/* #undef HAVE_MADVISE */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* #undef HAVE_MMAP */ /* Define to 1 if you have the `mprotect' function. */ -#define HAVE_MPROTECT 1 +/* #undef HAVE_MPROTECT */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ @@ -251,7 +251,7 @@ /* #undef HAVE_WIN32_PSTATUS_T */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ @@ -291,7 +291,7 @@ #define SIZEOF_LONG_LONG 8 /* The size of `off_t', as computed by sizeof. */ -#define SIZEOF_OFF_T 8 +#define SIZEOF_OFF_T 4 /* The size of `short', as computed by sizeof. */ /* #undef SIZEOF_SHORT */ @@ -349,7 +349,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -358,11 +358,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk b/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk index bb9ab6db8..a10b1e29d 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk @@ -2,8 +2,8 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_libbfd_la_DEPENDENCIES=elf32-arm.lo elf32.lo elf-vxworks.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo armnetbsd.lo aout32.lo coff-arm.lo cofflink.lo elf32-gen.lo cpu-arm.lo netbsd-core.lo ofiles +G_libbfd_la_DEPENDENCIES=elf32-arm.lo elf32.lo elf-vxworks.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo elf32-gen.lo cpu-arm.lo archive64.lo ofiles G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo verilog.lo G_DEFS=-DHAVE_CONFIG_H -G_INCLUDES=-DNETBSD_CORE -I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_armnetbsd_vec -DHAVE_armcoff_little_vec -DHAVE_armcoff_big_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_littlearm_vec -DSELECT_VECS='&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&armnetbsd_vec,&armcoff_little_vec,&armcoff_big_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch' +G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec +G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_littlearm_vec -DSELECT_VECS='&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch' diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h index b511736cc..532278325 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h @@ -11,8 +11,8 @@ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -191,8 +191,8 @@ typedef bfd_vma bfd_uint64_t; /* An offset into a file. BFD always uses the largest possible offset based on the build time availability of fseek, fseeko, or fseeko64. */ -typedef BFD_HOST_64_BIT file_ptr; -typedef unsigned BFD_HOST_64_BIT ufile_ptr; +typedef long file_ptr; +typedef unsigned long ufile_ptr; extern void bfd_sprintf_vma (bfd *, char *, bfd_vma); extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); @@ -302,8 +302,8 @@ typedef struct bfd_section *sec_ptr; #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ - (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \ - / bfd_octets_per_byte (bfd)) + (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ + ? (sec)->rawsize : (sec)->size) / bfd_octets_per_byte (bfd)) /* Return TRUE if input section SEC has been discarded. */ #define elf_discarded_section(sec) \ @@ -443,7 +443,7 @@ extern void bfd_hash_traverse /* Allows the default size of a hash table to be configured. New hash tables allocated using bfd_hash_table_init will be created with this size. */ -extern void bfd_hash_set_default_size (bfd_size_type); +extern unsigned long bfd_hash_set_default_size (unsigned long); /* This structure is used to keep track of stabs in sections information while linking. */ @@ -563,11 +563,6 @@ void bfd_putl16 (bfd_vma, void *); bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean); void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean); -extern bfd_boolean bfd_section_already_linked_table_init (void); -extern void bfd_section_already_linked_table_free (void); - -/* Externally visible ECOFF routines. */ - #if defined(__STDC__) || defined(ALMOST_STDC) struct ecoff_debug_info; struct ecoff_debug_swap; @@ -575,8 +570,18 @@ struct ecoff_extr; struct bfd_symbol; struct bfd_link_info; struct bfd_link_hash_entry; +struct bfd_section_already_linked; struct bfd_elf_version_tree; #endif + +extern bfd_boolean bfd_section_already_linked_table_init (void); +extern void bfd_section_already_linked_table_free (void); +extern bfd_boolean _bfd_handle_already_linked + (struct bfd_section *, struct bfd_section_already_linked *, + struct bfd_link_info *); + +/* Externally visible ECOFF routines. */ + extern bfd_vma bfd_ecoff_get_gp_value (bfd * abfd); extern bfd_boolean bfd_ecoff_set_gp_value @@ -651,8 +656,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name @@ -880,7 +884,7 @@ extern bfd_boolean bfd_elf32_arm_process_before_allocation void bfd_elf32_arm_set_target_relocs (bfd *, struct bfd_link_info *, int, char *, int, int, bfd_arm_vfp11_fix, - int, int, int, int); + int, int, int, int, int); extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking (bfd *, struct bfd_link_info *); @@ -923,6 +927,10 @@ extern bfd_boolean elf32_arm_build_stubs extern bfd_boolean elf32_arm_fix_exidx_coverage (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); +/* C6x unwind section editing support. */ +extern bfd_boolean elf32_tic6x_fix_exidx_coverage +(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); + /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform (unsigned int, unsigned int); @@ -1143,7 +1151,8 @@ long bfd_get_mtime (bfd *abfd); file_ptr bfd_get_size (bfd *abfd); void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, - int prot, int flags, file_ptr offset); + int prot, int flags, file_ptr offset, + void **map_addr, bfd_size_type *map_len); /* Extracted from bfdwin.c. */ /* Extracted from section.c. */ @@ -1324,6 +1333,11 @@ typedef struct bfd_section sections. */ #define SEC_COFF_SHARED_LIBRARY 0x4000000 + /* This input section should be copied to output in reverse order + as an array of pointers. This is for ELF linker internal use + only. */ +#define SEC_ELF_REVERSE_COPY 0x4000000 + /* This section contains data which may be shared with other executables or shared objects. This is for COFF only. */ #define SEC_COFF_SHARED 0x8000000 @@ -1508,6 +1522,9 @@ typedef struct bfd_section /* The BFD which owns the section. */ bfd *owner; + /* INPUT_SECTION_FLAGS if specified in the linker script. */ + struct flag_info *section_flag_info; + /* A symbol which points at this section only. */ struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; @@ -1686,6 +1703,9 @@ extern asection bfd_ind_section; /* target_index, used_by_bfd, constructor_chain, owner, */ \ 0, NULL, NULL, NULL, \ \ + /* flag_info, */ \ + NULL, \ + \ /* symbol, symbol_ptr_ptr, */ \ (struct bfd_symbol *) SYM, &SEC.symbol, \ \ @@ -1864,6 +1884,7 @@ enum bfd_architecture #define bfd_mach_mips5 5 #define bfd_mach_mips_loongson_2e 3001 #define bfd_mach_mips_loongson_2f 3002 +#define bfd_mach_mips_loongson_3a 3003 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ #define bfd_mach_mips_octeon 6501 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ @@ -1871,15 +1892,22 @@ enum bfd_architecture #define bfd_mach_mipsisa32r2 33 #define bfd_mach_mipsisa64 64 #define bfd_mach_mipsisa64r2 65 +#define bfd_mach_mips_micromips 96 bfd_arch_i386, /* Intel 386 */ -#define bfd_mach_i386_i386 1 -#define bfd_mach_i386_i8086 2 -#define bfd_mach_i386_i386_intel_syntax 3 -#define bfd_mach_x86_64 64 -#define bfd_mach_x86_64_intel_syntax 65 +#define bfd_mach_i386_intel_syntax (1 << 0) +#define bfd_mach_i386_i8086 (1 << 1) +#define bfd_mach_i386_i386 (1 << 2) +#define bfd_mach_x86_64 (1 << 3) +#define bfd_mach_x64_32 (1 << 4) +#define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax) bfd_arch_l1om, /* Intel L1OM */ -#define bfd_mach_l1om 66 -#define bfd_mach_l1om_intel_syntax 67 +#define bfd_mach_l1om (1 << 5) +#define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax) + bfd_arch_k1om, /* Intel K1OM */ +#define bfd_mach_k1om (1 << 6) +#define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax) bfd_arch_we32k, /* AT&T WE32xxx */ bfd_arch_tahoe, /* CCI/Harris Tahoe */ bfd_arch_i860, /* Intel 860 */ @@ -2064,6 +2092,13 @@ enum bfd_architecture #define bfd_mach_avr5 5 #define bfd_mach_avr51 51 #define bfd_mach_avr6 6 +#define bfd_mach_avrxmega1 101 +#define bfd_mach_avrxmega2 102 +#define bfd_mach_avrxmega3 103 +#define bfd_mach_avrxmega4 104 +#define bfd_mach_avrxmega5 105 +#define bfd_mach_avrxmega6 106 +#define bfd_mach_avrxmega7 107 bfd_arch_bfin, /* ADI Blackfin */ #define bfd_mach_bfin 1 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ @@ -2118,6 +2153,10 @@ enum bfd_architecture bfd_arch_lm32, /* Lattice Mico32 */ #define bfd_mach_lm32 1 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ + bfd_arch_tilepro, /* Tilera TILEPro */ + bfd_arch_tilegx, /* Tilera TILE-Gx */ +#define bfd_mach_tilepro 1 +#define bfd_mach_tilegx 1 bfd_arch_last }; @@ -2697,9 +2736,9 @@ between two procedure entry points is < 2^21, or else a hint. */ BFD_RELOC_ALPHA_TPREL_LO16, BFD_RELOC_ALPHA_TPREL16, -/* Bits 27..2 of the relocation address shifted right 2 bits; -simple reloc otherwise. */ +/* The MIPS jump instruction. */ BFD_RELOC_MIPS_JMP, + BFD_RELOC_MICROMIPS_JMP, /* The MIPS16 jump instruction. */ BFD_RELOC_MIPS16_JMP, @@ -2747,42 +2786,75 @@ to compensate for the borrow when the low bits are added. */ /* Relocation against a MIPS literal section. */ BFD_RELOC_MIPS_LITERAL, + BFD_RELOC_MICROMIPS_LITERAL, + +/* microMIPS PC-relative relocations. */ + BFD_RELOC_MICROMIPS_7_PCREL_S1, + BFD_RELOC_MICROMIPS_10_PCREL_S1, + BFD_RELOC_MICROMIPS_16_PCREL_S1, + +/* microMIPS versions of generic BFD relocs. */ + BFD_RELOC_MICROMIPS_GPREL16, + BFD_RELOC_MICROMIPS_HI16, + BFD_RELOC_MICROMIPS_HI16_S, + BFD_RELOC_MICROMIPS_LO16, /* MIPS ELF relocations. */ BFD_RELOC_MIPS_GOT16, + BFD_RELOC_MICROMIPS_GOT16, BFD_RELOC_MIPS_CALL16, + BFD_RELOC_MICROMIPS_CALL16, BFD_RELOC_MIPS_GOT_HI16, + BFD_RELOC_MICROMIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MICROMIPS_GOT_LO16, BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MICROMIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16, + BFD_RELOC_MICROMIPS_CALL_LO16, BFD_RELOC_MIPS_SUB, + BFD_RELOC_MICROMIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE, + BFD_RELOC_MICROMIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST, + BFD_RELOC_MICROMIPS_GOT_OFST, BFD_RELOC_MIPS_GOT_DISP, + BFD_RELOC_MICROMIPS_GOT_DISP, BFD_RELOC_MIPS_SHIFT5, BFD_RELOC_MIPS_SHIFT6, BFD_RELOC_MIPS_INSERT_A, BFD_RELOC_MIPS_INSERT_B, BFD_RELOC_MIPS_DELETE, BFD_RELOC_MIPS_HIGHEST, + BFD_RELOC_MICROMIPS_HIGHEST, BFD_RELOC_MIPS_HIGHER, + BFD_RELOC_MICROMIPS_HIGHER, BFD_RELOC_MIPS_SCN_DISP, + BFD_RELOC_MICROMIPS_SCN_DISP, BFD_RELOC_MIPS_REL16, BFD_RELOC_MIPS_RELGOT, BFD_RELOC_MIPS_JALR, + BFD_RELOC_MICROMIPS_JALR, BFD_RELOC_MIPS_TLS_DTPMOD32, BFD_RELOC_MIPS_TLS_DTPREL32, BFD_RELOC_MIPS_TLS_DTPMOD64, BFD_RELOC_MIPS_TLS_DTPREL64, BFD_RELOC_MIPS_TLS_GD, + BFD_RELOC_MICROMIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM, + BFD_RELOC_MICROMIPS_TLS_LDM, BFD_RELOC_MIPS_TLS_DTPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16, BFD_RELOC_MIPS_TLS_GOTTPREL, + BFD_RELOC_MICROMIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL32, BFD_RELOC_MIPS_TLS_TPREL64, BFD_RELOC_MIPS_TLS_TPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_TPREL_HI16, BFD_RELOC_MIPS_TLS_TPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_TPREL_LO16, /* MIPS ELF relocations (VxWorks and PLT extensions). */ @@ -3147,6 +3219,12 @@ pc-relative or some form of GOT-indirect relocation. */ BFD_RELOC_ARM_TLS_TPOFF32, BFD_RELOC_ARM_TLS_IE32, BFD_RELOC_ARM_TLS_LE32, + BFD_RELOC_ARM_TLS_GOTDESC, + BFD_RELOC_ARM_TLS_CALL, + BFD_RELOC_ARM_THM_TLS_CALL, + BFD_RELOC_ARM_TLS_DESCSEQ, + BFD_RELOC_ARM_THM_TLS_DESCSEQ, + BFD_RELOC_ARM_TLS_DESC, /* ARM group relocations. */ BFD_RELOC_ARM_ALU_PC_G0_NC, @@ -3181,6 +3259,9 @@ pc-relative or some form of GOT-indirect relocation. */ /* Annotation of BX instructions. */ BFD_RELOC_ARM_V4BX, +/* ARM support for STT_GNU_IFUNC. */ + BFD_RELOC_ARM_IRELATIVE, + /* These relocs are only used within the ARM assembler. They are not (at present) written to any object files. */ BFD_RELOC_ARM_IMMEDIATE, @@ -3759,6 +3840,10 @@ the opcode. */ BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, BFD_RELOC_C6000_COPY, + BFD_RELOC_C6000_JUMP_SLOT, + BFD_RELOC_C6000_EHTYPE, + BFD_RELOC_C6000_PCR_H16, + BFD_RELOC_C6000_PCR_L16, BFD_RELOC_C6000_ALIGN, BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP, @@ -3992,9 +4077,12 @@ instructions */ BFD_RELOC_RX_GPRELL, BFD_RELOC_RX_SYM, BFD_RELOC_RX_OP_SUBTRACT, + BFD_RELOC_RX_OP_NEG, BFD_RELOC_RX_ABS8, BFD_RELOC_RX_ABS16, + BFD_RELOC_RX_ABS16_REV, BFD_RELOC_RX_ABS32, + BFD_RELOC_RX_ABS32_REV, BFD_RELOC_RX_ABS16U, BFD_RELOC_RX_ABS16UW, BFD_RELOC_RX_ABS16UL, @@ -4768,6 +4856,178 @@ value in a word. The relocation is relative offset from */ /* This is used to tell the dynamic linker to copy the value out of the dynamic object into the runtime process image. */ BFD_RELOC_MICROBLAZE_COPY, + +/* Tilera TILEPro Relocations. */ + BFD_RELOC_TILEPRO_COPY, + BFD_RELOC_TILEPRO_GLOB_DAT, + BFD_RELOC_TILEPRO_JMP_SLOT, + BFD_RELOC_TILEPRO_RELATIVE, + BFD_RELOC_TILEPRO_BROFF_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT, + BFD_RELOC_TILEPRO_IMM8_X0, + BFD_RELOC_TILEPRO_IMM8_Y0, + BFD_RELOC_TILEPRO_IMM8_X1, + BFD_RELOC_TILEPRO_IMM8_Y1, + BFD_RELOC_TILEPRO_DEST_IMM8_X1, + BFD_RELOC_TILEPRO_MT_IMM15_X1, + BFD_RELOC_TILEPRO_MF_IMM15_X1, + BFD_RELOC_TILEPRO_IMM16_X0, + BFD_RELOC_TILEPRO_IMM16_X1, + BFD_RELOC_TILEPRO_IMM16_X0_LO, + BFD_RELOC_TILEPRO_IMM16_X1_LO, + BFD_RELOC_TILEPRO_IMM16_X0_HI, + BFD_RELOC_TILEPRO_IMM16_X1_HI, + BFD_RELOC_TILEPRO_IMM16_X0_HA, + BFD_RELOC_TILEPRO_IMM16_X1_HA, + BFD_RELOC_TILEPRO_IMM16_X0_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_GOT, + BFD_RELOC_TILEPRO_IMM16_X1_GOT, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA, + BFD_RELOC_TILEPRO_MMSTART_X0, + BFD_RELOC_TILEPRO_MMEND_X0, + BFD_RELOC_TILEPRO_MMSTART_X1, + BFD_RELOC_TILEPRO_MMEND_X1, + BFD_RELOC_TILEPRO_SHAMT_X0, + BFD_RELOC_TILEPRO_SHAMT_X1, + BFD_RELOC_TILEPRO_SHAMT_Y0, + BFD_RELOC_TILEPRO_SHAMT_Y1, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA, + BFD_RELOC_TILEPRO_TLS_DTPMOD32, + BFD_RELOC_TILEPRO_TLS_DTPOFF32, + BFD_RELOC_TILEPRO_TLS_TPOFF32, + +/* Tilera TILE-Gx Relocations. */ + BFD_RELOC_TILEGX_HW0, + BFD_RELOC_TILEGX_HW1, + BFD_RELOC_TILEGX_HW2, + BFD_RELOC_TILEGX_HW3, + BFD_RELOC_TILEGX_HW0_LAST, + BFD_RELOC_TILEGX_HW1_LAST, + BFD_RELOC_TILEGX_HW2_LAST, + BFD_RELOC_TILEGX_COPY, + BFD_RELOC_TILEGX_GLOB_DAT, + BFD_RELOC_TILEGX_JMP_SLOT, + BFD_RELOC_TILEGX_RELATIVE, + BFD_RELOC_TILEGX_BROFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1_PLT, + BFD_RELOC_TILEGX_IMM8_X0, + BFD_RELOC_TILEGX_IMM8_Y0, + BFD_RELOC_TILEGX_IMM8_X1, + BFD_RELOC_TILEGX_IMM8_Y1, + BFD_RELOC_TILEGX_DEST_IMM8_X1, + BFD_RELOC_TILEGX_MT_IMM14_X1, + BFD_RELOC_TILEGX_MF_IMM14_X1, + BFD_RELOC_TILEGX_MMSTART_X0, + BFD_RELOC_TILEGX_MMEND_X0, + BFD_RELOC_TILEGX_SHAMT_X0, + BFD_RELOC_TILEGX_SHAMT_X1, + BFD_RELOC_TILEGX_SHAMT_Y0, + BFD_RELOC_TILEGX_SHAMT_Y1, + BFD_RELOC_TILEGX_IMM16_X0_HW0, + BFD_RELOC_TILEGX_IMM16_X1_HW0, + BFD_RELOC_TILEGX_IMM16_X0_HW1, + BFD_RELOC_TILEGX_IMM16_X1_HW1, + BFD_RELOC_TILEGX_IMM16_X0_HW2, + BFD_RELOC_TILEGX_IMM16_X1_HW2, + BFD_RELOC_TILEGX_IMM16_X0_HW3, + BFD_RELOC_TILEGX_IMM16_X1_HW3, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_TLS_DTPMOD64, + BFD_RELOC_TILEGX_TLS_DTPOFF64, + BFD_RELOC_TILEGX_TLS_TPOFF64, + BFD_RELOC_TILEGX_TLS_DTPMOD32, + BFD_RELOC_TILEGX_TLS_DTPOFF32, + BFD_RELOC_TILEGX_TLS_TPOFF32, BFD_RELOC_UNUSED }; typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; reloc_howto_type *bfd_reloc_type_lookup @@ -5076,11 +5336,6 @@ struct bfd /* This BFD has been created by the linker and doesn't correspond to any input file. */ #define BFD_LINKER_CREATED 0x2000 - /* This may be set before writing out a BFD to request that it - be written using values for UIDs, GIDs, timestamps, etc. that - will be consistent from run to run. */ -#define BFD_DETERMINISTIC_OUTPUT 0x4000 - /* This may be set before writing out a BFD to request that it be written using values for UIDs, GIDs, timestamps, etc. that @@ -5368,6 +5623,9 @@ bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); #define bfd_gc_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) +#define bfd_lookup_section_flags(link_info, flag_info) \ + BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info)) + #define bfd_merge_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) @@ -5524,6 +5782,9 @@ enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; /* Forward declaration. */ typedef struct bfd_link_info _bfd_link_info; +/* Forward declaration. */ +typedef struct flag_info flag_info; + typedef struct bfd_target { /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ @@ -5555,7 +5816,11 @@ typedef struct bfd_target char ar_pad_char; /* The maximum number of characters in an archive header. */ - unsigned short ar_max_namelen; + unsigned char ar_max_namelen; + + /* How well this target matches, used to select between various + possible targets when more than one target matches. */ + unsigned char match_priority; /* Entries for byte swapping for data. These are different from the other entry points, since they don't take a BFD as the first argument. @@ -5789,6 +6054,7 @@ typedef struct bfd_target NAME##_bfd_final_link, \ NAME##_bfd_link_split_section, \ NAME##_bfd_gc_sections, \ + NAME##_bfd_lookup_section_flags, \ NAME##_bfd_merge_sections, \ NAME##_bfd_is_group_section, \ NAME##_bfd_discard_group, \ @@ -5833,6 +6099,10 @@ typedef struct bfd_target /* Remove sections that are not referenced from the output. */ bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); + /* Sets the bitmask of allowed and disallowed section flags. */ + void (*_bfd_lookup_section_flags) (struct bfd_link_info *, + struct flag_info *); + /* Attempt to merge SEC_MERGE sections. */ bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); @@ -5844,8 +6114,8 @@ typedef struct bfd_target /* Check if SEC has been already linked during a reloceatable or final link. */ - void (*_section_already_linked) (bfd *, struct bfd_section *, - struct bfd_link_info *); + bfd_boolean (*_section_already_linked) (bfd *, asection *, + struct bfd_link_info *); /* Define a common symbol. */ bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, @@ -5914,7 +6184,8 @@ bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); #define bfd_link_split_section(abfd, sec) \ BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) -void bfd_section_already_linked (bfd *abfd, asection *sec, +bfd_boolean bfd_section_already_linked (bfd *abfd, + asection *sec, struct bfd_link_info *info); #define bfd_section_already_linked(abfd, sec, info) \ @@ -5931,6 +6202,9 @@ struct bfd_elf_version_tree * bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs, const char *sym_name, bfd_boolean *hide); +bfd_boolean bfd_hide_sym_by_version + (struct bfd_elf_version_tree *verdefs, const char *sym_name); + /* Extracted from simple.c. */ bfd_byte *bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table); diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h index 52ef23e03..adc0c967f 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for i486--netbsdelf-gcc (NetBSD nb1 20110620) 4.5.3 */ +/* generated for i586-elf32-minix-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h index 773501328..ac630b84b 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#define BFD_VERSION_DATE 20110627 -#define BFD_VERSION 221010000 -#define BFD_VERSION_STRING "(NetBSD Binutils nb1) " "2.21.1" +#define BFD_VERSION_DATE 20111121 +#define BFD_VERSION 222000000 +#define BFD_VERSION_STRING "(NetBSD Binutils nb1)" "2.22" #define REPORT_BUGS_TO "" diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/config.h b/external/gpl3/binutils/lib/libbfd/arch/i386/config.h index 29064cfd0..13a77cba2 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/config.h @@ -10,7 +10,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ALLOCA_H */ @@ -132,16 +132,16 @@ /* #undef HAVE_LWPXSTATUS_T */ /* Define to 1 if you have the `madvise' function. */ -#define HAVE_MADVISE 1 +/* #undef HAVE_MADVISE */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* #undef HAVE_MMAP */ /* Define to 1 if you have the `mprotect' function. */ -#define HAVE_MPROTECT 1 +/* #undef HAVE_MPROTECT */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ @@ -153,7 +153,7 @@ /* #undef HAVE_PRPSINFO32_T_PR_PID */ /* Define if has prpsinfo_t. */ -/* #undef HAVE_PRPSINFO_T */ +#define HAVE_PRPSINFO_T 1 /* Define if has prpsinfo_t.pr_pid. */ /* #undef HAVE_PRPSINFO_T_PR_PID */ @@ -165,7 +165,7 @@ /* #undef HAVE_PRSTATUS32_T_PR_WHO */ /* Define if has prstatus_t. */ -/* #undef HAVE_PRSTATUS_T */ +#define HAVE_PRSTATUS_T 1 /* Define if has prstatus_t.pr_who. */ /* #undef HAVE_PRSTATUS_T_PR_WHO */ @@ -230,7 +230,7 @@ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PROCFS_H */ +#define HAVE_SYS_PROCFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -291,7 +291,7 @@ #define SIZEOF_LONG_LONG 8 /* The size of `off_t', as computed by sizeof. */ -#define SIZEOF_OFF_T 8 +#define SIZEOF_OFF_T 4 /* The size of `short', as computed by sizeof. */ /* #undef SIZEOF_SHORT */ @@ -349,7 +349,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -358,11 +358,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk b/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk index d44d0560a..7230b030f 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk @@ -2,8 +2,8 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_libbfd_la_DEPENDENCIES=elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo i386netbsd.lo aout32.lo elf32-gen.lo cpu-i386.lo netbsd-core.lo ofiles +G_libbfd_la_DEPENDENCIES=elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo elf32-gen.lo cpu-i386.lo ofiles G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo verilog.lo G_DEFS=-DHAVE_CONFIG_H -G_INCLUDES=-DNETBSD_CORE -I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_i386_vec -DHAVE_i386netbsd_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_i386_vec -DSELECT_VECS='&bfd_elf32_i386_vec,&i386netbsd_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' +G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_i386_minix_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec +G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_i386_minix_vec -DSELECT_VECS='&bfd_elf32_i386_minix_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' diff --git a/external/gpl3/binutils/lib/libiberty/arch/earm/config.h b/external/gpl3/binutils/lib/libiberty/arch/earm/config.h index 5bed8f290..bd9a7175d 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libiberty/arch/earm/config.h @@ -97,7 +97,7 @@ #define HAVE_DECL_VSNPRINTF 1 /* Define to 1 if you have the `dup3' function. */ -#define HAVE_DUP3 1 +/* #undef HAVE_DUP3 */ /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 @@ -114,8 +114,11 @@ /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + /* Define to 1 if you have the `getrusage' function. */ -#define HAVE_GETRUSAGE 1 +/* #undef HAVE_GETRUSAGE */ /* Define to 1 if you have the `getsysinfo' function. */ /* #undef HAVE_GETSYSINFO */ @@ -174,9 +177,6 @@ /* Define to 1 if you have the `on_exit' function. */ /* #undef HAVE_ON_EXIT */ -/* Define if you have prctl PR_SET_NAME */ -/* #undef HAVE_PRCTL_SET_NAME */ - /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ @@ -211,10 +211,13 @@ #define HAVE_SETENV 1 /* Define to 1 if you have the `setproctitle' function. */ -#define HAVE_SETPROCTITLE 1 +/* #undef HAVE_SETPROCTITLE */ + +/* Define to 1 if you have the `setrlimit' function. */ +/* #undef HAVE_SETRLIMIT */ /* Define to 1 if you have the `sigsetmask' function. */ -#define HAVE_SIGSETMASK 1 +/* #undef HAVE_SIGSETMASK */ /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -289,13 +292,13 @@ #define HAVE_SYSCONF 1 /* Define to 1 if you have the `sysctl' function. */ -#define HAVE_SYSCTL 1 +/* #undef HAVE_SYSCTL */ /* Define to 1 if you have the `sysmp' function. */ /* #undef HAVE_SYSMP */ /* Define if you have the sys_errlist variable. */ -#define HAVE_SYS_ERRLIST 1 +/* #undef HAVE_SYS_ERRLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_FILE_H 1 @@ -304,11 +307,14 @@ #define HAVE_SYS_MMAN_H 1 /* Define if you have the sys_nerr variable. */ -#define HAVE_SYS_NERR 1 +/* #undef HAVE_SYS_NERR */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PRCTL_H */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PSTAT_H */ @@ -316,7 +322,7 @@ #define HAVE_SYS_RESOURCE_H 1 /* Define if you have the sys_siglist variable. */ -#define HAVE_SYS_SIGLIST 1 +/* #undef HAVE_SYS_SIGLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -382,10 +388,10 @@ #define HAVE_VSPRINTF 1 /* Define to 1 if you have the `wait3' function. */ -#define HAVE_WAIT3 1 +/* #undef HAVE_WAIT3 */ /* Define to 1 if you have the `wait4' function. */ -#define HAVE_WAIT4 1 +/* #undef HAVE_WAIT4 */ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 diff --git a/external/gpl3/binutils/lib/libiberty/arch/i386/config.h b/external/gpl3/binutils/lib/libiberty/arch/i386/config.h index 5bed8f290..bd9a7175d 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libiberty/arch/i386/config.h @@ -97,7 +97,7 @@ #define HAVE_DECL_VSNPRINTF 1 /* Define to 1 if you have the `dup3' function. */ -#define HAVE_DUP3 1 +/* #undef HAVE_DUP3 */ /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 @@ -114,8 +114,11 @@ /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + /* Define to 1 if you have the `getrusage' function. */ -#define HAVE_GETRUSAGE 1 +/* #undef HAVE_GETRUSAGE */ /* Define to 1 if you have the `getsysinfo' function. */ /* #undef HAVE_GETSYSINFO */ @@ -174,9 +177,6 @@ /* Define to 1 if you have the `on_exit' function. */ /* #undef HAVE_ON_EXIT */ -/* Define if you have prctl PR_SET_NAME */ -/* #undef HAVE_PRCTL_SET_NAME */ - /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ @@ -211,10 +211,13 @@ #define HAVE_SETENV 1 /* Define to 1 if you have the `setproctitle' function. */ -#define HAVE_SETPROCTITLE 1 +/* #undef HAVE_SETPROCTITLE */ + +/* Define to 1 if you have the `setrlimit' function. */ +/* #undef HAVE_SETRLIMIT */ /* Define to 1 if you have the `sigsetmask' function. */ -#define HAVE_SIGSETMASK 1 +/* #undef HAVE_SIGSETMASK */ /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -289,13 +292,13 @@ #define HAVE_SYSCONF 1 /* Define to 1 if you have the `sysctl' function. */ -#define HAVE_SYSCTL 1 +/* #undef HAVE_SYSCTL */ /* Define to 1 if you have the `sysmp' function. */ /* #undef HAVE_SYSMP */ /* Define if you have the sys_errlist variable. */ -#define HAVE_SYS_ERRLIST 1 +/* #undef HAVE_SYS_ERRLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_FILE_H 1 @@ -304,11 +307,14 @@ #define HAVE_SYS_MMAN_H 1 /* Define if you have the sys_nerr variable. */ -#define HAVE_SYS_NERR 1 +/* #undef HAVE_SYS_NERR */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PRCTL_H */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PSTAT_H */ @@ -316,7 +322,7 @@ #define HAVE_SYS_RESOURCE_H 1 /* Define if you have the sys_siglist variable. */ -#define HAVE_SYS_SIGLIST 1 +/* #undef HAVE_SYS_SIGLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -382,10 +388,10 @@ #define HAVE_VSPRINTF 1 /* Define to 1 if you have the `wait3' function. */ -#define HAVE_WAIT3 1 +/* #undef HAVE_WAIT3 */ /* Define to 1 if you have the `wait4' function. */ -#define HAVE_WAIT4 1 +/* #undef HAVE_WAIT4 */ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 diff --git a/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk b/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk index 42bb137aa..73218ff16 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk +++ b/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk @@ -4,5 +4,5 @@ # G_ALLOCA= G_EXTRA_OFILES= -G_LIBOBJS=mempcpy.o mkstemps.o strverscmp.o strncmp.o -G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o sha1.o alloca.o argv.o choose-temp.o concat.o cp-demint.o crc32.o dyn-string.o fdmatch.o fibheap.o filename_cmp.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o safe-ctype.o simple-object.o simple-object-coff.o simple-object-elf.o simple-object-mach-o.o sort.o spaces.o splay-tree.o strerror.o strsignal.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o +G_LIBOBJS=mempcpy.o mkstemps.o sigsetmask.o strverscmp.o setproctitle.o strncmp.o +G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o sha1.o alloca.o argv.o choose-temp.o concat.o cp-demint.o crc32.o dyn-string.o fdmatch.o fibheap.o filename_cmp.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o safe-ctype.o simple-object.o simple-object-coff.o simple-object-elf.o simple-object-mach-o.o sort.o spaces.o splay-tree.o strerror.o strsignal.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o diff --git a/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h b/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h index 7247ccf1f..56b727e01 100644 --- a/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the declaration of `basename', and to 0 if you don't. */ @@ -101,14 +101,14 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h b/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h index 7247ccf1f..56b727e01 100644 --- a/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the declaration of `basename', and to 0 if you don't. */ @@ -101,14 +101,14 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/Makefile.inc b/external/gpl3/binutils/usr.bin/Makefile.inc index d12c4112e..be291f35a 100644 --- a/external/gpl3/binutils/usr.bin/Makefile.inc +++ b/external/gpl3/binutils/usr.bin/Makefile.inc @@ -16,6 +16,11 @@ CPPFLAGS+= ${GNUCPPFLAGS:M-D*:N-DLOCALEDIR*} ${GNUCPPFLAGS:M-I*:N-I.*} \ LDADD+=-lz DPADD+=${LIBZ} +.if defined(__MINIX) +LDADD+= -lm +DPADD+= ${LIBM} +.endif + NOGCCERROR= # defined .endif # __MAKEFILE_INC_INCLUDED__ diff --git a/external/gpl3/binutils/usr.bin/common/Makefile.prog b/external/gpl3/binutils/usr.bin/common/Makefile.prog index 2450b91b0..73c0cc6c9 100644 --- a/external/gpl3/binutils/usr.bin/common/Makefile.prog +++ b/external/gpl3/binutils/usr.bin/common/Makefile.prog @@ -20,8 +20,10 @@ MAN= ${G_man_MANS:M${PROG}.1} CPPFLAGS+= -I${.CURDIR}/../common/arch/${MACHINE_ARCH} +.if !defined(__MINIX) LDADD+= -lintl DPADD+= ${LIBINTL} +.endif # !defined(__MINIX) .if !empty(G_${BUPROG}_DEPENDENCIES:M*/libopcodes*) OPCODESOBJ!= cd ${TOP}/${BFDSUBDIR}/libopcodes && ${PRINTOBJDIR} diff --git a/external/gpl3/binutils/usr.bin/common/arch/earm/config.h b/external/gpl3/binutils/usr.bin/common/arch/earm/config.h index 2dc5eef41..49b43d8fc 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/common/arch/earm/config.h @@ -15,13 +15,13 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Suffix used for executables, if any. */ #define EXECUTABLE_SUFFIX "" /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -145,10 +145,10 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `utimes' function. */ -#define HAVE_UTIMES 1 +/* #undef HAVE_UTIMES */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST const @@ -190,7 +190,7 @@ #define STDC_HEADERS 1 /* Configured target name. */ -#define TARGET "arm--netbsdelf-eabi" +#define TARGET "arm-elf32-minix" /* Define to 1 if user symbol names have a leading underscore, 0 if not. */ #define TARGET_PREPENDS_UNDERSCORE 0 @@ -221,11 +221,11 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -234,11 +234,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk b/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk index 85a04576e..fd92161b7 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk +++ b/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk @@ -2,35 +2,35 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_VERSION=2.21.1 +G_VERSION=2.22 G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_PROGRAMS=size objdump ar strings ranlib objcopy addr2line readelf elfedit nm-new strip-new cxxfilt G_man_MANS=addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 G_TEXINFOS=binutils.texi -G_PKGVERSION=(NetBSD Binutils nb1) +G_PKGVERSION=(NetBSD Binutils nb1) G_REPORT_BUGS_TEXI=@uref{http://www.NetBSD.org/support/send-pr.html} G_size_OBJECTS=size.o bucomm.o version.o filemode.o -G_size_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_size_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objdump_OBJECTS=objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o -G_objdump_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la +G_objdump_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la G_ar_OBJECTS=arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ar_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ar_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strings_OBJECTS=strings.o bucomm.o version.o filemode.o -G_strings_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strings_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_ranlib_OBJECTS=ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ranlib_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ranlib_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objcopy_OBJECTS=objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_objcopy_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_objcopy_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_addr2line_OBJECTS=addr2line.o bucomm.o version.o filemode.o -G_addr2line_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_addr2line_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_readelf_OBJECTS=readelf.o version.o unwind-ia64.o dwarf.o elfcomm.o -G_readelf_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_readelf_DEPENDENCIES= ../libiberty/libiberty.a G_elfedit_OBJECTS=elfedit.o version.o elfcomm.o -G_elfedit_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_elfedit_DEPENDENCIES= ../libiberty/libiberty.a G_nm_new_OBJECTS=nm.o bucomm.o version.o filemode.o -G_nm_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_nm_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strip_new_OBJECTS=objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_strip_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strip_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_cxxfilt_OBJECTS=cxxfilt.o bucomm.o version.o filemode.o -G_cxxfilt_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_cxxfilt_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la diff --git a/external/gpl3/binutils/usr.bin/common/arch/i386/config.h b/external/gpl3/binutils/usr.bin/common/arch/i386/config.h index 774041d0a..9ae00ee37 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/common/arch/i386/config.h @@ -15,13 +15,13 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Suffix used for executables, if any. */ #define EXECUTABLE_SUFFIX "" /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -145,7 +145,7 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `utimes' function. */ -#define HAVE_UTIMES 1 +/* #undef HAVE_UTIMES */ /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 @@ -190,7 +190,7 @@ #define STDC_HEADERS 1 /* Configured target name. */ -#define TARGET "i486--netbsdelf" +#define TARGET "i586-elf32-minix" /* Define to 1 if user symbol names have a leading underscore, 0 if not. */ #define TARGET_PREPENDS_UNDERSCORE 0 @@ -221,7 +221,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ @@ -234,11 +234,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk index 85a04576e..fd92161b7 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk @@ -2,35 +2,35 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_VERSION=2.21.1 +G_VERSION=2.22 G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_PROGRAMS=size objdump ar strings ranlib objcopy addr2line readelf elfedit nm-new strip-new cxxfilt G_man_MANS=addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 G_TEXINFOS=binutils.texi -G_PKGVERSION=(NetBSD Binutils nb1) +G_PKGVERSION=(NetBSD Binutils nb1) G_REPORT_BUGS_TEXI=@uref{http://www.NetBSD.org/support/send-pr.html} G_size_OBJECTS=size.o bucomm.o version.o filemode.o -G_size_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_size_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objdump_OBJECTS=objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o -G_objdump_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la +G_objdump_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la G_ar_OBJECTS=arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ar_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ar_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strings_OBJECTS=strings.o bucomm.o version.o filemode.o -G_strings_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strings_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_ranlib_OBJECTS=ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ranlib_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ranlib_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objcopy_OBJECTS=objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_objcopy_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_objcopy_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_addr2line_OBJECTS=addr2line.o bucomm.o version.o filemode.o -G_addr2line_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_addr2line_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_readelf_OBJECTS=readelf.o version.o unwind-ia64.o dwarf.o elfcomm.o -G_readelf_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_readelf_DEPENDENCIES= ../libiberty/libiberty.a G_elfedit_OBJECTS=elfedit.o version.o elfcomm.o -G_elfedit_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_elfedit_DEPENDENCIES= ../libiberty/libiberty.a G_nm_new_OBJECTS=nm.o bucomm.o version.o filemode.o -G_nm_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_nm_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strip_new_OBJECTS=objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_strip_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strip_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_cxxfilt_OBJECTS=cxxfilt.o bucomm.o version.o filemode.o -G_cxxfilt_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_cxxfilt_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la diff --git a/external/gpl3/binutils/usr.bin/gas/Makefile b/external/gpl3/binutils/usr.bin/gas/Makefile index f61b3843a..85121db9f 100644 --- a/external/gpl3/binutils/usr.bin/gas/Makefile +++ b/external/gpl3/binutils/usr.bin/gas/Makefile @@ -24,8 +24,10 @@ CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} CPPFLAGS+= -I${DIST}/gas -I${DIST}/gas/config CPPFLAGS+= -I${DIST} +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.endif # !defined(__MINIX) OPCODESOBJ!= cd ${TOP}/${BFDSUBDIR}/libopcodes && ${PRINTOBJDIR} LDADD+= -L${OPCODESOBJ} -lopcodes diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h index 7aa14e9cc..585787221 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h @@ -42,10 +42,10 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -120,7 +120,7 @@ #define HAVE_UNLINK 1 /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Using i386 COFF? */ /* #undef I386COFF */ @@ -225,19 +225,19 @@ /* #undef STRICTCOFF */ /* Target alias. */ -#define TARGET_ALIAS "arm--netbsdelf-eabi" +#define TARGET_ALIAS "arm-elf32-minix" /* Define as 1 if big endian. */ -#define TARGET_BYTES_BIG_ENDIAN 0 +/* #undef TARGET_BYTES_BIG_ENDIAN */ /* Canonical target. */ -#define TARGET_CANONICAL "arm--netbsdelf-eabi" +#define TARGET_CANONICAL "arm-elf32-minix" /* Target CPU. */ #define TARGET_CPU "arm" /* Target OS. */ -#define TARGET_OS "netbsdelf-eabi" +#define TARGET_OS "minix" /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ @@ -246,7 +246,7 @@ /* #undef TARGET_SYMBIAN */ /* Target vendor. */ -#define TARGET_VENDOR "" +#define TARGET_VENDOR "elf32" /* Use b modifier when opening binary files? */ /* #undef USE_BINARY_FOPEN */ @@ -283,7 +283,7 @@ /* #undef USING_CGEN */ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ @@ -299,7 +299,7 @@ /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -308,14 +308,14 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h index fe08ae726..7d06e4fe4 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "itbl-arm.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h index 3a987c4eb..3f86faea6 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "obj-elf.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h index a6be7b4db..5cec8f385 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "tc-arm.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h b/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h index e4d24248c..2d510d32c 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h @@ -42,10 +42,10 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -225,19 +225,19 @@ /* #undef STRICTCOFF */ /* Target alias. */ -#define TARGET_ALIAS "i486--netbsdelf" +#define TARGET_ALIAS "i586-elf32-minix" /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ /* Canonical target. */ -#define TARGET_CANONICAL "i486--netbsdelf" +#define TARGET_CANONICAL "i586-elf32-minix" /* Target CPU. */ -#define TARGET_CPU "i486" +#define TARGET_CPU "i586" /* Target OS. */ -#define TARGET_OS "netbsdelf" +#define TARGET_OS "minix" /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ @@ -246,7 +246,7 @@ /* #undef TARGET_SYMBIAN */ /* Target vendor. */ -#define TARGET_VENDOR "" +#define TARGET_VENDOR "elf32" /* Use b modifier when opening binary files? */ /* #undef USE_BINARY_FOPEN */ @@ -283,7 +283,7 @@ /* #undef USING_CGEN */ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ @@ -308,14 +308,14 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk index 9409985f4..84ef77e86 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk @@ -5,4 +5,4 @@ G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_OBJS=app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o -G_OBJS+=tc-i386.o obj-elf.o atof-ieee.o +G_OBJS+=tc-i386.o obj-elf.o atof-ieee.o diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h b/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h index 1182f9522..35fceb235 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h @@ -1,4 +1,5 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ +/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ +/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#include "te-nbsd.h" +#include "te-minix.h" diff --git a/external/gpl3/binutils/usr.bin/gprof/Makefile b/external/gpl3/binutils/usr.bin/gprof/Makefile index 3ffa92859..31a39cc96 100644 --- a/external/gpl3/binutils/usr.bin/gprof/Makefile +++ b/external/gpl3/binutils/usr.bin/gprof/Makefile @@ -11,8 +11,10 @@ PROG= gprof SRCS= ${G_gprof_OBJECTS:.o=.c} CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.endif # !defined(__MINIX) BFDOBJ!= cd ${TOP}/${BFDSUBDIR}/libbfd && ${PRINTOBJDIR} LDADD+= -L${BFDOBJ} -lbfd diff --git a/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h b/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h index bbe3443aa..808bead94 100644 --- a/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h +++ b/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Is the prototype for getopt in in the expected format? */ #define HAVE_DECL_GETOPT 1 @@ -99,7 +99,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -108,11 +108,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h b/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h index bbe3443aa..808bead94 100644 --- a/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h +++ b/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Is the prototype for getopt in in the expected format? */ #define HAVE_DECL_GETOPT 1 @@ -99,7 +99,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -108,11 +108,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/Makefile b/external/gpl3/binutils/usr.bin/ld/Makefile index 8e1c248e8..4e9bd9c0d 100644 --- a/external/gpl3/binutils/usr.bin/ld/Makefile +++ b/external/gpl3/binutils/usr.bin/ld/Makefile @@ -20,8 +20,14 @@ CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \ -DTOOLBINDIR=\"/usr/bin\" \ -DENABLE_PLUGINS +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.else +CPPFLAGS+= \ + -DTARGET_SYSTEM_ROOT=\"/usr/${G_target_alias}/sys-root\" \ + -DTARGET_SYSTEM_ROOT_RELOCATABLE +.endif # !defined(__MINIX COPTS.ldgram.c = -Wno-stack-protector @@ -94,15 +100,15 @@ EMUL_LIB_PATH.${f}=/usr/lib EMUL_LIB_PATH.${f}=/usr/lib . endif -#GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @ta rget_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ - +# Binutils 2.22: the arguments have slightly changed. +#ENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@ @EMULATION_NAME@ e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed ${_MKTARGET_CREATE} unset MACHINE || true; \ LIB_PATH=${EMUL_LIB_PATH.${f}} NATIVE=yes \ ${HOST_SH} ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} "/usr" "/usr/bin" \ ${G_target_alias} ${G_target_alias} ${G_target_alias} \ - ${G_EMUL} ${LIBDIR} yes ${f} "${G_target_alias}" + ${G_EMUL} ${LIBDIR} yes no ${f} .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" || \ ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h b/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h index acff0fc43..14a57574e 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Additional extension a shared object might have. */ /* #undef EXTRA_SHLIB_EXTENSION */ @@ -66,6 +66,9 @@ /* Define to 1 if you have the `glob' function. */ #define HAVE_GLOB 1 +/* Define .init_array/.fini_array sections are available and working. */ +/* #undef HAVE_INITFINI_ARRAY */ + /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 @@ -134,11 +137,11 @@ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 -/* Define to 1 if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ @@ -197,11 +200,11 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -210,11 +213,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk b/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk index 3fd8723e9..f7265c3af 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk @@ -3,10 +3,10 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_DEFS=-DHAVE_CONFIG_H -G_EMUL=armelf_nbsd_eabi -G_EMULATION_OFILES=earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o +G_EMUL=armelf_minix +G_EMULATION_OFILES=earmelf_minix.o earmelf.o G_INCLUDES= -G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o +G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o earmelf_minix.o earmelf.o G_STRINGIFY=astring.sed G_TEXINFOS=ld.texinfo -G_target_alias=arm--netbsdelf-eabi +G_target_alias=arm-elf32-minix diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h b/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h index 59a6f9cbd..2344f001f 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h @@ -3,14 +3,10 @@ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ /* This file is automatically generated. DO NOT EDIT! */ -extern ld_emulation_xfer_type ld_armelf_nbsd_eabi_emulation; -extern ld_emulation_xfer_type ld_armelfb_nbsd_eabi_emulation; +extern ld_emulation_xfer_type ld_armelf_minix_emulation; extern ld_emulation_xfer_type ld_armelf_emulation; -extern ld_emulation_xfer_type ld_armnbsd_emulation; #define EMULATION_LIST \ - &ld_armelf_nbsd_eabi_emulation, \ - &ld_armelfb_nbsd_eabi_emulation, \ + &ld_armelf_minix_emulation, \ &ld_armelf_emulation, \ - &ld_armnbsd_emulation, \ 0 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h b/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h index ffe99e71b..14a57574e 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Additional extension a shared object might have. */ /* #undef EXTRA_SHLIB_EXTENSION */ @@ -66,6 +66,9 @@ /* Define to 1 if you have the `glob' function. */ #define HAVE_GLOB 1 +/* Define .init_array/.fini_array sections are available and working. */ +/* #undef HAVE_INITFINI_ARRAY */ + /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 @@ -134,7 +137,7 @@ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 -/* Define to 1 if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ @@ -197,7 +200,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ @@ -210,11 +213,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk index 4b8265cce..5fc4f5a90 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk @@ -3,10 +3,10 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_DEFS=-DHAVE_CONFIG_H -G_EMUL=elf_i386 -G_EMULATION_OFILES=eelf_i386.o ei386nbsd.o +G_EMUL=elf_i386_minix +G_EMULATION_OFILES=eelf_i386_minix.o eelf_i386.o G_INCLUDES= -G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386nbsd.o +G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386_minix.o eelf_i386.o G_STRINGIFY=astring.sed G_TEXINFOS=ld.texinfo -G_target_alias=i486--netbsdelf +G_target_alias=i586-elf32-minix diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h b/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h index ac40beb92..36b793f54 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h @@ -1,11 +1,12 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ +/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ +/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ /* This file is automatically generated. DO NOT EDIT! */ +extern ld_emulation_xfer_type ld_elf_i386_minix_emulation; extern ld_emulation_xfer_type ld_elf_i386_emulation; -extern ld_emulation_xfer_type ld_i386nbsd_emulation; #define EMULATION_LIST \ + &ld_elf_i386_minix_emulation, \ &ld_elf_i386_emulation, \ - &ld_i386nbsd_emulation, \ 0 diff --git a/external/gpl3/binutils/usr.bin/objdump/Makefile b/external/gpl3/binutils/usr.bin/objdump/Makefile index e58742549..b188e3d7d 100644 --- a/external/gpl3/binutils/usr.bin/objdump/Makefile +++ b/external/gpl3/binutils/usr.bin/objdump/Makefile @@ -2,6 +2,10 @@ PROG= objdump +.if defined(__MINIX) +CPPFLAGS.objdump.c+= -DOBJDUMP_PRIVATE_VECTORS="" +.endif # defined(__MINIX) + .include .include "${.CURDIR}/../common/Makefile.prog" diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index c7e5190ae..7a1377bcd 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -22,7 +22,7 @@ MANGRP?= operator INFOGRP?= operator DOCGRP?= operator -MKBINUTILS:= no +MKBINUTILS?= no MKGDB:= no MKGCC?= no