aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-05-08 07:33:42 +0000
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>2015-05-08 09:33:42 +0200
commit2a0e43c247254ddc5e8d670f641e301f6bb07959 (patch)
tree527b367bbe037899fba4ed7cb1c0612d4d55f8d3
parent90f11cf950130d1aa6030a3c0df2e400ca14df7b (diff)
downloadgcc-2a0e43c247254ddc5e8d670f641e301f6bb07959.zip
gcc-2a0e43c247254ddc5e8d670f641e301f6bb07959.tar.gz
gcc-2a0e43c247254ddc5e8d670f641e301f6bb07959.tar.bz2
PR target/48904 x86_64-knetbsd-gnu missing defs
2015-05-08 H.J. Lu <hongjiu.lu@intel.com> Bernhard Reutner-Fischer <aldot@gcc.gnu.org> PR target/48904 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h. * config/i386/knetbsd-gnu64.h: New file. Co-Authored-By: Bernhard Reutner-Fischer <aldot@gcc.gnu.org> From-SVN: r222903
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config.gcc2
-rw-r--r--gcc/config/i386/knetbsd-gnu64.h27
3 files changed, 35 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d38918d..fa41b29 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
+ Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ PR target/48904
+ * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
+ * config/i386/knetbsd-gnu64.h: New file.
+
2015-05-08 Marek Polacek <polacek@redhat.com>
PR c/64918
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 243e899..938d619 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1524,7 +1524,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h"
;;
x86_64-*-knetbsd*-gnu)
- tm_file="${tm_file} knetbsd-gnu.h"
+ tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu64.h"
;;
esac
tmake_file="${tmake_file} i386/t-linux64"
diff --git a/gcc/config/i386/knetbsd-gnu64.h b/gcc/config/i386/knetbsd-gnu64.h
new file mode 100644
index 0000000..d621bbe
--- /dev/null
+++ b/gcc/config/i386/knetbsd-gnu64.h
@@ -0,0 +1,27 @@
+/* Definitions for AMD x86-64 running kNetBSD-based GNU systems with ELF format
+ Copyright (C) 2012
+ Free Software Foundation, Inc.
+
+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 3, 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.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#define GNU_USER_LINK_EMULATION32 "elf_i386"
+#define GNU_USER_LINK_EMULATION64 "elf_x86_64"
+#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
+
+#define GNU_USER_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GNU_USER_DYNAMIC_LINKER64 "/lib/ld-knetbsd-x86-64.so.1"
+#define GNU_USER_DYNAMIC_LINKERX32 "/lib/ld-knetbsd-x32.so.1"