Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/lib mknative-gdb for GDB 7.12 and coldfire...
details: https://anonhg.NetBSD.org/src/rev/d484304e7f3d
branches: trunk
changeset: 348401:d484304e7f3d
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Oct 17 18:44:43 2016 +0000
description:
mknative-gdb for GDB 7.12 and coldfire/m68000. untested.
this completes our regularly scheduled mknative-gdb for all ports.
until next time enjoy your flight and have a nice day.
diffstat:
external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h | 368 ++++++++-
external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd.h | 368 ++++++++-
external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd_stdint.h | 4 +-
external/gpl3/gdb/lib/libbfd/arch/coldfire/bfdver.h | 8 +-
external/gpl3/gdb/lib/libbfd/arch/coldfire/config.h | 14 +-
external/gpl3/gdb/lib/libbfd/arch/coldfire/targmatch.h | 128 ++-
external/gpl3/gdb/lib/libbfd/arch/m68000/bfd-in3.h | 368 ++++++++-
external/gpl3/gdb/lib/libbfd/arch/m68000/bfd.h | 368 ++++++++-
external/gpl3/gdb/lib/libbfd/arch/m68000/bfd_stdint.h | 4 +-
external/gpl3/gdb/lib/libbfd/arch/m68000/bfdver.h | 8 +-
external/gpl3/gdb/lib/libbfd/arch/m68000/config.h | 14 +-
external/gpl3/gdb/lib/libbfd/arch/m68000/targmatch.h | 128 ++-
external/gpl3/gdb/lib/libdecnumber/arch/coldfire/gstdint.h | 4 +-
external/gpl3/gdb/lib/libdecnumber/arch/m68000/gstdint.h | 4 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/build-gnulib/config.h | 261 +++++-
external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h | 25 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk | 6 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/init.c | 8 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/jit-reader.h | 4 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.h | 16 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.inc | 121 ++-
external/gpl3/gdb/lib/libgdb/arch/coldfire/version.c | 4 +-
external/gpl3/gdb/lib/libgdb/arch/coldfire/xml-builtin.c | 46 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/build-gnulib/config.h | 259 +++++-
external/gpl3/gdb/lib/libgdb/arch/m68000/config.h | 23 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/defs.mk | 6 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/init.c | 8 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/jit-reader.h | 4 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/observer.h | 16 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/observer.inc | 121 ++-
external/gpl3/gdb/lib/libgdb/arch/m68000/version.c | 4 +-
external/gpl3/gdb/lib/libgdb/arch/m68000/xml-builtin.c | 46 +-
external/gpl3/gdb/lib/libiberty/arch/coldfire/config.h | 5 +-
external/gpl3/gdb/lib/libiberty/arch/m68000/config.h | 5 +-
external/gpl3/gdb/lib/libopcodes/arch/coldfire/config.h | 8 +-
external/gpl3/gdb/lib/libopcodes/arch/m68000/config.h | 8 +-
36 files changed, 2182 insertions(+), 610 deletions(-)
diffs (truncated from 6137 to 300 lines):
diff -r 9d96be335662 -r d484304e7f3d external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h
--- a/external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h Mon Oct 17 18:32:33 2016 +0000
+++ b/external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h Mon Oct 17 18:44:43 2016 +0000
@@ -1,5 +1,5 @@
/* This file is automatically generated. DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp */
+/* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp */
/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp */
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
@@ -11,7 +11,7 @@
/* Main header file for the bfd library -- portable access to object files.
- Copyright (C) 1990-2015 Free Software Foundation, Inc.
+ Copyright (C) 1990-2016 Free Software Foundation, Inc.
Contributed by Cygnus Support.
@@ -267,7 +267,7 @@
} u; /* bfd* or file position. */
int namidx; /* Index into string table. */
};
-
+
/* Linenumber stuff. */
typedef struct lineno_cache_entry
{
@@ -281,11 +281,19 @@
alent;
/* Object and core file sections. */
+typedef struct bfd_section *sec_ptr;
#define align_power(addr, align) \
- (((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
-
-typedef struct bfd_section *sec_ptr;
+ (((addr) + ((bfd_vma) 1 << (align)) - 1) & (-((bfd_vma) 1 << (align))))
+
+/* Align an address upward to a boundary, expressed as a number of bytes.
+ E.g. align to an 8-byte boundary with argument of 8. Take care never
+ to wrap around if the address is within boundary-1 of the end of the
+ address space. */
+#define BFD_ALIGN(this, boundary) \
+ ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this)) \
+ ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \
+ : ~ (bfd_vma) 0)
#define bfd_get_section_name(bfd, ptr) ((void) bfd, (ptr)->name)
#define bfd_get_section_vma(bfd, ptr) ((void) bfd, (ptr)->vma)
@@ -522,7 +530,6 @@
#define bfd_get_file_flags(abfd) ((abfd)->flags)
#define bfd_applicable_file_flags(abfd) ((abfd)->xvec->object_flags)
#define bfd_applicable_section_flags(abfd) ((abfd)->xvec->section_flags)
-#define bfd_my_archive(abfd) ((abfd)->my_archive)
#define bfd_has_map(abfd) ((abfd)->has_armap)
#define bfd_is_thin_archive(abfd) ((abfd)->is_thin_archive)
@@ -860,6 +867,23 @@
extern void bfd_elf32_arm_vfp11_fix_veneer_locations
(bfd *, struct bfd_link_info *);
+/* ARM STM STM32L4XX erratum workaround support. */
+typedef enum
+{
+ BFD_ARM_STM32L4XX_FIX_NONE,
+ BFD_ARM_STM32L4XX_FIX_DEFAULT,
+ BFD_ARM_STM32L4XX_FIX_ALL
+} bfd_arm_stm32l4xx_fix;
+
+extern void bfd_elf32_arm_set_stm32l4xx_fix
+ (bfd *, struct bfd_link_info *);
+
+extern bfd_boolean bfd_elf32_arm_stm32l4xx_erratum_scan
+ (bfd *, struct bfd_link_info *);
+
+extern void bfd_elf32_arm_stm32l4xx_fix_veneer_locations
+ (bfd *, struct bfd_link_info *);
+
/* ARM Interworking support. Called from linker. */
extern bfd_boolean bfd_arm_allocate_interworking_sections
(struct bfd_link_info *);
@@ -889,7 +913,7 @@
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);
+ bfd_arm_stm32l4xx_fix, int, int, int, int, int);
extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking
(bfd *, struct bfd_link_info *);
@@ -897,6 +921,9 @@
extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd
(bfd *, struct bfd_link_info *);
+extern void bfd_elf32_arm_keep_private_stub_output_sections
+ (struct bfd_link_info *);
+
/* ELF ARM mapping symbol support. */
#define BFD_ARM_SPECIAL_SYM_TYPE_MAP (1 << 0)
#define BFD_ARM_SPECIAL_SYM_TYPE_TAG (1 << 1)
@@ -928,7 +955,8 @@
(struct bfd_link_info *, struct bfd_section *);
extern bfd_boolean elf32_arm_size_stubs
(bfd *, bfd *, struct bfd_link_info *, bfd_signed_vma,
- struct bfd_section * (*) (const char *, struct bfd_section *, unsigned int),
+ struct bfd_section * (*) (const char *, struct bfd_section *,
+ struct bfd_section *, unsigned int),
void (*) (void));
extern bfd_boolean elf32_arm_build_stubs
(struct bfd_link_info *);
@@ -941,13 +969,6 @@
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);
-/* PowerPC @tprel opcode transform/validate. */
-extern unsigned int _bfd_elf_ppc_at_tprel_transform
- (unsigned int, unsigned int);
-
extern void bfd_elf64_aarch64_init_maps
(bfd *);
@@ -955,10 +976,10 @@
(bfd *);
extern void bfd_elf64_aarch64_set_options
- (bfd *, struct bfd_link_info *, int, int, int, int, int);
+ (bfd *, struct bfd_link_info *, int, int, int, int, int, int);
extern void bfd_elf32_aarch64_set_options
- (bfd *, struct bfd_link_info *, int, int, int, int, int);
+ (bfd *, struct bfd_link_info *, int, int, int, int, int, int);
/* ELF AArch64 mapping symbol support. */
#define BFD_AARCH64_SPECIAL_SYM_TYPE_MAP (1 << 0)
@@ -1213,10 +1234,10 @@
const char *name;
/* A unique sequence number. */
- int id;
+ unsigned int id;
/* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
- int index;
+ unsigned int index;
/* The next section in the list belonging to the BFD, or NULL. */
struct bfd_section *next;
@@ -1419,6 +1440,9 @@
when memory read flag isn't set. */
#define SEC_COFF_NOREAD 0x40000000
+ /* Indicate that section has the purecode flag set. */
+#define SEC_ELF_PURECODE 0x80000000
+
/* End of section flags. */
/* Some internal packed boolean fields. */
@@ -1485,7 +1509,7 @@
information. */
bfd_vma lma;
- /* The size of the section in octets, as it will be output.
+ /* The size of the section in *octets*, as it will be output.
Contains a value even if the section has no contents (e.g., the
size of <<.bss>>). */
bfd_size_type size;
@@ -1797,7 +1821,7 @@
asection *bfd_get_section_by_name (bfd *abfd, const char *name);
-asection *bfd_get_next_section_by_name (asection *sec);
+asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
asection *bfd_get_linker_section (bfd *abfd, const char *name);
@@ -1822,6 +1846,8 @@
asection *bfd_make_section (bfd *, const char *name);
+int bfd_get_next_section_id (void);
+
bfd_boolean bfd_set_section_flags
(bfd *abfd, asection *sec, flagword flags);
@@ -1934,13 +1960,29 @@
#define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */
#define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */
#define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */
+#define bfd_mach_sparc_v8plusc 11 /* with UA2005 and T1 add'ns. */
+#define bfd_mach_sparc_v9c 12 /* with UA2005 and T1 add'ns. */
+#define bfd_mach_sparc_v8plusd 13 /* with UA2007 and T3 add'ns. */
+#define bfd_mach_sparc_v9d 14 /* with UA2007 and T3 add'ns. */
+#define bfd_mach_sparc_v8pluse 15 /* with OSA2001 and T4 add'ns (no IMA). */
+#define bfd_mach_sparc_v9e 16 /* with OSA2001 and T4 add'ns (no IMA). */
+#define bfd_mach_sparc_v8plusv 17 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
+#define bfd_mach_sparc_v9v 18 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
+#define bfd_mach_sparc_v8plusm 19 /* with OSA2015 and M7 add'ns. */
+#define bfd_mach_sparc_v9m 20 /* with OSA2015 and M7 add'ns. */
/* Nonzero if MACH has the v9 instruction set. */
#define bfd_mach_sparc_v9_p(mach) \
- ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \
+ ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m \
&& (mach) != bfd_mach_sparc_sparclite_le)
/* Nonzero if MACH is a 64 bit sparc architecture. */
#define bfd_mach_sparc_64bit_p(mach) \
- ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb)
+ ((mach) >= bfd_mach_sparc_v9 \
+ && (mach) != bfd_mach_sparc_v8plusb \
+ && (mach) != bfd_mach_sparc_v8plusc \
+ && (mach) != bfd_mach_sparc_v8plusd \
+ && (mach) != bfd_mach_sparc_v8pluse \
+ && (mach) != bfd_mach_sparc_v8plusv \
+ && (mach) != bfd_mach_sparc_v8plusm)
bfd_arch_spu, /* PowerPC SPU */
#define bfd_mach_spu 256
bfd_arch_mips, /* MIPS Rxxxx */
@@ -2150,10 +2192,12 @@
#define bfd_mach_v850e2v3 0x45325633
#define bfd_mach_v850e3v5 0x45335635 /* ('E'|'3'|'V'|'5') */
bfd_arch_arc, /* ARC Cores */
-#define bfd_mach_arc_5 5
-#define bfd_mach_arc_6 6
-#define bfd_mach_arc_7 7
-#define bfd_mach_arc_8 8
+#define bfd_mach_arc_a4 0
+#define bfd_mach_arc_a5 1
+#define bfd_mach_arc_arc600 2
+#define bfd_mach_arc_arc601 4
+#define bfd_mach_arc_arc700 3
+#define bfd_mach_arc_arcv2 5
bfd_arch_m32c, /* Renesas M16C/M32C. */
#define bfd_mach_m16c 0x75
#define bfd_mach_m32c 0x78
@@ -2347,6 +2391,9 @@
void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
+bfd_boolean bfd_default_set_arch_mach
+ (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
+
enum bfd_architecture bfd_get_arch (bfd *abfd);
unsigned long bfd_get_mach (bfd *abfd);
@@ -2966,6 +3013,9 @@
BFD_RELOC_MICROMIPS_10_PCREL_S1,
BFD_RELOC_MICROMIPS_16_PCREL_S1,
+/* MIPS16 PC-relative relocation. */
+ BFD_RELOC_MIPS16_16_PCREL_S1,
+
/* MIPS PC-relative relocations. */
BFD_RELOC_MIPS_21_PCREL_S2,
BFD_RELOC_MIPS_26_PCREL_S2,
@@ -3177,6 +3227,7 @@
BFD_RELOC_386_TLS_DESC_CALL,
BFD_RELOC_386_TLS_DESC,
BFD_RELOC_386_IRELATIVE,
+ BFD_RELOC_386_GOT32X,
/* x86-64/elf relocations */
BFD_RELOC_X86_64_GOT32,
@@ -3208,6 +3259,8 @@
BFD_RELOC_X86_64_IRELATIVE,
BFD_RELOC_X86_64_PC32_BND,
BFD_RELOC_X86_64_PLT32_BND,
+ BFD_RELOC_X86_64_GOTPCRELX,
+ BFD_RELOC_X86_64_REX_GOTPCRELX,
/* ns32k relocations */
BFD_RELOC_NS32K_IMM_8,
@@ -3283,6 +3336,7 @@
BFD_RELOC_PPC_VLE_SDAREL_HI16D,
BFD_RELOC_PPC_VLE_SDAREL_HA16A,
BFD_RELOC_PPC_VLE_SDAREL_HA16D,
+ BFD_RELOC_PPC_REL16DX_HA,
BFD_RELOC_PPC64_HIGHER,
BFD_RELOC_PPC64_HIGHER_S,
BFD_RELOC_PPC64_HIGHEST,
@@ -3309,6 +3363,7 @@
BFD_RELOC_PPC64_ADDR16_HIGH,
BFD_RELOC_PPC64_ADDR16_HIGHA,
BFD_RELOC_PPC64_ADDR64_LOCAL,
+ BFD_RELOC_PPC64_ENTRY,
/* PowerPC and PowerPC64 thread-local storage relocations. */
BFD_RELOC_PPC_TLS,
@@ -3494,6 +3549,12 @@
/* ARM support for STT_GNU_IFUNC. */
BFD_RELOC_ARM_IRELATIVE,
+/* Thumb1 relocations to support execute-only code. */
+ BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC,
+ BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC,
+ BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC,
+ BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC,
Home |
Main Index |
Thread Index |
Old Index