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/linuxelf.h | |
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/linuxelf.h')
-rw-r--r-- | ldso/ldso/linuxelf.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ldso/ldso/linuxelf.h b/ldso/ldso/linuxelf.h index 5a6e8b85f..26d3937c4 100644 --- a/ldso/ldso/linuxelf.h +++ b/ldso/ldso/linuxelf.h @@ -31,7 +31,15 @@ extern int _dl_linux_resolve(void); #ifndef SVR4_BUGCOMPAT -#define SVR4_BUGCOMPAT 1 +# ifdef FORCE_SHAREABLE_TEXT_SEGMENTS +# define SVR4_BUGCOMPAT 0 +# else +# define SVR4_BUGCOMPAT 1 +# endif +#else +# ifdef FORCE_SHAREABLE_TEXT_SEGMENTS +# error option SVR4_BUGCOMPAT combined with option FORCE_SHAREABLE_TEXT_SEGMENTS makes no sense +# endif #endif #if ELF_CLASS == ELFCLASS32 |