cross-arm-linux-musleabi: add patch to fix shlibs on arm with musl (via git).
This commit is contained in:
parent
e17ac8afc5
commit
5ee448a9f5
2 changed files with 36 additions and 2 deletions
|
@ -0,0 +1,33 @@
|
|||
From d432b2c057fc64256645422382c2f7e32c45b3cc Mon Sep 17 00:00:00 2001
|
||||
From: Rich Felker <dalias@aerifal.cx>
|
||||
Date: Sun, 03 Feb 2013 06:26:33 +0000
|
||||
Subject: fix regression that made shared libs crash on arm
|
||||
|
||||
---
|
||||
diff --git a/crt/arm/crti.s b/crt/arm/crti.s
|
||||
index 2f658b7..35ae6ae 100644
|
||||
--- crt/arm/crti.s
|
||||
+++ crt/arm/crti.s
|
||||
@@ -5,6 +5,8 @@ _init:
|
||||
|
||||
.weak __fini_array_start
|
||||
.weak __fini_array_end
|
||||
+.hidden __fini_array_start
|
||||
+.hidden __fini_array_end
|
||||
|
||||
.section .fini
|
||||
.global _fini
|
||||
diff --git a/crt/arm/crtn.s b/crt/arm/crtn.s
|
||||
index 928e068..eb0e883 100644
|
||||
--- crt/arm/crtn.s
|
||||
+++ crt/arm/crtn.s
|
||||
@@ -1,5 +1,7 @@
|
||||
.weak __init_array_start
|
||||
.weak __init_array_end
|
||||
+.hidden __init_array_start
|
||||
+.hidden __init_array_end
|
||||
|
||||
.section .init
|
||||
adr lr, 1f
|
||||
--
|
||||
cgit v0.9.0.3-65-g4555
|
|
@ -13,7 +13,7 @@ _fpuflags="--with-float=hard"
|
|||
_archflags="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
|
||||
|
||||
pkgname=cross-${_triplet}
|
||||
version=0.1
|
||||
version=0.2
|
||||
revision=1
|
||||
short_desc="Cross toolchain for the ${_triplet} LE Hard Float target"
|
||||
maintainer="Juan RP <xtraeme@gmail.org>"
|
||||
|
@ -130,7 +130,8 @@ _musl_build() {
|
|||
|
||||
cd ${wrksrc}/musl-${_musl_version}
|
||||
msg_normal "Building cross musl libc\n"
|
||||
|
||||
_apply_patch ${FILESDIR}/musl-fix-arm-shlibs.patch
|
||||
|
||||
CC="${_CROSS_TARGET}-gcc" CFLAGS="-Os -pipe ${_archflags}" \
|
||||
./configure --prefix=/usr \
|
||||
|
||||
|
|
Loading…
Reference in a new issue