The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0009-mips64-fix-n64-interp.patch
1 From 603af30d6992e94ac30a66b953264076f4f2fd71 Mon Sep 17 00:00:00 2001
2 From: Markos Chandras <markos.chandras@imgtec.com>
3 Date: Thu, 11 Jul 2013 16:59:16 +0000
4 Subject: Rules.mak: MIPS64: Select correct interpreter
5
6 gcc (eg 4.7.3) hardcodes the MIPS64 interpreters like this:
7 (see gcc/config/linux.h and gcc/config/mips/linux64.h)
8
9 o32: UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
10 n32: UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
11 n64: UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
12
13 The existing check for MIPS64 in uClibc is wrong because it does
14 not respect the selected ABI
15
16 We fix this by explicitely checking the selected ABI instead of the
17 selected MIPS variant.
18
19 Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
20 Cc: Anthony G. Basile <blueness@gentoo.org>
21 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
22 ---
23 diff --git a/Rules.mak b/Rules.mak
24 index 792b794..889108e 100644
25 --- a/Rules.mak
26 +++ b/Rules.mak
27 @@ -138,13 +138,19 @@ export MAJOR_VERSION MINOR_VERSION SUBLEVEL VERSION ABI_VERSION LC_ALL
28  LIBC := libc
29  SHARED_LIBNAME := $(LIBC).so.$(ABI_VERSION)
30  UBACKTRACE_DSO := libubacktrace.so.$(ABI_VERSION)
31 -ifneq ($(findstring  $(TARGET_ARCH) , hppa64 ia64 mips64 powerpc64 s390x sparc64 x86_64 ),)
32 +
33 +UCLIBC_LDSO_NAME := ld-uClibc
34 +ARCH_NATIVE_BIT := 32
35 +ifneq ($(findstring $(TARGET_ARCH),hppa64 ia64 powerpc64 s390x sparc64 x86_64),)
36  UCLIBC_LDSO_NAME := ld64-uClibc
37  ARCH_NATIVE_BIT := 64
38  else
39 -UCLIBC_LDSO_NAME := ld-uClibc
40 -ARCH_NATIVE_BIT := 32
41 +ifeq ($(CONFIG_MIPS_N64_ABI),y)
42 +UCLIBC_LDSO_NAME := ld64-uClibc
43 +ARCH_NATIVE_BIT := 64
44  endif
45 +endif
46 +
47  UCLIBC_LDSO := $(UCLIBC_LDSO_NAME).so.$(ABI_VERSION)
48  NONSHARED_LIBNAME := uclibc_nonshared.a
49  libc := $(top_builddir)lib/$(SHARED_LIBNAME)
50 --
51 cgit v0.9.1