mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
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.
This commit is contained in:
parent
5df4854ed2
commit
17284d650e
@ -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>
|
2017-05-11 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #21457]
|
[BZ #21457]
|
||||||
|
@ -141,7 +141,7 @@ END {
|
|||||||
|
|
||||||
# Finally, the tunable list.
|
# Finally, the tunable list.
|
||||||
print "\n#ifdef TUNABLES_INTERNAL"
|
print "\n#ifdef TUNABLES_INTERNAL"
|
||||||
print "static tunable_t tunable_list[] = {"
|
print "static tunable_t tunable_list[] attribute_relro = {"
|
||||||
for (t in types) {
|
for (t in types) {
|
||||||
for (n in types[t]) {
|
for (n in types[t]) {
|
||||||
for (m in types[t][n]) {
|
for (m in types[t][n]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user