C99 binutils configury
* configure.ac: Assume long long is available. Don't test for strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for strcoll, setlocale, setmode or location of time_t. Don't check for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls. (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke. * sysdep.h: Don't include alloca-conf.h, include config.h instead. Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h, locale.h, string.h and stdlib.h unconditionally. Remove various fallback declarations. Assume long long is available. * addr2line.c: Don't test HAVE_SETLOCALE. * ar.c: Likewise. * coffdump.c: Likewise. * dlltool.c: Likewise. * dllwrap.c: Likewise. * elfedit.c: Likewise. * nm.c: Likewise. * objcopy.c: Likewise. * objdump.c: Likewise. * readelf.c: Likewise. * size.c: Likewise. * srconv.c: Likewise. * strings.c: Likewise. * sysdump.c: Likewise. * windmc.c: Likewise. * windres.c: Likewise. * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H. * dwarf.c: Include limits.h unconditionally. Assume long long is available. * nm.c: Don't test HAVE_STRCOLL. * readelf.c: Don't test HAVE_WCHAR_H. * strings.c: Assume long long is available. * syslex.l: Include string.h unconditionally. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate.
This commit is contained in:
parent
ab2af25e83
commit
87b9f2556d
@ -1,3 +1,44 @@
|
|||||||
|
2021-04-05 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* configure.ac: Assume long long is available. Don't test for
|
||||||
|
strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
|
||||||
|
inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
|
||||||
|
strcoll, setlocale, setmode or location of time_t. Don't check
|
||||||
|
for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
|
||||||
|
(AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
|
||||||
|
* sysdep.h: Don't include alloca-conf.h, include config.h instead.
|
||||||
|
Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
|
||||||
|
locale.h, string.h and stdlib.h unconditionally. Remove various
|
||||||
|
fallback declarations. Assume long long is available.
|
||||||
|
* addr2line.c: Don't test HAVE_SETLOCALE.
|
||||||
|
* ar.c: Likewise.
|
||||||
|
* coffdump.c: Likewise.
|
||||||
|
* dlltool.c: Likewise.
|
||||||
|
* dllwrap.c: Likewise.
|
||||||
|
* elfedit.c: Likewise.
|
||||||
|
* nm.c: Likewise.
|
||||||
|
* objcopy.c: Likewise.
|
||||||
|
* objdump.c: Likewise.
|
||||||
|
* readelf.c: Likewise.
|
||||||
|
* size.c: Likewise.
|
||||||
|
* srconv.c: Likewise.
|
||||||
|
* strings.c: Likewise.
|
||||||
|
* sysdump.c: Likewise.
|
||||||
|
* windmc.c: Likewise.
|
||||||
|
* windres.c: Likewise.
|
||||||
|
* bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
|
||||||
|
* dwarf.c: Include limits.h unconditionally. Assume long long
|
||||||
|
is available.
|
||||||
|
* nm.c: Don't test HAVE_STRCOLL.
|
||||||
|
* readelf.c: Don't test HAVE_WCHAR_H.
|
||||||
|
* strings.c: Assume long long is available.
|
||||||
|
* syslex.l: Include string.h unconditionally.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* config.in: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
* doc/Makefile.in: Regenerate.
|
||||||
|
|
||||||
2021-04-01 Martin Liska <mliska@suse.cz>
|
2021-04-01 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
* elfcomm.h (strneq): Remove strneq and use startswith.
|
* elfcomm.h (strneq): Remove strneq and use startswith.
|
||||||
|
@ -120,7 +120,7 @@ EXTRA_PROGRAMS = srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) \
|
|||||||
subdir = .
|
subdir = .
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||||
$(top_srcdir)/../bfd/warning.m4 $(top_srcdir)/../config/acx.m4 \
|
$(top_srcdir)/../bfd/warning.m4 \
|
||||||
$(top_srcdir)/../config/depstand.m4 \
|
$(top_srcdir)/../config/depstand.m4 \
|
||||||
$(top_srcdir)/../config/enable.m4 \
|
$(top_srcdir)/../config/enable.m4 \
|
||||||
$(top_srcdir)/../config/gettext-sister.m4 \
|
$(top_srcdir)/../config/gettext-sister.m4 \
|
||||||
@ -400,7 +400,6 @@ DEJATOOL = $(PACKAGE)
|
|||||||
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
|
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
|
||||||
DIST_SUBDIRS = $(SUBDIRS)
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
ALLOCA = @ALLOCA@
|
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
|
1
binutils/aclocal.m4
vendored
1
binutils/aclocal.m4
vendored
@ -1187,7 +1187,6 @@ AC_SUBST([am__untar])
|
|||||||
|
|
||||||
m4_include([../bfd/acinclude.m4])
|
m4_include([../bfd/acinclude.m4])
|
||||||
m4_include([../bfd/warning.m4])
|
m4_include([../bfd/warning.m4])
|
||||||
m4_include([../config/acx.m4])
|
|
||||||
m4_include([../config/depstand.m4])
|
m4_include([../config/depstand.m4])
|
||||||
m4_include([../config/enable.m4])
|
m4_include([../config/enable.m4])
|
||||||
m4_include([../config/gettext-sister.m4])
|
m4_include([../config/gettext-sister.m4])
|
||||||
|
@ -425,12 +425,10 @@ main (int argc, char **argv)
|
|||||||
char *target;
|
char *target;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -723,12 +723,10 @@ main (int argc, char **argv)
|
|||||||
char *inarch_filename;
|
char *inarch_filename;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -25,16 +25,9 @@
|
|||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "filenames.h"
|
#include "filenames.h"
|
||||||
|
#include <time.h>
|
||||||
#include <time.h> /* ctime, maybe time_t */
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "bucomm.h"
|
#include "bucomm.h"
|
||||||
|
|
||||||
#ifndef HAVE_TIME_T_IN_TIME_H
|
|
||||||
#ifndef HAVE_TIME_T_IN_TYPES_H
|
|
||||||
typedef long time_t;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Error reporting. */
|
/* Error reporting. */
|
||||||
|
|
||||||
|
@ -488,12 +488,10 @@ main (int ac, char **av)
|
|||||||
{ NULL, no_argument, 0, 0 }
|
{ NULL, no_argument, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -7,14 +7,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#define __CONFIG_H__ 1
|
#define __CONFIG_H__ 1
|
||||||
|
|
||||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
|
||||||
systems. This function is required for `alloca.c' support on those systems.
|
|
||||||
*/
|
|
||||||
#undef CRAY_STACKSEG_END
|
|
||||||
|
|
||||||
/* Define to 1 if using `alloca.c'. */
|
|
||||||
#undef C_ALLOCA
|
|
||||||
|
|
||||||
/* Should ar and ranlib use -D behavior by default? */
|
/* Should ar and ranlib use -D behavior by default? */
|
||||||
#undef DEFAULT_AR_DETERMINISTIC
|
#undef DEFAULT_AR_DETERMINISTIC
|
||||||
|
|
||||||
@ -37,13 +29,6 @@
|
|||||||
/* Suffix used for executables, if any. */
|
/* Suffix used for executables, if any. */
|
||||||
#undef EXECUTABLE_SUFFIX
|
#undef EXECUTABLE_SUFFIX
|
||||||
|
|
||||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
|
||||||
#undef HAVE_ALLOCA
|
|
||||||
|
|
||||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
|
||||||
*/
|
|
||||||
#undef HAVE_ALLOCA_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
|
/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
|
||||||
don't. */
|
don't. */
|
||||||
#undef HAVE_DECL_ASPRINTF
|
#undef HAVE_DECL_ASPRINTF
|
||||||
@ -52,18 +37,10 @@
|
|||||||
don't. */
|
don't. */
|
||||||
#undef HAVE_DECL_ENVIRON
|
#undef HAVE_DECL_ENVIRON
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `fprintf', and to 0 if you
|
|
||||||
don't. */
|
|
||||||
#undef HAVE_DECL_FPRINTF
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
|
||||||
don't. */
|
don't. */
|
||||||
#undef HAVE_DECL_GETC_UNLOCKED
|
#undef HAVE_DECL_GETC_UNLOCKED
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
|
|
||||||
*/
|
|
||||||
#undef HAVE_DECL_GETENV
|
|
||||||
|
|
||||||
/* Is the prototype for getopt in <unistd.h> in the expected format? */
|
/* Is the prototype for getopt in <unistd.h> in the expected format? */
|
||||||
#undef HAVE_DECL_GETOPT
|
#undef HAVE_DECL_GETOPT
|
||||||
|
|
||||||
@ -71,26 +48,10 @@
|
|||||||
*/
|
*/
|
||||||
#undef HAVE_DECL_SBRK
|
#undef HAVE_DECL_SBRK
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `snprintf', and to 0 if you
|
|
||||||
don't. */
|
|
||||||
#undef HAVE_DECL_SNPRINTF
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't.
|
/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't.
|
||||||
*/
|
*/
|
||||||
#undef HAVE_DECL_STPCPY
|
#undef HAVE_DECL_STPCPY
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
|
|
||||||
don't. */
|
|
||||||
#undef HAVE_DECL_STRNLEN
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't.
|
|
||||||
*/
|
|
||||||
#undef HAVE_DECL_STRSTR
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
|
|
||||||
don't. */
|
|
||||||
#undef HAVE_DECL_VSNPRINTF
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
#undef HAVE_DLFCN_H
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
@ -121,15 +82,6 @@
|
|||||||
/* Define to 1 if debuginfod is enabled. */
|
/* Define to 1 if debuginfod is enabled. */
|
||||||
#undef HAVE_LIBDEBUGINFOD
|
#undef HAVE_LIBDEBUGINFOD
|
||||||
|
|
||||||
/* Define to 1 if you have the <limits.h> header file. */
|
|
||||||
#undef HAVE_LIMITS_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <locale.h> header file. */
|
|
||||||
#undef HAVE_LOCALE_H
|
|
||||||
|
|
||||||
/* Define to 1 if the system has the type `long long'. */
|
|
||||||
#undef HAVE_LONG_LONG
|
|
||||||
|
|
||||||
/* Define if mbstate_t exists in wchar.h. */
|
/* Define if mbstate_t exists in wchar.h. */
|
||||||
#undef HAVE_MBSTATE_T
|
#undef HAVE_MBSTATE_T
|
||||||
|
|
||||||
@ -148,21 +100,12 @@
|
|||||||
/* Define to 1 if you have the `sbrk' function. */
|
/* Define to 1 if you have the `sbrk' function. */
|
||||||
#undef HAVE_SBRK
|
#undef HAVE_SBRK
|
||||||
|
|
||||||
/* Define to 1 if you have the `setlocale' function. */
|
|
||||||
#undef HAVE_SETLOCALE
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `setmode' function. */
|
|
||||||
#undef HAVE_SETMODE
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
#undef HAVE_STDINT_H
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
#undef HAVE_STDLIB_H
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `strcoll' function. */
|
|
||||||
#undef HAVE_STRCOLL
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
#undef HAVE_STRINGS_H
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
@ -184,21 +127,12 @@
|
|||||||
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
|
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||||
#undef HAVE_SYS_WAIT_H
|
#undef HAVE_SYS_WAIT_H
|
||||||
|
|
||||||
/* Is the type time_t defined in <time.h>? */
|
|
||||||
#undef HAVE_TIME_T_IN_TIME_H
|
|
||||||
|
|
||||||
/* Is the type time_t defined in <sys/types.h>? */
|
|
||||||
#undef HAVE_TIME_T_IN_TYPES_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
#undef HAVE_UNISTD_H
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `utimes' function. */
|
/* Define to 1 if you have the `utimes' function. */
|
||||||
#undef HAVE_UTIMES
|
#undef HAVE_UTIMES
|
||||||
|
|
||||||
/* Define to 1 if you have the <wchar.h> header file. */
|
|
||||||
#undef HAVE_WCHAR_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <windows.h> header file. */
|
/* Define to 1 if you have the <windows.h> header file. */
|
||||||
#undef HAVE_WINDOWS_H
|
#undef HAVE_WINDOWS_H
|
||||||
|
|
||||||
@ -236,20 +170,9 @@
|
|||||||
/* The size of `long long', as computed by sizeof. */
|
/* The size of `long long', as computed by sizeof. */
|
||||||
#undef SIZEOF_LONG_LONG
|
#undef SIZEOF_LONG_LONG
|
||||||
|
|
||||||
/* If using the C implementation of alloca, define if you know the
|
|
||||||
direction of stack growth for your system; otherwise it will be
|
|
||||||
automatically deduced at runtime.
|
|
||||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
|
||||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
|
||||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
|
||||||
#undef STACK_DIRECTION
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef STDC_HEADERS
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
/* Define if you can safely include both <string.h> and <strings.h>. */
|
|
||||||
#undef STRING_WITH_STRINGS
|
|
||||||
|
|
||||||
/* Configured target name. */
|
/* Configured target name. */
|
||||||
#undef TARGET
|
#undef TARGET
|
||||||
|
|
||||||
@ -308,6 +231,3 @@
|
|||||||
|
|
||||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||||
#undef _POSIX_SOURCE
|
#undef _POSIX_SOURCE
|
||||||
|
|
||||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
||||||
#undef size_t
|
|
||||||
|
2377
binutils/configure
vendored
2377
binutils/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,6 @@ AC_INIT([binutils], BFD_VERSION)
|
|||||||
AC_CONFIG_SRCDIR(ar.c)
|
AC_CONFIG_SRCDIR(ar.c)
|
||||||
|
|
||||||
AC_CANONICAL_TARGET
|
AC_CANONICAL_TARGET
|
||||||
AC_ISC_POSIX
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
@ -162,14 +161,18 @@ esac
|
|||||||
AC_SUBST(DEMANGLER_NAME)
|
AC_SUBST(DEMANGLER_NAME)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF([long])
|
AC_CHECK_SIZEOF([long])
|
||||||
AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
|
AC_CHECK_SIZEOF([long long])
|
||||||
|
|
||||||
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h)
|
# We use headers from include/ that check various HAVE_*_H macros, thus
|
||||||
|
# should ensure they are set by configure. This is true even when C99
|
||||||
|
# guarantees they are available.
|
||||||
|
# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
|
||||||
|
# Besides those, we need to check anything used in binutils/ not in C99.
|
||||||
|
AC_CHECK_HEADERS(fcntl.h inttypes.h stdint.h sys/file.h sys/param.h \
|
||||||
|
sys/stat.h sys/types.h unistd.h)
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
ACX_HEADER_STRING
|
|
||||||
AC_FUNC_ALLOCA
|
|
||||||
AC_FUNC_MMAP
|
AC_FUNC_MMAP
|
||||||
AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
|
AC_CHECK_FUNCS(getc_unlocked sbrk utimes)
|
||||||
AC_CHECK_FUNC([mkstemp],
|
AC_CHECK_FUNC([mkstemp],
|
||||||
AC_DEFINE([HAVE_MKSTEMP], 1,
|
AC_DEFINE([HAVE_MKSTEMP], 1,
|
||||||
[Define to 1 if you have the `mkstemp' function.]))
|
[Define to 1 if you have the `mkstemp' function.]))
|
||||||
@ -190,26 +193,6 @@ AC_SEARCH_LIBS(frexp, m)
|
|||||||
|
|
||||||
AM_LC_MESSAGES
|
AM_LC_MESSAGES
|
||||||
|
|
||||||
AC_MSG_CHECKING(for time_t in time.h)
|
|
||||||
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
|
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
|
|
||||||
bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
|
|
||||||
AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
|
|
||||||
if test $bu_cv_decl_time_t_time_h = yes; then
|
|
||||||
AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
|
|
||||||
[Is the type time_t defined in <time.h>?])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for time_t in sys/types.h)
|
|
||||||
AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
|
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
|
|
||||||
bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
|
|
||||||
AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
|
|
||||||
if test $bu_cv_decl_time_t_types_h = yes; then
|
|
||||||
AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
|
|
||||||
[Is the type time_t defined in <sys/types.h>?])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
||||||
AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
|
AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
||||||
@ -236,8 +219,7 @@ if test $bu_cv_header_utime_h = yes; then
|
|||||||
AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
|
AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_DECLS([asprintf, environ, fprintf, getc_unlocked, getenv,
|
AC_CHECK_DECLS([asprintf, environ, getc_unlocked, sbrk, stpcpy])
|
||||||
sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
|
|
||||||
|
|
||||||
# Link in zlib if we can. This allows us to read compressed debug
|
# Link in zlib if we can. This allows us to read compressed debug
|
||||||
# sections. This is used only by readelf.c (objdump uses bfd for
|
# sections. This is used only by readelf.c (objdump uses bfd for
|
||||||
|
@ -3779,12 +3779,10 @@ main (int ac, char **av)
|
|||||||
program_name = av[0];
|
program_name = av[0];
|
||||||
oav = av;
|
oav = av;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -630,12 +630,10 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
prog_name = argv[0];
|
prog_name = argv[0];
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ target_triplet = @target@
|
|||||||
subdir = doc
|
subdir = doc
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/../bfd/acinclude.m4 \
|
||||||
$(top_srcdir)/../bfd/warning.m4 $(top_srcdir)/../config/acx.m4 \
|
$(top_srcdir)/../bfd/warning.m4 \
|
||||||
$(top_srcdir)/../config/depstand.m4 \
|
$(top_srcdir)/../config/depstand.m4 \
|
||||||
$(top_srcdir)/../config/enable.m4 \
|
$(top_srcdir)/../config/enable.m4 \
|
||||||
$(top_srcdir)/../config/gettext-sister.m4 \
|
$(top_srcdir)/../config/gettext-sister.m4 \
|
||||||
@ -233,7 +233,6 @@ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
|||||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/../mkinstalldirs
|
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/../mkinstalldirs
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
ALLOCA = @ALLOCA@
|
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
|
@ -36,9 +36,7 @@
|
|||||||
#include <elfutils/debuginfod.h>
|
#include <elfutils/debuginfod.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIMITS_H
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#endif
|
|
||||||
#ifndef CHAR_BIT
|
#ifndef CHAR_BIT
|
||||||
#define CHAR_BIT 8
|
#define CHAR_BIT 8
|
||||||
#endif
|
#endif
|
||||||
@ -215,7 +213,7 @@ get_encoded_value (unsigned char **pdata,
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG
|
#if SIZEOF_LONG_LONG > SIZEOF_LONG
|
||||||
# ifndef __MINGW32__
|
# ifndef __MINGW32__
|
||||||
# define DWARF_VMA_FMT "ll"
|
# define DWARF_VMA_FMT "ll"
|
||||||
# define DWARF_VMA_FMT_LONG "%16.16llx"
|
# define DWARF_VMA_FMT_LONG "%16.16llx"
|
||||||
|
@ -959,12 +959,10 @@ main (int argc, char ** argv)
|
|||||||
{
|
{
|
||||||
int c, status;
|
int c, status;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -633,7 +633,6 @@ non_numeric_forward (const void *P_x, const void *P_y)
|
|||||||
if (xn == NULL)
|
if (xn == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#ifdef HAVE_STRCOLL
|
|
||||||
/* Solaris 2.5 has a bug in strcoll.
|
/* Solaris 2.5 has a bug in strcoll.
|
||||||
strcoll returns invalid values when confronted with empty strings. */
|
strcoll returns invalid values when confronted with empty strings. */
|
||||||
if (*yn == '\0')
|
if (*yn == '\0')
|
||||||
@ -642,9 +641,6 @@ non_numeric_forward (const void *P_x, const void *P_y)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return strcoll (xn, yn);
|
return strcoll (xn, yn);
|
||||||
#else
|
|
||||||
return strcmp (xn, yn);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -1788,13 +1784,11 @@ main (int argc, char **argv)
|
|||||||
int c;
|
int c;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
setlocale (LC_COLLATE, "");
|
setlocale (LC_COLLATE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -6016,12 +6016,10 @@ copy_main (int argc, char *argv[])
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -5135,12 +5135,10 @@ main (int argc, char **argv)
|
|||||||
char *target = default_target;
|
char *target = default_target;
|
||||||
bool seenflag = false;
|
bool seenflag = false;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
#if defined (HAVE_LC_MESSAGES)
|
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
@ -44,9 +44,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#ifdef HAVE_WCHAR_H
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __GNUC__ >= 2
|
#if __GNUC__ >= 2
|
||||||
/* Define BFD64 here, even if our default architecture is 32 bit ELF
|
/* Define BFD64 here, even if our default architecture is 32 bit ELF
|
||||||
@ -21748,12 +21746,10 @@ main (int argc, char ** argv)
|
|||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -134,12 +134,10 @@ main (int argc, char **argv)
|
|||||||
int temp;
|
int temp;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -1722,12 +1722,10 @@ main (int ac, char **av)
|
|||||||
char *input_file;
|
char *input_file;
|
||||||
char *output_file;
|
char *output_file;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -149,9 +149,7 @@ main (int argc, char **argv)
|
|||||||
char *s;
|
char *s;
|
||||||
int numeric_opt = 0;
|
int numeric_opt = 0;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
@ -610,61 +608,42 @@ print_strings (const char *filename, FILE *stream, file_ptr address,
|
|||||||
switch (address_radix)
|
switch (address_radix)
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
#ifdef HAVE_LONG_LONG
|
|
||||||
if (sizeof (start) > sizeof (long))
|
if (sizeof (start) > sizeof (long))
|
||||||
{
|
{
|
||||||
# ifndef __MSVCRT__
|
#ifndef __MSVCRT__
|
||||||
printf ("%7llo ", (unsigned long long) start);
|
printf ("%7llo ", (unsigned long long) start);
|
||||||
# else
|
#else
|
||||||
printf ("%7I64o ", (unsigned long long) start);
|
printf ("%7I64o ", (unsigned long long) start);
|
||||||
# endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#elif !BFD_HOST_64BIT_LONG
|
printf ("%7lo ", (unsigned long) start);
|
||||||
if (start != (unsigned long) start)
|
|
||||||
printf ("++%7lo ", (unsigned long) start);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
printf ("%7lo ", (unsigned long) start);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 10:
|
case 10:
|
||||||
#ifdef HAVE_LONG_LONG
|
|
||||||
if (sizeof (start) > sizeof (long))
|
if (sizeof (start) > sizeof (long))
|
||||||
{
|
{
|
||||||
# ifndef __MSVCRT__
|
#ifndef __MSVCRT__
|
||||||
printf ("%7llu ", (unsigned long long) start);
|
printf ("%7llu ", (unsigned long long) start);
|
||||||
# else
|
#else
|
||||||
printf ("%7I64d ", (unsigned long long) start);
|
printf ("%7I64d ", (unsigned long long) start);
|
||||||
# endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#elif !BFD_HOST_64BIT_LONG
|
printf ("%7ld ", (long) start);
|
||||||
if (start != (unsigned long) start)
|
|
||||||
printf ("++%7lu ", (unsigned long) start);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
printf ("%7ld ", (long) start);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
#ifdef HAVE_LONG_LONG
|
|
||||||
if (sizeof (start) > sizeof (long))
|
if (sizeof (start) > sizeof (long))
|
||||||
{
|
{
|
||||||
# ifndef __MSVCRT__
|
#ifndef __MSVCRT__
|
||||||
printf ("%7llx ", (unsigned long long) start);
|
printf ("%7llx ", (unsigned long long) start);
|
||||||
# else
|
#else
|
||||||
printf ("%7I64x ", (unsigned long long) start);
|
printf ("%7I64x ", (unsigned long long) start);
|
||||||
# endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#elif !BFD_HOST_64BIT_LONG
|
printf ("%7lx ", (unsigned long) start);
|
||||||
if (start != (unsigned long) start)
|
|
||||||
printf ("%lx%8.8lx ", (unsigned long) (start >> 32),
|
|
||||||
(unsigned long) (start & 0xffffffff));
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
printf ("%7lx ", (unsigned long) start);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,50 +20,21 @@
|
|||||||
#ifndef _BIN_SYSDEP_H
|
#ifndef _BIN_SYSDEP_H
|
||||||
#define _BIN_SYSDEP_H
|
#define _BIN_SYSDEP_H
|
||||||
|
|
||||||
#include "alloca-conf.h"
|
#include "config.h"
|
||||||
#include "ansidecl.h"
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
#include "bfdver.h"
|
#ifdef HAVE_SYS_STAT_H
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifdef USE_BINARY_FOPEN
|
|
||||||
#include "fopen-bin.h"
|
|
||||||
#else
|
|
||||||
#include "fopen-same.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifndef errno
|
|
||||||
extern int errno;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STRING_WITH_STRINGS
|
|
||||||
#include <string.h>
|
|
||||||
#include <strings.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_STRING_H
|
|
||||||
#include <string.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_STRINGS_H
|
|
||||||
#include <strings.h>
|
|
||||||
#else
|
|
||||||
extern char *strchr ();
|
|
||||||
extern char *strrchr ();
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_STDLIB_H
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#else
|
#else
|
||||||
@ -72,8 +43,13 @@ extern char *strrchr ();
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_STAT_H
|
#include "ansidecl.h"
|
||||||
#include <sys/stat.h>
|
#include "bfdver.h"
|
||||||
|
|
||||||
|
#ifdef USE_BINARY_FOPEN
|
||||||
|
#include "fopen-bin.h"
|
||||||
|
#else
|
||||||
|
#include "fopen-same.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "binary-io.h"
|
#include "binary-io.h"
|
||||||
@ -82,40 +58,16 @@ extern char *strrchr ();
|
|||||||
extern char *stpcpy (char *, const char *);
|
extern char *stpcpy (char *, const char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_DECL_STRSTR
|
|
||||||
extern char *strstr ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SBRK
|
#ifdef HAVE_SBRK
|
||||||
#if !HAVE_DECL_SBRK
|
#if !HAVE_DECL_SBRK
|
||||||
extern char *sbrk ();
|
extern char *sbrk ();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_DECL_GETENV
|
|
||||||
extern char *getenv ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_DECL_ENVIRON
|
#if !HAVE_DECL_ENVIRON
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_DECL_FPRINTF
|
|
||||||
extern int fprintf (FILE *, const char *, ...);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_DECL_SNPRINTF
|
|
||||||
extern int snprintf(char *, size_t, const char *, ...);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_DECL_VSNPRINTF
|
|
||||||
extern int vsnprintf(char *, size_t, const char *, va_list);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_DECL_STRNLEN
|
|
||||||
size_t strnlen (const char *, size_t);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef O_RDONLY
|
#ifndef O_RDONLY
|
||||||
#define O_RDONLY 0
|
#define O_RDONLY 0
|
||||||
#endif
|
#endif
|
||||||
@ -134,18 +86,16 @@ size_t strnlen (const char *, size_t);
|
|||||||
#define SEEK_END 2
|
#define SEEK_END 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifndef ENABLE_NLS
|
||||||
# ifndef ENABLE_NLS
|
/* The Solaris version of locale.h always includes libintl.h. If we have
|
||||||
/* The Solaris version of locale.h always includes libintl.h. If we have
|
been configured with --disable-nls then ENABLE_NLS will not be defined
|
||||||
been configured with --disable-nls then ENABLE_NLS will not be defined
|
and the dummy definitions of bindtextdomain (et al) below will conflict
|
||||||
and the dummy definitions of bindtextdomain (et al) below will conflict
|
with the defintions in libintl.h. So we define these values to prevent
|
||||||
with the defintions in libintl.h. So we define these values to prevent
|
the bogus inclusion of libintl.h. */
|
||||||
the bogus inclusion of libintl.h. */
|
# define _LIBINTL_H
|
||||||
# define _LIBINTL_H
|
# define _LIBGETTEXT_H
|
||||||
# define _LIBGETTEXT_H
|
|
||||||
# endif
|
|
||||||
# include <locale.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
@ -175,9 +125,7 @@ size_t strnlen (const char *, size_t);
|
|||||||
#define BUFSIZE 8192
|
#define BUFSIZE 8192
|
||||||
|
|
||||||
/* For PATH_MAX. */
|
/* For PATH_MAX. */
|
||||||
#ifdef HAVE_LIMITS_H
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
/* For MAXPATHLEN. */
|
/* For MAXPATHLEN. */
|
||||||
@ -193,7 +141,7 @@ size_t strnlen (const char *, size_t);
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG
|
#if SIZEOF_LONG_LONG > SIZEOF_LONG
|
||||||
/* We can't use any bfd types here since readelf may define BFD64 and
|
/* We can't use any bfd types here since readelf may define BFD64 and
|
||||||
objdump may not. */
|
objdump may not. */
|
||||||
#define HOST_WIDEST_INT long long
|
#define HOST_WIDEST_INT long long
|
||||||
|
@ -659,12 +659,10 @@ main (int ac, char **av)
|
|||||||
{NULL, no_argument, 0, 0}
|
{NULL, no_argument, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -22,14 +22,7 @@
|
|||||||
|
|
||||||
/* Note: config.h is #included via syslex_wrap.c. */
|
/* Note: config.h is #included via syslex_wrap.c. */
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#else
|
|
||||||
#ifdef HAVE_STRINGS_H
|
|
||||||
#include <strings.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "sysinfo.h"
|
#include "sysinfo.h"
|
||||||
|
|
||||||
#ifndef YY_NO_UNPUT
|
#ifndef YY_NO_UNPUT
|
||||||
|
@ -941,12 +941,10 @@ main (int argc, char **argv)
|
|||||||
char *target, *input_filename;
|
char *target, *input_filename;
|
||||||
int verbose;
|
int verbose;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@ -823,12 +823,10 @@ main (int argc, char **argv)
|
|||||||
rc_res_directory *resources;
|
rc_res_directory *resources;
|
||||||
int use_temp_file;
|
int use_temp_file;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
#endif
|
#endif
|
||||||
#if defined (HAVE_SETLOCALE)
|
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
#endif
|
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user