This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Support DF_1_GLOBAL
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 21 Nov 2012 16:00:39 -0500
- Subject: Re: PATCH: Support DF_1_GLOBAL
- References: <20121121205456.GA31716@intel.com>
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.