This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-305-g17284d6
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 11 May 2017 14:46:40 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-305-g17284d6
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, master has been updated
via 17284d650ebe5c736c9730ee16401008f26128c3 (commit)
from 5df4854ed21641e5f82e17677fc385e05480ce3a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=17284d650ebe5c736c9730ee16401008f26128c3
commit 17284d650ebe5c736c9730ee16401008f26128c3
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date: Thu May 11 20:13:49 2017 +0530
tunables: Make tunable_list relro
As of now we don't need tunables to be writable after they have been
set initially, so there is no point in having them writable. Put
tunable_list in .data.rel.ro so that it is set as read-only after
relocation. This also allows us to move some of the dl_* variables
that are tunables controlled into the tunables infrastructure instead
of having two copies.
In future if we ever need specific tunables to be writable at runtime,
we can split the tunable_list into two.
Regression tested on x86_64 to verify that tests continue to pass.
* scripts/gen-tunables.awk: Add attribute_relro to
tunable_list.
diff --git a/ChangeLog b/ChangeLog
index d886161..f92e871 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
+
+ * scripts/gen-tunables.awk: Add attribute_relro to
+ tunable_list.
+
2017-05-11 Joseph Myers <joseph@codesourcery.com>
[BZ #21457]
diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk
index 601240a..defb3e7 100644
--- a/scripts/gen-tunables.awk
+++ b/scripts/gen-tunables.awk
@@ -141,7 +141,7 @@ END {
# Finally, the tunable list.
print "\n#ifdef TUNABLES_INTERNAL"
- print "static tunable_t tunable_list[] = {"
+ print "static tunable_t tunable_list[] attribute_relro = {"
for (t in types) {
for (n in types[t]) {
for (m in types[t][n]) {
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
scripts/gen-tunables.awk | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources