This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/7065] Support building glibc with -fstack-protector or -fstack-protector-all
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 10 Jul 2017 16:27:49 +0000
- Subject: [Bug build/7065] Support building glibc with -fstack-protector or -fstack-protector-all
- Auto-submitted: auto-generated
- References: <bug-7065-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=7065
--- Comment #31 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr21740 has been created
at 21e5ab4dab7412c8516aed07d07da7cdf40ac2fb (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=21e5ab4dab7412c8516aed07d07da7cdf40ac2fb
commit 21e5ab4dab7412c8516aed07d07da7cdf40ac2fb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jul 10 09:24:47 2017 -0700
More bug fixes
[BZ #7065]
[BZ #21740]
[BZ #21745]
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=712e70de9743a61618001b4c6372a0e3d4fc1d90
commit 712e70de9743a61618001b4c6372a0e3d4fc1d90
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jul 9 08:39:17 2017 -0700
Remove debug/stack_chk_fail_local.c [BZ #21740]
Since
commit 524a8ef2ad76af8ac049293d993a1856b0d888fb
Author: Nick Alcock <nick.alcock@oracle.com>
Date: Mon Dec 26 10:08:57 2016 +0100
PLT avoidance for __stack_chk_fail [BZ #7065]
Add a hidden __stack_chk_fail_local alias to libc.so,
and make sure that on targets which use __stack_chk_fail,
this does not introduce a local PLT reference into libc.so.
added
strong_alias (__stack_chk_fail, __stack_chk_fail_local)
to debug/stack_chk_fail.c, debug/stack_chk_fail_local.c should be
removed. Since dummy __stack_chk_fail and __stack_chk_fail_local
symbols are used in ld.so, tst-_dl_addr_inside_object should be
linked with $(dummy-stack-chk-fail). Tested on x86-64 with
--enable-stack-protector=all and got
FAIL: elf/tst-env-setuid
FAIL: elf/tst-env-setuid-tunables
FAIL: stdlib/tst-secure-getenv
which are the same as without this patch.
* [BZ #21740]
* debug/Makefile (static-only-routines): Remove
stack_chk_fail_local.
* debug/stack_chk_fail_local.c: Removed.
* elf/Makefile (LDFLAGS-tst-_dl_addr_inside_object): New.
-----------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.