From 81144a9c4e2ef74f2e935192db562684793a4da9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Jan 2004 01:16:07 +0000 Subject: [PATCH] Update. * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into .data.rel.ro. --- ChangeLog | 3 +++ sysdeps/generic/dl-sysdep.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3d9fd96..9bc91a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-01-13 Ulrich Drepper + * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into + .data.rel.ro. + * sysdeps/x86_64/dl-machine.h: Include . * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here. diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index 5ec0633..d637687 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -48,7 +48,7 @@ extern void __libc_check_standard_fds (void); #ifdef NEED_DL_BASE_ADDR ElfW(Addr) _dl_base_addr; #endif -int __libc_enable_secure = 0; +int __libc_enable_secure __attribute__ ((section (".data.rel.ro"))) = 0; INTVARDEF(__libc_enable_secure) int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion of init-first. */ -- 2.7.4