Line 0
Link Here
|
|
|
1 |
--- login/Makefile.orig 2006-02-10 11:40:05.000000000 +0100 |
Line 0
Link Here
|
|
|
1 |
Modifications to glibc-2.4 to allow it to build with stack-protection |
2 |
enabled throughout, and to provide a logging stack_chk_fail handler. |
3 |
|
4 |
debug/stack_chk_fail.c: provide stack_chk_fail handler that logs to |
5 |
syslog, and uses syscalls directly inline. |
6 |
|
7 |
debug/Makefile: build stack_chk_fail_local -fno-stack-protector |
8 |
Leave stack_chk_fail alone, so checking __SSP__ will show whether |
9 |
compiler is rigged to build SSP, and hence that we want the modified |
10 |
handler (which will never trigger SSP because there are no function |
11 |
calls). |
12 |
|
13 |
csu/Makefile, linuxthreads/Makefile, nptl/Makefile: inihibit SSP on |
14 |
crti/crtn (i.e. compilation of initfini) |
15 |
|
16 |
elf/rtld-Rules: Add compilation rules for .oS targets (so that |
17 |
stack_chk_fail_local will build for rtld). |
18 |
|
19 |
elf/Makefile: Add libc_nonshared.a to rtld build set so that |
20 |
stack_chk_fail_local can be found (and other modifications |
21 |
so that static objects are considered). |
22 |
|
23 |
Makerules: add stack_chk_fail_local.os to libc_pic.os (needed for |
24 |
SSP builds on x86 so that it can resolve __stack_chk_fail_local). |
25 |
Note this is a whole-archive link so adding libc_nonshared.a is |
26 |
causes too much stuff to be included. |
27 |
|
28 |
Kevin F. Quinn 2006-09-30 |
29 |
|
30 |
--- debug/stack_chk_fail.c.orig 2006-09-29 17:04:58.000000000 +0200 |
Lines 214-219
Link Here
|
214 |
epatch "${WORKDIR}"/patches |
214 |
epatch "${WORKDIR}"/patches |
215 |
fi |
215 |
fi |
216 |
|
216 |
|
|
|
217 |
if use hardened ; then |
218 |
einfo "Patching pt_chown to BIND_NOW" |
219 |
epatch ${FILESDIR}/2.3.6/glibc-2.3.6-pt_chown-znow.patch |
220 |
|
221 |
einfo "Patching SSP handler so that glibc builds with hardened compiler" |
222 |
epatch ${FILESDIR}/2.4/glibc-2.4-linuxssp.patch |
223 |
fi |
224 |
|
217 |
gnuconfig_update |
225 |
gnuconfig_update |
218 |
} |
226 |
} |
219 |
|
227 |
|