Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils regen arm32



details:   https://anonhg.NetBSD.org/src/rev/7de5ad638fdb
branches:  trunk
changeset: 373405:7de5ad638fdb
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 07 20:36:47 2023 +0000

description:
regen arm32

diffstat:

 external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk          |    6 +-
 external/gpl3/binutils/lib/libbfd/arch/earmeb/bfd.h          |  979 +++++-----
 external/gpl3/binutils/lib/libbfd/arch/earmeb/bfdver.h       |    8 +-
 external/gpl3/binutils/lib/libbfd/arch/earmeb/config.h       |  103 +-
 external/gpl3/binutils/lib/libbfd/arch/earmeb/defs.mk        |    6 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhf/bfd.h          |  979 +++++-----
 external/gpl3/binutils/lib/libbfd/arch/earmhf/bfdver.h       |    8 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhf/config.h       |  103 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhf/defs.mk        |    6 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhfeb/bfd.h        |  979 +++++-----
 external/gpl3/binutils/lib/libbfd/arch/earmhfeb/bfdver.h     |    8 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhfeb/config.h     |  103 +-
 external/gpl3/binutils/lib/libbfd/arch/earmhfeb/defs.mk      |    6 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmeb/config.h    |   43 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmeb/defs.mk     |    4 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmhf/config.h    |   43 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmhf/defs.mk     |    4 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmhfeb/config.h  |   43 +-
 external/gpl3/binutils/lib/libgnuctf/arch/earmhfeb/defs.mk   |    4 +-
 external/gpl3/binutils/lib/libiberty/arch/earmeb/defs.mk     |    4 +-
 external/gpl3/binutils/lib/libiberty/arch/earmhf/defs.mk     |    4 +-
 external/gpl3/binutils/lib/libiberty/arch/earmhfeb/defs.mk   |    4 +-
 external/gpl3/binutils/lib/libopcodes/arch/earmeb/config.h   |   20 +-
 external/gpl3/binutils/lib/libopcodes/arch/earmhf/config.h   |   20 +-
 external/gpl3/binutils/lib/libopcodes/arch/earmhfeb/config.h |   20 +-
 external/gpl3/binutils/usr.bin/common/arch/earm/config.h     |    2 +-
 external/gpl3/binutils/usr.bin/common/arch/earmeb/config.h   |  123 +-
 external/gpl3/binutils/usr.bin/common/arch/earmeb/defs.mk    |   16 +-
 external/gpl3/binutils/usr.bin/common/arch/earmhf/config.h   |  125 +-
 external/gpl3/binutils/usr.bin/common/arch/earmhf/defs.mk    |   16 +-
 external/gpl3/binutils/usr.bin/common/arch/earmhfeb/config.h |  123 +-
 external/gpl3/binutils/usr.bin/common/arch/earmhfeb/defs.mk  |   16 +-
 external/gpl3/binutils/usr.bin/gas/arch/earm/config.h        |    6 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmeb/config.h      |  125 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmeb/defs.mk       |    6 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmeb/targ-env.h    |    4 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhf/config.h      |  125 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhf/defs.mk       |    6 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhf/targ-env.h    |    4 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhfeb/config.h    |  125 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhfeb/defs.mk     |    6 +-
 external/gpl3/binutils/usr.bin/gas/arch/earmhfeb/targ-env.h  |    4 +-
 external/gpl3/binutils/usr.bin/gprof/arch/earmeb/gconfig.h   |   15 +-
 external/gpl3/binutils/usr.bin/gprof/arch/earmhf/gconfig.h   |   15 +-
 external/gpl3/binutils/usr.bin/gprof/arch/earmhfeb/gconfig.h |   15 +-
 external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk          |    2 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmeb/config.h       |   80 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk        |    6 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmhf/config.h       |   80 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmhf/defs.mk        |    6 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmhfeb/config.h     |   80 +-
 external/gpl3/binutils/usr.bin/ld/arch/earmhfeb/defs.mk      |    6 +-
 52 files changed, 2175 insertions(+), 2469 deletions(-)

diffs (truncated from 10064 to 300 lines):

diff -r b773fb1212e4 -r 7de5ad638fdb external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk
--- a/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk       Tue Feb 07 20:34:01 2023 +0000
+++ b/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk       Tue Feb 07 20:36:47 2023 +0000
@@ -1,10 +1,10 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-binutils,v 1.13 2020/04/04 01:34:53 christos Exp 
+# Generated from: NetBSD: mknative-binutils,v 1.14 2022/12/24 20:17:46 christos Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_libbfd_la_DEPENDENCIES=elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo dwarf2.lo elf32-gen.lo plugin.lo cpu-arm.lo 
netbsd-core.lo ofiles
 G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo  cache.lo coff-bfd.lo compress.lo corefile.lo elf-properties.lo  format.lo hash.lo init.lo libbfd.lo linker.lo merge.lo  
opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo  syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo  verilog.lo
 G_DEFS=-DHAVE_CONFIG_H
 G_INCLUDES=
-G_TDEFAULTS=-DDEFAULT_VECTOR=arm_elf32_le_vec -DSELECT_VECS='&arm_elf32_le_vec,&arm_elf32_be_vec,&elf32_le_vec,&elf32_be_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch'
-G_HAVEVECS=-DHAVE_arm_elf32_le_vec -DHAVE_arm_elf32_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec
+G_TDEFAULTS=-DDEFAULT_VECTOR=arm_elf32_le_vec -DSELECT_VECS='&arm_elf32_le_vec,&arm_elf32_fdpic_le_vec,&arm_elf32_be_vec,&arm_elf32_fdpic_be_vec,&elf32_le_vec,&elf32_be_vec' 
-DSELECT_ARCHITECTURES='&bfd_arm_arch'
+G_HAVEVECS=-DHAVE_arm_elf32_le_vec -DHAVE_arm_elf32_fdpic_le_vec -DHAVE_arm_elf32_be_vec -DHAVE_arm_elf32_fdpic_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec
diff -r b773fb1212e4 -r 7de5ad638fdb external/gpl3/binutils/lib/libbfd/arch/earmeb/bfd.h
--- a/external/gpl3/binutils/lib/libbfd/arch/earmeb/bfd.h       Tue Feb 07 20:34:01 2023 +0000
+++ b/external/gpl3/binutils/lib/libbfd/arch/earmeb/bfd.h       Tue Feb 07 20:36:47 2023 +0000
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-binutils,v 1.13 2020/04/04 01:34:53 christos Exp  */
+/* Generated from: NetBSD: mknative-binutils,v 1.14 2022/12/24 20:17:46 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 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-2020 Free Software Foundation, Inc.
+   Copyright (C) 1990-2022 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -45,9 +45,11 @@
 
 #include "ansidecl.h"
 #include "symcat.h"
-#include "bfd_stdint.h"
+#include <stdint.h>
+#include <stdbool.h>
 #include "diagnostics.h"
 #include <stdarg.h>
+#include <string.h>
 #include <sys/stat.h>
 
 #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
@@ -67,23 +69,6 @@
    comma and then the length of the string.  Doing this by hand
    is error prone, so using this macro is safer.  */
 #define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
-/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
-   to create the arguments to another macro, since the preprocessor
-   will mis-count the number of arguments to the outer macro (by not
-   evaluating STRING_COMMA_LEN and so missing the comma).  This is a
-   problem for example when trying to use STRING_COMMA_LEN to build
-   the arguments to the strncmp() macro.  Hence this alternative
-   definition of strncmp is provided here.
-
-   Note - these macros do NOT work if STR2 is not a constant string.  */
-#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
-  /* strcpy() can have a similar problem, but since we know we are
-     copying a constant string, we can use memcpy which will be faster
-     since there is no need to check for a NUL byte inside STR.  We
-     can also save time if we do not need to copy the terminating NUL.  */
-#define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
-#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
-
 
 #define BFD_SUPPORTS_PLUGINS 1
 
@@ -95,109 +80,64 @@
 /* The word size of the default bfd target.  */
 #define BFD_DEFAULT_TARGET_SIZE 32
 
-#define BFD_HOST_64BIT_LONG 0
-#define BFD_HOST_64BIT_LONG_LONG 1
-#if 1
-#define BFD_HOST_64_BIT long long
-#define BFD_HOST_U_64_BIT unsigned long long
-typedef BFD_HOST_64_BIT bfd_int64_t;
-typedef BFD_HOST_U_64_BIT bfd_uint64_t;
-#endif
-
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if BFD_HOST_64BIT_LONG
-#  define BFD_PRI64 "l"
-# elif defined (__MSVCRT__)
-#  define BFD_PRI64 "I64"
-# else
-#  define BFD_PRI64 "ll"
-# endif
-# undef PRId64
-# define PRId64 BFD_PRI64 "d"
-# undef PRIu64
-# define PRIu64 BFD_PRI64 "u"
-# undef PRIx64
-# define PRIx64 BFD_PRI64 "x"
-#endif
+#include <inttypes.h>
 
 #if BFD_ARCH_SIZE >= 64
 #define BFD64
 #endif
 
-#ifndef INLINE
-#if __GNUC__ >= 2
-#define INLINE __inline__
-#else
-#define INLINE
-#endif
-#endif
-
-/* Declaring a type wide enough to hold a host long and a host pointer.  */
-#define BFD_HOSTPTR_T unsigned long
-typedef BFD_HOSTPTR_T bfd_hostptr_t;
-
 /* Forward declaration.  */
 typedef struct bfd bfd;
 
-/* Boolean type used in bfd.  Too many systems define their own
-   versions of "boolean" for us to safely typedef a "boolean" of
-   our own.  Using an enum for "bfd_boolean" has its own set of
-   problems, with strange looking casts required to avoid warnings
-   on some older compilers.  Thus we just use an int.
-
+/* Boolean type used in bfd.
    General rule: Functions which are bfd_boolean return TRUE on
    success and FALSE on failure (unless they're a predicate).  */
 
-typedef int bfd_boolean;
-#undef FALSE
-#undef TRUE
-#define FALSE 0
-#define TRUE 1
+#ifdef POISON_BFD_BOOLEAN
+# pragma GCC poison bfd_boolean
+#else
+# define bfd_boolean bool
+# undef FALSE
+# undef TRUE
+# define FALSE 0
+# define TRUE 1
+#endif
+
+/* Silence "applying zero offset to null pointer" UBSAN warnings.  */
+#define PTR_ADD(P,A) ((A) != 0 ? (P) + (A) : (P))
+/* Also prevent non-zero offsets from being applied to a null pointer.  */
+#define NPTR_ADD(P,A) ((P) != NULL ? (P) + (A) : (P))
 
 #ifdef BFD64
 
-#ifndef BFD_HOST_64_BIT
- #error No 64 bit integer type available
-#endif /* ! defined (BFD_HOST_64_BIT) */
-
-typedef BFD_HOST_U_64_BIT bfd_vma;
-typedef BFD_HOST_64_BIT bfd_signed_vma;
-typedef BFD_HOST_U_64_BIT bfd_size_type;
-typedef BFD_HOST_U_64_BIT symvalue;
-
-#if BFD_HOST_64BIT_LONG
-#define BFD_VMA_FMT "l"
-#elif defined (__MSVCRT__)
-#define BFD_VMA_FMT "I64"
-#else
-#define BFD_VMA_FMT "ll"
-#endif
-
-#ifndef fprintf_vma
-#define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
-#define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
-#endif
-
-#else /* not BFD64  */
-
 /* Represent a target address.  Also used as a generic unsigned type
    which is guaranteed to be big enough to hold any arithmetic types
    we need to deal with.  */
-typedef unsigned long bfd_vma;
+typedef uint64_t bfd_vma;
 
 /* A generic signed type which is guaranteed to be big enough to hold any
    arithmetic types we need to deal with.  Can be assumed to be compatible
    with bfd_vma in the same way that signed and unsigned ints are compatible
    (as parameters, in assignment, etc).  */
+typedef int64_t bfd_signed_vma;
+
+typedef uint64_t bfd_size_type;
+typedef uint64_t symvalue;
+
+#define BFD_VMA_FMT "ll"
+
+#define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
+#define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
+
+#else /* not BFD64  */
+
+typedef unsigned long bfd_vma;
 typedef long bfd_signed_vma;
-
 typedef unsigned long symvalue;
 typedef unsigned long bfd_size_type;
 
-/* Print a bfd_vma x on stream s.  */
 #define BFD_VMA_FMT "l"
+
 #define fprintf_vma(s,x) fprintf (s, "%08" BFD_VMA_FMT "x", x)
 #define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x)
 
@@ -206,19 +146,10 @@
 #define HALF_BFD_SIZE_TYPE \
   (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2))
 
-#ifndef BFD_HOST_64_BIT
-/* Fall back on a 32 bit type.  The idea is to make these types always
-   available for function return types, but in the case that
-   BFD_HOST_64_BIT is undefined such a function should abort or
-   otherwise signal an error.  */
-typedef bfd_signed_vma bfd_int64_t;
-typedef bfd_vma bfd_uint64_t;
-#endif
-
 /* 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 int64_t file_ptr;
+typedef uint64_t ufile_ptr;
 
 extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
 extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
@@ -366,7 +297,7 @@
 };
 
 /* Initialize a hash table.  */
-extern bfd_boolean bfd_hash_table_init
+extern bool bfd_hash_table_init
   (struct bfd_hash_table *,
    struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
                               struct bfd_hash_table *,
@@ -374,7 +305,7 @@
    unsigned int);
 
 /* Initialize a hash table specifying a size.  */
-extern bfd_boolean bfd_hash_table_init_n
+extern bool bfd_hash_table_init_n
   (struct bfd_hash_table *,
    struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
                               struct bfd_hash_table *,
@@ -390,8 +321,7 @@
    COPY argument must be TRUE if this routine should copy the string
    into newly allocated memory when adding an entry.  */
 extern struct bfd_hash_entry *bfd_hash_lookup
-  (struct bfd_hash_table *, const char *, bfd_boolean create,
-   bfd_boolean copy);
+  (struct bfd_hash_table *, const char *, bool create, bool copy);
 
 /* Insert an entry in a hash table.  */
 extern struct bfd_hash_entry *bfd_hash_insert
@@ -419,7 +349,7 @@
    INFO argument is passed to the function.  */
 extern void bfd_hash_traverse
   (struct bfd_hash_table *,
-   bfd_boolean (*) (struct bfd_hash_entry *, void *),
+   bool (*) (struct bfd_hash_entry *, void *),
    void *info);
 
 /* Allows the default size of a hash table to be configured. New hash
@@ -482,22 +412,22 @@
 #endif
 extern void _bfd_warn_deprecated (const char *, const char *, int, const char *);
 
-extern bfd_boolean bfd_cache_close
+extern bool bfd_cache_close
   (bfd *abfd);
 /* NB: This declaration should match the autogenerated one in libbfd.h.  */
 
-extern bfd_boolean bfd_cache_close_all (void);
-
-extern bfd_boolean bfd_record_phdr
-  (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
-   bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
+extern bool bfd_cache_close_all (void);
+
+extern bool bfd_record_phdr
+  (bfd *, unsigned long, bool, flagword, bool, bfd_vma,
+   bool, bool, unsigned int, struct bfd_section **);
 
 /* Byte swapping routines.  */
 
-bfd_uint64_t bfd_getb64 (const void *);
-bfd_uint64_t bfd_getl64 (const void *);
-bfd_int64_t bfd_getb_signed_64 (const void *);
-bfd_int64_t bfd_getl_signed_64 (const void *);
+uint64_t bfd_getb64 (const void *);



Home | Main Index | Thread Index | Old Index