diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-20 10:41:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-20 10:41:04 +0000 |
commit | d35b5008f79e6a2f2142c0c3b87f9780779e1d86 (patch) | |
tree | 083deab5f61e38a6f78dc87cbbc8d438c801d10c /ldso/ldso/readelflib1.c | |
parent | 7a7b103e9c6f4d7329383afec796e99d4a05ddf2 (diff) |
Patch from Stefan Allius:
- Invert all FORCE_SHAREABLE_TEXT_SEGMENTS checks.
- Define FORCE_SHAREABLE_TEXT_SEGMENTS in the Makefile,
so it can be configured by the config system.
- linuxelf.h inspects that we don't combine FORCE_SHAREABLE_TEXT_SEGMENTS
and SVR4_BUGCOMPAT
- Add a new config option for FORCE_SHAREABLE_TEXT_SEGMENTS
Diffstat (limited to 'ldso/ldso/readelflib1.c')
-rw-r--r-- | ldso/ldso/readelflib1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c index b259da401..7a0e3fcef 100644 --- a/ldso/ldso/readelflib1.c +++ b/ldso/ldso/readelflib1.c @@ -573,7 +573,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure, back again later. */ if (dynamic_info[DT_TEXTREL]) { -#ifdef FORCE_SHAREABLE_TEXT_SEGMENTS +#ifndef FORCE_SHAREABLE_TEXT_SEGMENTS ppnt = (elf_phdr *)(intptr_t) & header[epnt->e_phoff]; for (i = 0; i < epnt->e_phnum; i++, ppnt++) { if (ppnt->p_type == PT_LOAD && !(ppnt->p_flags & PF_W)) |