toolchain/musl: add support for 0.9.9
[openwrt/staging/chunkeey.git] / toolchain / musl / patches-0.9.9 / 001-arm_shared_libs_regression_fix.patch
1 From d432b2c057fc64256645422382c2f7e32c45b3cc Mon Sep 17 00:00:00 2001
2 From: Rich Felker <dalias@aerifal.cx>
3 Date: Sun, 03 Feb 2013 06:26:33 +0000
4 Subject: fix regression that made shared libs crash on arm
5
6 ---
7 diff --git a/crt/arm/crti.s b/crt/arm/crti.s
8 index 2f658b7..35ae6ae 100644
9 --- a/crt/arm/crti.s
10 +++ b/crt/arm/crti.s
11 @@ -5,6 +5,8 @@ _init:
12
13 .weak __fini_array_start
14 .weak __fini_array_end
15 +.hidden __fini_array_start
16 +.hidden __fini_array_end
17
18 .section .fini
19 .global _fini
20 diff --git a/crt/arm/crtn.s b/crt/arm/crtn.s
21 index 928e068..eb0e883 100644
22 --- a/crt/arm/crtn.s
23 +++ b/crt/arm/crtn.s
24 @@ -1,5 +1,7 @@
25 .weak __init_array_start
26 .weak __init_array_end
27 +.hidden __init_array_start
28 +.hidden __init_array_end
29
30 .section .init
31 adr lr, 1f
32 --
33 cgit v0.9.0.3-65-g4555