Add support for building on a 64-bit Windows host.
This commit is contained in:
parent
db42c6e8ee
commit
d2df793a71
20 changed files with 575 additions and 50 deletions
|
@ -1,3 +1,24 @@
|
|||
2007-07-12 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
|
||||
(BFD_HOSTPTR_T): Host pointer type for casting a
|
||||
pointer to an integer type.
|
||||
(bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
|
||||
(sprintf_vma, fprintf_vma): Add support for long long prints.
|
||||
* bfd-in2.h: Regenerate.
|
||||
* configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
|
||||
(BFD_HOSTPTR_T): Host pointer type for casting a
|
||||
pointer to an integer type. Default is "unsigned long".
|
||||
(AC_CHECK_SIZEOF(void *)): New.
|
||||
(host64): Set it if the pointer size is 8.
|
||||
* configure: Regenerate.
|
||||
* config.in: Add macro SIZEOF_VOID_P.
|
||||
* coffcode.h: Replace host ptr type assuming "long" with
|
||||
bfd_hostptr_t type.
|
||||
* coffgen.c: Likewise.
|
||||
* elf-eh-frame.c: Likewise.
|
||||
* peicode.h: Likewise.
|
||||
|
||||
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* Makefile.in: Regenerated.
|
||||
|
|
|
@ -76,6 +76,7 @@ extern "C" {
|
|||
#define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@
|
||||
|
||||
#define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@
|
||||
#define BFD_HOST_64BIT_LONG_LONG @BFD_HOST_64BIT_LONG_LONG@
|
||||
#define BFD_HOST_LONG_LONG @BFD_HOST_LONG_LONG@
|
||||
#if @BFD_HOST_64_BIT_DEFINED@
|
||||
#define BFD_HOST_64_BIT @BFD_HOST_64_BIT@
|
||||
|
@ -96,6 +97,10 @@ typedef BFD_HOST_U_64_BIT bfd_uint64_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* Declaring a type wide enough to hold a host long and a host pointer. */
|
||||
#define BFD_HOSTPTR_T @BFD_HOSTPTR_T@
|
||||
typedef BFD_HOSTPTR_T bfd_hostptr_t;
|
||||
|
||||
/* Forward declaration. */
|
||||
typedef struct bfd bfd;
|
||||
|
||||
|
@ -129,6 +134,9 @@ typedef BFD_HOST_U_64_BIT symvalue;
|
|||
#if BFD_HOST_64BIT_LONG
|
||||
#define sprintf_vma(s,x) sprintf (s, "%016lx", x)
|
||||
#define fprintf_vma(f,x) fprintf (f, "%016lx", x)
|
||||
#elif BFD_HOST_64BIT_LONG_LONG
|
||||
#define sprintf_vma(s,x) sprintf (s, "%016llx", x)
|
||||
#define fprintf_vma(f,x) fprintf (f, "%016llx", x)
|
||||
#else
|
||||
#define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))
|
||||
#define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
|
||||
|
|
|
@ -83,6 +83,7 @@ extern "C" {
|
|||
#define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@
|
||||
|
||||
#define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@
|
||||
#define BFD_HOST_64BIT_LONG_LONG @BFD_HOST_64BIT_LONG_LONG@
|
||||
#define BFD_HOST_LONG_LONG @BFD_HOST_LONG_LONG@
|
||||
#if @BFD_HOST_64_BIT_DEFINED@
|
||||
#define BFD_HOST_64_BIT @BFD_HOST_64_BIT@
|
||||
|
@ -103,6 +104,10 @@ typedef BFD_HOST_U_64_BIT bfd_uint64_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* Declaring a type wide enough to hold a host long and a host pointer. */
|
||||
#define BFD_HOSTPTR_T @BFD_HOSTPTR_T@
|
||||
typedef BFD_HOSTPTR_T bfd_hostptr_t;
|
||||
|
||||
/* Forward declaration. */
|
||||
typedef struct bfd bfd;
|
||||
|
||||
|
@ -136,6 +141,9 @@ typedef BFD_HOST_U_64_BIT symvalue;
|
|||
#if BFD_HOST_64BIT_LONG
|
||||
#define sprintf_vma(s,x) sprintf (s, "%016lx", x)
|
||||
#define fprintf_vma(f,x) fprintf (f, "%016lx", x)
|
||||
#elif BFD_HOST_64BIT_LONG_LONG
|
||||
#define sprintf_vma(s,x) sprintf (s, "%016llx", x)
|
||||
#define fprintf_vma(f,x) fprintf (f, "%016llx", x)
|
||||
#else
|
||||
#define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))
|
||||
#define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
|
||||
|
|
|
@ -4381,7 +4381,7 @@ coff_slurp_symbol_table (bfd * abfd)
|
|||
|
||||
dst->symbol.name = (char *) (src->u.syment._n._n_n._n_offset);
|
||||
/* We use the native name field to point to the cached field. */
|
||||
src->u.syment._n._n_n._n_zeroes = (long) dst;
|
||||
src->u.syment._n._n_n._n_zeroes = (bfd_hostptr_t) dst;
|
||||
dst->symbol.section = coff_section_from_bfd_index (abfd,
|
||||
src->u.syment.n_scnum);
|
||||
dst->symbol.flags = 0;
|
||||
|
|
|
@ -726,8 +726,8 @@ coff_mangle_symbols (bfd *bfd_ptr)
|
|||
{
|
||||
/* FIXME: We should use a union here. */
|
||||
s->u.syment.n_value =
|
||||
(bfd_vma)((combined_entry_type *)
|
||||
((unsigned long) s->u.syment.n_value))->offset;
|
||||
(bfd_hostptr_t) ((combined_entry_type *)
|
||||
((bfd_hostptr_t) s->u.syment.n_value))->offset;
|
||||
s->fix_value = 0;
|
||||
}
|
||||
if (s->fix_line)
|
||||
|
@ -1641,7 +1641,7 @@ coff_get_normalized_symtab (bfd *abfd)
|
|||
}
|
||||
|
||||
internal_ptr->u.syment._n._n_n._n_offset =
|
||||
((long)
|
||||
((bfd_hostptr_t)
|
||||
(string_table
|
||||
+ (internal_ptr + 1)->u.auxent.x_file.x_n.x_offset));
|
||||
}
|
||||
|
@ -1653,13 +1653,13 @@ coff_get_normalized_symtab (bfd *abfd)
|
|||
if (internal_ptr->u.syment.n_numaux > 1
|
||||
&& coff_data (abfd)->pe)
|
||||
internal_ptr->u.syment._n._n_n._n_offset =
|
||||
((long)
|
||||
((bfd_hostptr_t)
|
||||
copy_name (abfd,
|
||||
(internal_ptr + 1)->u.auxent.x_file.x_fname,
|
||||
internal_ptr->u.syment.n_numaux * symesz));
|
||||
else
|
||||
internal_ptr->u.syment._n._n_n._n_offset =
|
||||
((long)
|
||||
((bfd_hostptr_t)
|
||||
copy_name (abfd,
|
||||
(internal_ptr + 1)->u.auxent.x_file.x_fname,
|
||||
(size_t) bfd_coff_filnmlen (abfd)));
|
||||
|
@ -1683,11 +1683,11 @@ coff_get_normalized_symtab (bfd *abfd)
|
|||
if (newstring == NULL)
|
||||
return NULL;
|
||||
strncpy (newstring, internal_ptr->u.syment._n._n_name, i);
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (long int) newstring;
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t) newstring;
|
||||
internal_ptr->u.syment._n._n_n._n_zeroes = 0;
|
||||
}
|
||||
else if (internal_ptr->u.syment._n._n_n._n_offset == 0)
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (long int) "";
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (bfd_vma) "";
|
||||
else if (!bfd_coff_symname_in_debug (abfd, &internal_ptr->u.syment))
|
||||
{
|
||||
/* Long name already. Point symbol at the string in the
|
||||
|
@ -1699,7 +1699,7 @@ coff_get_normalized_symtab (bfd *abfd)
|
|||
return NULL;
|
||||
}
|
||||
internal_ptr->u.syment._n._n_n._n_offset =
|
||||
((long int)
|
||||
((bfd_hostptr_t)
|
||||
(string_table
|
||||
+ internal_ptr->u.syment._n._n_n._n_offset));
|
||||
}
|
||||
|
@ -1708,7 +1708,7 @@ coff_get_normalized_symtab (bfd *abfd)
|
|||
/* Long name in debug section. Very similar. */
|
||||
if (debug_section == NULL)
|
||||
debug_section = build_debug_section (abfd);
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (long int)
|
||||
internal_ptr->u.syment._n._n_n._n_offset = (bfd_hostptr_t)
|
||||
(debug_section + internal_ptr->u.syment._n._n_n._n_offset);
|
||||
}
|
||||
}
|
||||
|
@ -1785,7 +1785,7 @@ coff_get_symbol_info (bfd *abfd, asymbol *symbol, symbol_info *ret)
|
|||
if (coffsymbol (symbol)->native != NULL
|
||||
&& coffsymbol (symbol)->native->fix_value)
|
||||
ret->value = coffsymbol (symbol)->native->u.syment.n_value -
|
||||
(unsigned long) obj_raw_syments (abfd);
|
||||
(bfd_hostptr_t) obj_raw_syments (abfd);
|
||||
}
|
||||
|
||||
/* Return the COFF syment for a symbol. */
|
||||
|
@ -1808,7 +1808,7 @@ bfd_coff_get_syment (bfd *abfd,
|
|||
|
||||
if (csym->native->fix_value)
|
||||
psyment->n_value = psyment->n_value -
|
||||
(unsigned long) obj_raw_syments (abfd);
|
||||
(bfd_hostptr_t) obj_raw_syments (abfd);
|
||||
|
||||
/* FIXME: We should handle fix_line here. */
|
||||
|
||||
|
@ -1894,7 +1894,7 @@ coff_print_symbol (bfd *abfd,
|
|||
if (! combined->fix_value)
|
||||
val = (bfd_vma) combined->u.syment.n_value;
|
||||
else
|
||||
val = combined->u.syment.n_value - (unsigned long) root;
|
||||
val = combined->u.syment.n_value - (bfd_hostptr_t) root;
|
||||
|
||||
fprintf (file, "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d) 0x",
|
||||
combined->u.syment.n_scnum,
|
||||
|
|
|
@ -264,6 +264,9 @@
|
|||
/* The size of a `void *', as computed by sizeof. */
|
||||
#undef SIZEOF_VOID_P
|
||||
|
||||
/* The sizeof of a 'void *', as computed by sizeof. */
|
||||
#undef SIZEOF_VOID_P
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
|
|
434
bfd/configure
vendored
434
bfd/configure
vendored
|
@ -458,7 +458,7 @@ ac_includes_default="\
|
|||
# include <unistd.h>
|
||||
#endif"
|
||||
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
|
||||
ac_subst_files=''
|
||||
|
||||
# Initialize some variables set by options.
|
||||
|
@ -11191,10 +11191,12 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|||
|
||||
|
||||
BFD_HOST_64BIT_LONG=0
|
||||
BFD_HOST_64BIT_LONG_LONG=0
|
||||
BFD_HOST_LONG_LONG=0
|
||||
BFD_HOST_64_BIT_DEFINED=0
|
||||
BFD_HOST_64_BIT=
|
||||
BFD_HOST_U_64_BIT=
|
||||
BFD_HOSTPTR_T="unsigned long"
|
||||
|
||||
echo "$as_me:$LINENO: checking for long long" >&5
|
||||
echo $ECHO_N "checking for long long... $ECHO_C" >&6
|
||||
|
@ -11668,6 +11670,420 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
echo "$as_me:$LINENO: checking for void *" >&5
|
||||
echo $ECHO_N "checking for void *... $ECHO_C" >&6
|
||||
if test "${ac_cv_type_void_p+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
if ((void * *) 0)
|
||||
return 0;
|
||||
if (sizeof (void *))
|
||||
return 0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_type_void_p=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_cv_type_void_p=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
|
||||
echo "${ECHO_T}$ac_cv_type_void_p" >&6
|
||||
|
||||
echo "$as_me:$LINENO: checking size of void *" >&5
|
||||
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
|
||||
if test "${ac_cv_sizeof_void_p+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
if test "$ac_cv_type_void_p" = yes; then
|
||||
# The cast to unsigned long works around a bug in the HP C Compiler
|
||||
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
||||
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
||||
# This bug is HP SR number 8606223364.
|
||||
if test "$cross_compiling" = yes; then
|
||||
# Depending upon the size, compute the lo and hi bounds.
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
|
||||
test_array [0] = 0
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_lo=0 ac_mid=0
|
||||
while :; do
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
||||
test_array [0] = 0
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_hi=$ac_mid; break
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_lo=`expr $ac_mid + 1`
|
||||
if test $ac_lo -le $ac_mid; then
|
||||
ac_lo= ac_hi=
|
||||
break
|
||||
fi
|
||||
ac_mid=`expr 2 '*' $ac_mid + 1`
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
done
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
|
||||
test_array [0] = 0
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_hi=-1 ac_mid=-1
|
||||
while :; do
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
|
||||
test_array [0] = 0
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_lo=$ac_mid; break
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_hi=`expr '(' $ac_mid ')' - 1`
|
||||
if test $ac_mid -le $ac_hi; then
|
||||
ac_lo= ac_hi=
|
||||
break
|
||||
fi
|
||||
ac_mid=`expr 2 '*' $ac_mid`
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
done
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_lo= ac_hi=
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
# Binary search between lo and hi bounds.
|
||||
while test "x$ac_lo" != "x$ac_hi"; do
|
||||
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
||||
test_array [0] = 0
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_hi=$ac_mid
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_lo=`expr '(' $ac_mid ')' + 1`
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
done
|
||||
case $ac_lo in
|
||||
?*) ac_cv_sizeof_void_p=$ac_lo;;
|
||||
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
||||
See \`config.log' for more details." >&5
|
||||
echo "$as_me: error: cannot compute sizeof (void *), 77
|
||||
See \`config.log' for more details." >&2;}
|
||||
{ (exit 1); exit 1; }; } ;;
|
||||
esac
|
||||
else
|
||||
if test "$cross_compiling" = yes; then
|
||||
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
||||
See \`config.log' for more details." >&5
|
||||
echo "$as_me: error: cannot run test program while cross compiling
|
||||
See \`config.log' for more details." >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
$ac_includes_default
|
||||
long longval () { return (long) (sizeof (void *)); }
|
||||
unsigned long ulongval () { return (long) (sizeof (void *)); }
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
FILE *f = fopen ("conftest.val", "w");
|
||||
if (! f)
|
||||
exit (1);
|
||||
if (((long) (sizeof (void *))) < 0)
|
||||
{
|
||||
long i = longval ();
|
||||
if (i != ((long) (sizeof (void *))))
|
||||
exit (1);
|
||||
fprintf (f, "%ld\n", i);
|
||||
}
|
||||
else
|
||||
{
|
||||
unsigned long i = ulongval ();
|
||||
if (i != ((long) (sizeof (void *))))
|
||||
exit (1);
|
||||
fprintf (f, "%lu\n", i);
|
||||
}
|
||||
exit (ferror (f) || fclose (f) != 0);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest$ac_exeext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
(eval $ac_link) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_sizeof_void_p=`cat conftest.val`
|
||||
else
|
||||
echo "$as_me: program exited with status $ac_status" >&5
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
( exit $ac_status )
|
||||
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
||||
See \`config.log' for more details." >&5
|
||||
echo "$as_me: error: cannot compute sizeof (void *), 77
|
||||
See \`config.log' for more details." >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
fi
|
||||
rm -f conftest.val
|
||||
else
|
||||
ac_cv_sizeof_void_p=0
|
||||
fi
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
|
||||
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
||||
_ACEOF
|
||||
|
||||
|
||||
echo "$as_me:$LINENO: checking for long" >&5
|
||||
echo $ECHO_N "checking for long... $ECHO_C" >&6
|
||||
if test "${ac_cv_type_long+set}" = set; then
|
||||
|
@ -12082,11 +12498,19 @@ cat >>confdefs.h <<_ACEOF
|
|||
_ACEOF
|
||||
|
||||
|
||||
if test "x${ac_cv_sizeof_long}" = "x8"; then
|
||||
|
||||
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
||||
host64=true
|
||||
if test "x${ac_cv_sizeof_long}" = "x8"; then
|
||||
BFD_HOST_64BIT_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
||||
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
||||
BFD_HOST_64BIT_LONG_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
||||
BFD_HOSTPTR_T="unsigned long long"
|
||||
fi
|
||||
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
||||
|
@ -12104,6 +12528,8 @@ fi
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
||||
if test -z "$CC_FOR_BUILD"; then
|
||||
if test "x$cross_compiling" = "xno"; then
|
||||
|
@ -21121,10 +21547,12 @@ s,@MSGFMT@,$MSGFMT,;t t
|
|||
s,@MSGMERGE@,$MSGMERGE,;t t
|
||||
s,@HDEFINES@,$HDEFINES,;t t
|
||||
s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
|
||||
s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
|
||||
s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
|
||||
s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
|
||||
s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
|
||||
s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
|
||||
s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
|
||||
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
|
||||
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
|
||||
s,@COREFILE@,$COREFILE,;t t
|
||||
|
@ -21856,7 +22284,7 @@ done
|
|||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
|
|
|
@ -107,10 +107,12 @@ AC_SUBST(HDEFINES)
|
|||
AC_PROG_INSTALL
|
||||
|
||||
BFD_HOST_64BIT_LONG=0
|
||||
BFD_HOST_64BIT_LONG_LONG=0
|
||||
BFD_HOST_LONG_LONG=0
|
||||
BFD_HOST_64_BIT_DEFINED=0
|
||||
BFD_HOST_64_BIT=
|
||||
BFD_HOST_U_64_BIT=
|
||||
BFD_HOSTPTR_T="unsigned long"
|
||||
|
||||
AC_MSG_CHECKING([for long long])
|
||||
AC_CACHE_VAL(bfd_cv_has_long_long,
|
||||
|
@ -121,12 +123,21 @@ if test $bfd_cv_has_long_long = yes; then
|
|||
AC_CHECK_SIZEOF(long long)
|
||||
fi
|
||||
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
if test "x${ac_cv_sizeof_long}" = "x8"; then
|
||||
|
||||
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
||||
host64=true
|
||||
if test "x${ac_cv_sizeof_long}" = "x8"; then
|
||||
BFD_HOST_64BIT_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
||||
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
||||
BFD_HOST_64BIT_LONG_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
||||
BFD_HOSTPTR_T="unsigned long long"
|
||||
fi
|
||||
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
||||
|
@ -139,10 +150,12 @@ if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
|
|||
fi
|
||||
|
||||
AC_SUBST(BFD_HOST_64BIT_LONG)
|
||||
AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
|
||||
AC_SUBST(BFD_HOST_LONG_LONG)
|
||||
AC_SUBST(BFD_HOST_64_BIT_DEFINED)
|
||||
AC_SUBST(BFD_HOST_64_BIT)
|
||||
AC_SUBST(BFD_HOST_U_64_BIT)
|
||||
AC_SUBST(BFD_HOSTPTR_T)
|
||||
|
||||
BFD_CC_FOR_BUILD
|
||||
|
||||
|
|
|
@ -953,7 +953,7 @@ _bfd_elf_discard_section_eh_frame
|
|||
{
|
||||
if (!ent->cie)
|
||||
{
|
||||
ecie = ecies + (unsigned long) ent->cie_inf;
|
||||
ecie = ecies + (bfd_hostptr_t) ent->cie_inf;
|
||||
ent->cie_inf = ecie->cie.cie_inf;
|
||||
}
|
||||
ent->new_offset = offset;
|
||||
|
|
|
@ -567,7 +567,7 @@ pe_ILF_make_a_symbol (pe_ILF_vars * vars,
|
|||
/* Initialise the internal symbol structure. */
|
||||
ent->u.syment.n_sclass = sclass;
|
||||
ent->u.syment.n_scnum = section->target_index;
|
||||
ent->u.syment._n._n_n._n_offset = (long) sym;
|
||||
ent->u.syment._n._n_n._n_offset = (bfd_hostptr_t) sym;
|
||||
|
||||
sym->symbol.the_bfd = vars->abfd;
|
||||
sym->symbol.name = vars->string_ptr;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2007-07-12 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* symbols.c: Print bfd_hostptr_t to file via fprintf_vma.
|
||||
* write.c: Likewise.
|
||||
|
||||
2007-07-11 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* config/tc-mips.c (mips_dwarf2_format, mips_dwarf2_addr_size): Use
|
||||
|
|
|
@ -2728,14 +2728,20 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
|
|||
const char *name = S_GET_NAME (sym);
|
||||
if (!name || !name[0])
|
||||
name = "(unnamed)";
|
||||
fprintf (file, "sym %lx %s", (unsigned long) sym, name);
|
||||
fprintf (file, "sym ");
|
||||
fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) sym));
|
||||
fprintf (file, " %s", name);
|
||||
|
||||
if (LOCAL_SYMBOL_CHECK (sym))
|
||||
{
|
||||
struct local_symbol *locsym = (struct local_symbol *) sym;
|
||||
if (local_symbol_get_frag (locsym) != &zero_address_frag
|
||||
|
||||
if (local_symbol_get_frag (locsym) != & zero_address_frag
|
||||
&& local_symbol_get_frag (locsym) != NULL)
|
||||
fprintf (file, " frag %lx", (long) local_symbol_get_frag (locsym));
|
||||
{
|
||||
fprintf (file, " frag ");
|
||||
fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) local_symbol_get_frag (locsym)));
|
||||
}
|
||||
if (local_symbol_resolved_p (locsym))
|
||||
fprintf (file, " resolved");
|
||||
fprintf (file, " local");
|
||||
|
@ -2743,7 +2749,10 @@ print_symbol_value_1 (FILE *file, symbolS *sym)
|
|||
else
|
||||
{
|
||||
if (sym->sy_frag != &zero_address_frag)
|
||||
fprintf (file, " frag %lx", (long) sym->sy_frag);
|
||||
{
|
||||
fprintf (file, " frag ");
|
||||
fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) sym->sy_frag));
|
||||
}
|
||||
if (sym->written)
|
||||
fprintf (file, " written");
|
||||
if (sym->sy_resolved)
|
||||
|
@ -2817,7 +2826,9 @@ print_binary (FILE *file, const char *name, expressionS *exp)
|
|||
void
|
||||
print_expr_1 (FILE *file, expressionS *exp)
|
||||
{
|
||||
fprintf (file, "expr %lx ", (long) exp);
|
||||
fprintf (file, "expr ");
|
||||
fprintf_vma (file, (bfd_vma) ((bfd_hostptr_t) exp));
|
||||
fprintf (file, " ");
|
||||
switch (exp->X_op)
|
||||
{
|
||||
case O_illegal:
|
||||
|
|
10
gas/write.c
10
gas/write.c
|
@ -2486,7 +2486,9 @@ void
|
|||
print_fixup (fixS *fixp)
|
||||
{
|
||||
indent_level = 1;
|
||||
fprintf (stderr, "fix %lx %s:%d", (long) fixp, fixp->fx_file, fixp->fx_line);
|
||||
fprintf (stderr, "fix ");
|
||||
fprintf_vma (stderr, (bfd_vma)((bfd_hostptr_t) fixp));
|
||||
fprintf (stderr, " %s:%d",fixp->fx_file, fixp->fx_line);
|
||||
if (fixp->fx_pcrel)
|
||||
fprintf (stderr, " pcrel");
|
||||
if (fixp->fx_pcrel_adjust)
|
||||
|
@ -2503,8 +2505,10 @@ print_fixup (fixS *fixp)
|
|||
fprintf (stderr, " tcbit");
|
||||
if (fixp->fx_done)
|
||||
fprintf (stderr, " done");
|
||||
fprintf (stderr, "\n size=%d frag=%lx where=%ld offset=%lx addnumber=%lx",
|
||||
fixp->fx_size, (long) fixp->fx_frag, (long) fixp->fx_where,
|
||||
fprintf (stderr, "\n size=%d frag=", fixp->fx_size);
|
||||
fprintf_vma (stderr, (bfd_vma) ((bfd_hostptr_t) fixp->fx_frag));
|
||||
fprintf (stderr, " where=%ld offset=%lx addnumber=%lx",
|
||||
(long) fixp->fx_where,
|
||||
(long) fixp->fx_offset, (long) fixp->fx_addnumber);
|
||||
fprintf (stderr, "\n %s (%d)", bfd_get_reloc_code_name (fixp->fx_r_type),
|
||||
fixp->fx_r_type);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2007-07-12 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* cg_print.c: Force cast of sizeof to be a long.
|
||||
* hist.c: Likewise.
|
||||
|
||||
2007-07-06 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* basic_blocks.c: Update copyright notice to refer to GPLv3.
|
||||
|
|
|
@ -76,7 +76,7 @@ print_header ()
|
|||
}
|
||||
|
||||
printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
|
||||
(long) hist_scale * sizeof (UNIT));
|
||||
(long) hist_scale * (long) sizeof (UNIT));
|
||||
|
||||
if (print_time > 0.0)
|
||||
printf (_(" for %.2f%% of %.2f seconds\n\n"),
|
||||
|
|
|
@ -464,7 +464,7 @@ print_header (int prefix)
|
|||
if (bsd_style_output)
|
||||
{
|
||||
printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
|
||||
(long) hist_scale * sizeof (UNIT));
|
||||
(long) hist_scale * (long) sizeof (UNIT));
|
||||
if (total_time > 0.0)
|
||||
{
|
||||
printf (_(" for %.2f%% of %.2f %s\n\n"),
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2007-07-12 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* splay-tree.h (libi_uhostptr_t, libi_shostptr_t): New types,
|
||||
needed for WIN64 when a long is not wide enough for a pointer.
|
||||
(splay_tree_key, splay_tree_value): Use the new types.
|
||||
|
||||
2007-07-09 Roland McGrath <roland@redhat.com>
|
||||
|
||||
* bfdlink.h (struct bfd_link_info): Add member emit_note_gnu_build_id.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2007-07-12 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* internal.h (struct internal_syment): Use bfd_hostptr_t for
|
||||
_n_zeroes and _n_offset fields.
|
||||
|
||||
2007-04-27 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* rs6000.h: Write Mimi's name in ASCII.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Internal format of COFF object file data structures, for GNU BFD.
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
Copyright 1999, 2000, 2001, 2002, 2003, 2004. 2005, 2006
|
||||
Copyright 1999, 2000, 2001, 2002, 2003, 2004. 2005, 2006, 2007
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -416,15 +416,15 @@ struct internal_syment
|
|||
{
|
||||
union
|
||||
{
|
||||
char _n_name[SYMNMLEN]; /* old COFF version */
|
||||
char _n_name[SYMNMLEN]; /* old COFF version */
|
||||
struct
|
||||
{
|
||||
long _n_zeroes; /* new == 0 */
|
||||
long _n_offset; /* offset into string table */
|
||||
bfd_hostptr_t _n_zeroes; /* new == 0 */
|
||||
bfd_hostptr_t _n_offset; /* offset into string table */
|
||||
} _n_n;
|
||||
char *_n_nptr[2]; /* allows for overlaying */
|
||||
} _n;
|
||||
bfd_vma n_value; /* value of symbol */
|
||||
bfd_vma n_value; /* value of symbol */
|
||||
short n_scnum; /* section number */
|
||||
unsigned short n_flags; /* copy of flags from filhdr */
|
||||
unsigned short n_type; /* type and derived type */
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
/* A splay-tree datatype.
|
||||
Copyright 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
Copyright 1998, 1999, 2000, 2002, 2007 Free Software Foundation, Inc.
|
||||
Contributed by Mark Mitchell (mark@markmitchell.com).
|
||||
|
||||
This file is part of GCC.
|
||||
This file is part of GCC.
|
||||
|
||||
GCC is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
GCC is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GCC is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
GCC is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GCC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GCC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* For an easily readable description of splay-trees, see:
|
||||
|
||||
|
@ -36,6 +36,14 @@ extern "C" {
|
|||
|
||||
#include "ansidecl.h"
|
||||
|
||||
#ifndef _WIN64
|
||||
typedef unsigned long int libi_uhostptr_t;
|
||||
typedef long int libi_shostptr_t;
|
||||
#else
|
||||
typedef unsigned long long libi_uhostptr_t;
|
||||
typedef long long libi_shostptr_t;
|
||||
#endif
|
||||
|
||||
#ifndef GTY
|
||||
#define GTY(X)
|
||||
#endif
|
||||
|
@ -44,8 +52,8 @@ extern "C" {
|
|||
these types, if necessary. These types should be sufficiently wide
|
||||
that any pointer or scalar can be cast to these types, and then
|
||||
cast back, without loss of precision. */
|
||||
typedef unsigned long int splay_tree_key;
|
||||
typedef unsigned long int splay_tree_value;
|
||||
typedef libi_uhostptr_t splay_tree_key;
|
||||
typedef libi_uhostptr_t splay_tree_value;
|
||||
|
||||
/* Forward declaration for a node in the tree. */
|
||||
typedef struct splay_tree_node_s *splay_tree_node;
|
||||
|
|
Loading…
Reference in a new issue