[RFC][PATCH 0/6] binutils patches to add DT_FLAGS_1 / DF_1_UNIQUE
Vivek Das Mohapatra
vivek@collabora.com
Mon Mar 30 17:42:01 GMT 2020
This patch series is in support of the glibc RTLD_SHARED work
discussed in https://sourceware.org/bugzilla/show_bug.cgi?id=22745.
It adds a DT_FLAGS_1 value DF_1_UNIQUE which is intended to mark
libraries which should implicitly be opened as if RTLD_SHARED
had been passed to dlmopen when the target namespace is not
LM_ID_BASE.
This patch series adds support for DF_1_UNIQUE to ld, gold, and
readelf (and documents it in the help text and so forth).
Vivek Das Mohapatra (6):
Define a new DT_FLAGS_1 flag DF_1_UNIQUE for ld, readelf et al
Handle DF_1_UNIQUE in ld
Document DF_1_UNIQUE in the man page and ld help output
Handle DF_1_UNIQUE in readelf
Define DT_FLAGS_1 flag DF_1_UNIQUE for gold
Implement and document DF_1_UNIQUE handling in gold
binutils/readelf.c | 5 +++++
elfcpp/elfcpp.h | 4 +++-
gold/layout.cc | 2 ++
gold/options.h | 3 +++
include/elf/common.h | 1 +
ld/emultempl/elf.em | 2 ++
ld/ld.texi | 7 +++++++
ld/lexsup.c | 2 ++
8 files changed, 25 insertions(+), 1 deletion(-)
--
2.11.0
More information about the Libc-alpha
mailing list