PATCH: Support DF_1_GLOBAL
Carlos O'Donell
carlos@systemhalted.org
Wed Nov 21 21:00:00 GMT 2012
On Wed, Nov 21, 2012 at 3:54 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> This patch adds DF_1_GLOBAL support. Tested on x86-64, using linkers
> with and without -z global support. OK to install?
>
> Thanks.
>
>
> H.J.
> ---
> 2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
>
> * config.make.in (have-z-global): New variable.
> * configure.in: Check if linker supports -z global.
> * configure: Regenerated.
> * elf/Makefile (tests): Add reldep10 if linker supports -z global.
> (modules-names): Add reldepmod7.
> (LDFLAGS-reldepmod7.so): New macro.
> ($(objpfx)reldep10): New target.
> ($(objpfx)reldep10.out): Likewise.
> * elf/dl-open.c (dl_open_worker): Support DF_1_GLOBAL.
> * elf/reldep10.c: New file.
> * elf/reldepmod7.c: Likewise.
> * include/elf.h (DT_1_SUPPORTED_MASK): Add DF_1_GLOBAL.
The Solaris documention I've seen from Oracle says the value
of DF_1_GLOBAL is unused.
What documentation defines the purpose of DF_1_GLOBAL?
If DF_1_GLOBAL is documented somewhere, and we are following established
and compatible practice through the use of RTLD_GLOBAL, then I'm happy
to support the flag.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list