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

r1089 - trunk/glibc-2.3-head



Author: ps-guest
Date: 2006-01-22 08:17:00 +0000 (Sun, 22 Jan 2006)
New Revision: 1089

Modified:
   trunk/glibc-2.3-head/AMD64
Log:
notes for amd64


Modified: trunk/glibc-2.3-head/AMD64
===================================================================
--- trunk/glibc-2.3-head/AMD64	2006-01-21 17:11:12 UTC (rev 1088)
+++ trunk/glibc-2.3-head/AMD64	2006-01-22 08:17:00 UTC (rev 1089)
@@ -5,12 +5,12 @@
 	namely not the same as on kfreebsd-i386 (/lib/ld.so.1).
 	See also http://www.linuxbase.org/futures/ideas/multiarch/index.html
 
-	Proposed: /lib/ld-kfreebsd-amd64.so.1
+	Result: /lib/ld-kfreebsd-x86-64.so.1
 
 
 * toolchain (gcc, binutils) support
 	Write config bits for proper
-	ld.so location:		/lib/ld.so.1	/lib/ld-kfreebsd-amd64.so.1
+	ld.so location:		/lib/ld.so.1	/lib/ld-kfreebsd-x86-64.so.1
 	emulation:		elf_i386_fbsd	elf_x86_64_fbsd
 	...
 
@@ -52,3 +52,49 @@
 * porting machine
 * porting machine admin
 
+
+
+
+binutils:
+---------
+for biarch simply add to debian/rules:
+	ifeq ($(DEB_HOST_ARCH),kfreebsd-i386)
+        	CONFARGS += --enable-targets=x86_64-kfreebsd-gnu
+	endif
+
+gcc-x.y:
+--------
+insert into gcc/config/i386/kfreebsd-gnu.h something like:
+
+***********************************************************************
+/* Provide a LINK_SPEC.  Here we provide support for the special GCC
+   options -static and -shared, which allow us to link things in one
+   of these three modes by applying the appropriate combinations of
+   options at link-time.
+
+   When the -shared link option is used a final link is not being
+   done.  */
+
+#undef  LINK_SPEC
+#if TARGET_64BIT_DEFAULT
+#define LINK_SPEC "%{!m32:-m elf_x86_64_fbsd} %{m32:-m elf_i386_fbsd} \
+  %{shared:-shared} \
+  %{!shared: \
+    %{!static: \
+      %{rdynamic:-export-dynamic} \
+      %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
+      %{!m32:%{!dynamic-linker:-dynamic-linker /lib/ld-kfreebsd-x86-64.so.1}}} \
+    %{static:-static}}"
+#else
+#define LINK_SPEC "%{m64:-m elf_x86_64_fbsd} %{!m64:-m elf_i386_fbsd} \
+  %{shared:-shared} \
+  %{!shared: \
+    %{!static: \
+      %{rdynamic:-export-dynamic} \
+      %{!m64:%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
+      %{m64:%{!dynamic-linker:-dynamic-linker /lib/ld-kfreebsd-x86-64.so.1}}} \
+    %{static:-static}}"
+#endif
+
+***********************************************************************
+



Reply to: