Skip to content

Latest commit

 

History

History
49 lines (49 loc) · 1.96 KB

eglibc-2.19-shlib-make.patch

File metadata and controls

49 lines (49 loc) · 1.96 KB
 
Mar 31, 2014
Mar 31, 2014
1
2
3
4
5
diff --git a/Makerules b/Makerules
index b46b09b..297e605 100644
--- a/Makerules
+++ b/Makerules
@@ -454,25 +454,19 @@ shlib-lds-flags =
Jul 16, 2013
Jul 16, 2013
6
7
8
9
10
11
else
# binutils only position loadable notes into the first page for binaries,
# not for shared objects
-$(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
- $(LINK.o) -shared -Wl,-O1 \
- -nostdlib -nostartfiles \
Mar 31, 2014
Mar 31, 2014
12
- $(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \
Jul 16, 2013
Jul 16, 2013
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
- -Wl,--verbose 2>&1 | \
- sed > $@T \
- -e '/^=========/,/^=========/!d;/^=========/d' \
+shlib-lds-hash = -e '/^=========/,/^=========/!d;/^=========/d' \
$(if $(filter yes,$(have-hash-style)), \
-e 's/^.*\.gnu\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
-e '/^[ ]*\.hash[ ]*:.*$$/{h;d;}' \
-e '/DATA_SEGMENT_ALIGN/{H;g}' \
, \
-e 's/^.*\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \
- ) \
- -e 's/^.*\*(\.dynbss).*$$/& \
+ )
+shlib-lds-dynbss = -e 's/^.*\*(\.dynbss).*$$/& \
PROVIDE(__start___libc_freeres_ptrs = .); \
*(__libc_freeres_ptrs) \
- PROVIDE(__stop___libc_freeres_ptrs = .);/'\
- -e 's@^.*\*(\.jcr).*$$@& \
+ PROVIDE(__stop___libc_freeres_ptrs = .);/'
+shlib-lds-jcr = -e 's@^.*\*(\.jcr).*$$@& \
PROVIDE(__start___libc_subfreeres = .);\
__libc_subfreeres : { *(__libc_subfreeres) }\
PROVIDE(__stop___libc_subfreeres = .);\
Mar 31, 2014
Mar 31, 2014
36
@@ -483,6 +477,13 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
Jul 16, 2013
Jul 16, 2013
37
38
39
40
41
42
__libc_thread_subfreeres : { *(__libc_thread_subfreeres) }\
PROVIDE(__stop___libc_thread_subfreeres = .);\
/DISCARD/ : { *(.gnu.glibc-stub.*) }@'
+$(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
+ $(LINK.o) -shared -Wl,-O1 \
+ -nostdlib -nostartfiles \
Mar 31, 2014
Mar 31, 2014
43
+ $(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \
Jul 16, 2013
Jul 16, 2013
44
45
46
47
48
49
+ -Wl,--verbose 2>&1 | \
+ sed > $@T \
+ $(shlib-lds-hash) $(shlib-lds-dynbss) $(shlib-lds-jcr)
test -s $@T
mv -f $@T $@
common-generated += shlib.lds