mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas@biessmann.de>
To: PTXdsit ML <ptxdist@pengutronix.de>
Cc: OSELAS ML <oselas@community.pengutronix.de>
Subject: [ptxdist] [PATCH 6/7] gcc-4.6.2: add pure64 patch for x86_64
Date: Sun, 12 Feb 2012 13:10:27 +0100	[thread overview]
Message-ID: <1329048628-70349-7-git-send-email-andreas@biessmann.de> (raw)
In-Reply-To: <1329048628-70349-1-git-send-email-andreas@biessmann.de>

The pure64 patch set the ld loader path to /lib instead of /lib64 for
x86_64 builds.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 .../0304-gcc-i386-use-pure64-CLFS-patch.patch      |   47 ++++++++++++++++++++
 patches/gcc-4.6.2/series                           |    3 +-
 2 files changed, 49 insertions(+), 1 deletions(-)
 create mode 100644 patches/gcc-4.6.2/0304-gcc-i386-use-pure64-CLFS-patch.patch

diff --git a/patches/gcc-4.6.2/0304-gcc-i386-use-pure64-CLFS-patch.patch b/patches/gcc-4.6.2/0304-gcc-i386-use-pure64-CLFS-patch.patch
new file mode 100644
index 0000000..9e3f822
--- /dev/null
+++ b/patches/gcc-4.6.2/0304-gcc-i386-use-pure64-CLFS-patch.patch
@@ -0,0 +1,47 @@
+From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= <andreas@biessmann.de>
+Date: Thu, 9 Feb 2012 13:59:12 +0100
+Subject: [PATCH] gcc/i386: use pure64 CLFS patch
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This is a modified version of
+http://trac.cross-lfs.org/browser/patches/gcc-4.6.0-pure64-1.patch to use /lib
+instead of /lib64 for x86_64.
+This will only work as generic patch, if we do _not_ build multilib x86
+toolchains.
+
+Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
+---
+ gcc/config/i386/linux64.h |    4 ++--
+ gcc/config/i386/t-linux64 |    2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h
+index 103ab0c..a3aab5a 100644
+--- a/gcc/config/i386/linux64.h
++++ b/gcc/config/i386/linux64.h
+@@ -62,8 +62,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
+    When the -shared link option is used a final link is not being
+    done.  */
+ 
+-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
++#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
++#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux-x86-64.so.2"
+ 
+ #if TARGET_64BIT_DEFAULT
+ #define SPEC_32 "m32"
+diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64
+index 5d5a476..2a999f1 100644
+--- a/gcc/config/i386/t-linux64
++++ b/gcc/config/i386/t-linux64
+@@ -25,7 +25,7 @@
+ 
+ MULTILIB_OPTIONS = m64/m32
+ MULTILIB_DIRNAMES = 64 32 
+-MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
++MULTILIB_OSDIRNAMES = ../lib ../lib32
+ 
+ LIBGCC = stmp-multilib
+ INSTALL_LIBGCC = install-multilib
diff --git a/patches/gcc-4.6.2/series b/patches/gcc-4.6.2/series
index e4ed42c..a39fc16 100644
--- a/patches/gcc-4.6.2/series
+++ b/patches/gcc-4.6.2/series
@@ -16,4 +16,5 @@
 0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch
 0302-libiberty-pic.patch
 0303-libstdc-pic.patch
-# 19cc4f8bfbc9cbec87de32579a9f88fd  - git-ptx-patches magic
+0304-gcc-i386-use-pure64-CLFS-patch.patch
+# fafe6c53dbc3db9d6019dec03d36185a  - git-ptx-patches magic
-- 
1.7.9


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2012-02-12 12:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 12:10 [ptxdist] [PATCH 0/7] OSELAS.Toolchain: add x86_64-unknown-linux-gnu glibc toolchain Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 1/7] add fake build type to HOST_CROSS_AUTOCONF Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 2/7] architecture.in: add x86_64 arch Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 3/7] add x86_64-unknown-linux-gnu configuration Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 4/7] fixup_ptxconfigs.sh: add x86_64 target Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 5/7] glibc-headers: prepare for x86_64 build Andreas Bießmann
2012-02-12 12:10 ` Andreas Bießmann [this message]
2012-02-12 12:10 ` [ptxdist] [PATCH 7/7] glibc: force slibdir to /lib Andreas Bießmann
2012-02-13  5:58 ` [ptxdist] [PATCH 0/7] OSELAS.Toolchain: add x86_64-unknown-linux-gnu glibc toolchain Klaus.Hachmeister
2012-02-13  7:36   ` Andreas Bießmann
2012-03-25 10:11 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329048628-70349-7-git-send-email-andreas@biessmann.de \
    --to=andreas@biessmann.de \
    --cc=oselas@community.pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox