aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-10 22:21:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-10 22:21:31 +0000
commit8bc7f13859ce8eec0e30e27d7dc854a1fef0c04a (patch)
tree254231ffcc7d9010b3dcf58542de732dbf3134bf /bfd/configure
parent092d84761e7d020e4ff3a9eeea83cc5e90c2ff36 (diff)
downloadgdb-8bc7f13859ce8eec0e30e27d7dc854a1fef0c04a.zip
gdb-8bc7f13859ce8eec0e30e27d7dc854a1fef0c04a.tar.gz
gdb-8bc7f13859ce8eec0e30e27d7dc854a1fef0c04a.tar.bz2
Support 32bit core note sections on Linux/x86-64.
2010-04-10 H.J. Lu <hongjiu.lu@intel.com> PR corefiles/11467 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h for x86_64-*-linux*. * config.in: Regenerated. * configure: Likewise. * elf.c: Include CORE_HEADER if it is defined. 2010-04-10 H.J. Lu <hongjiu.lu@intel.com> Jan Kratochvil <jan.kratochvil@redhat.com> * hosts/x86-64linux.h: New.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-xbfd/configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/configure b/bfd/configure
index f4aba27..928f984 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13810,6 +13810,7 @@ fi
# If we are configured native, pick a core file support file.
COREFILE=
COREFLAG=
+CORE_HEADER=
TRAD_HEADER=
if test "${target}" = "${host}"; then
case "${host}" in
@@ -14034,6 +14035,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxbsd.h"'
;;
+ x86_64-*-linux*)
+ CORE_HEADER='"hosts/x86-64linux.h"'
+ ;;
x86_64-*-netbsd* | x86_64-*-openbsd*)
COREFILE=netbsd-core.lo
;;
@@ -14701,6 +14705,13 @@ $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
fi
+if test -n "$CORE_HEADER"; then
+
+cat >>confdefs.h <<_ACEOF
+#define CORE_HEADER $CORE_HEADER
+_ACEOF
+
+fi
if test -n "$TRAD_HEADER"; then
cat >>confdefs.h <<_ACEOF