~ubuntu-branches/ubuntu/precise/gccgo-4.7/precise

« back to all changes in this revision

Viewing changes to debian/patches/arm-dynamic-linker.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-11 19:37:32 UTC
  • Revision ID: package-import@ubuntu.com-20120311193732-ty08ntcphseuouao
Tags: 4.7.0~rc1-0ubuntu1
* Build standalone gccgo-4.7 packages.
* libgo: Work around parse error of struct timex_ on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: For ARM hard float, set the dynamic linker to
 
2
# DP: /lib/arm-linux-gnueabihf/ld-linux.so.3.
 
3
 
 
4
--- a/src/gcc/config/arm/linux-elf.h
 
5
+++ b/src/gcc/config/arm/linux-elf.h
 
6
@@ -59,14 +59,18 @@
 
7
 
 
8
 #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
 
9
 
 
10
-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
11
+#define LINUX_DYNAMIC_LINKER_SF "/lib/ld-linux.so.3"
 
12
+#define LINUX_DYNAMIC_LINKER_HF "/lib/arm-linux-gnueabihf/ld-linux.so.3"
 
13
 
 
14
 #define LINUX_TARGET_LINK_SPEC  "%{h*} \
 
15
    %{static:-Bstatic} \
 
16
    %{shared:-shared} \
 
17
    %{symbolic:-Bsymbolic} \
 
18
    %{rdynamic:-export-dynamic} \
 
19
-   -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
 
20
+   %{msoft-float:-dynamic-linker " LINUX_DYNAMIC_LINKER_SF "} \
 
21
+   %{mfloat-abi=soft*:-dynamic-linker " LINUX_DYNAMIC_LINKER_SF "} \
 
22
+   %{mhard-float:-dynamic-linker " LINUX_DYNAMIC_LINKER_HF "} \
 
23
+   %{mfloat-abi=hard:-dynamic-linker " LINUX_DYNAMIC_LINKER_HF "} \
 
24
    -X \
 
25
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
 
26
    SUBTARGET_EXTRA_LINK_SPEC