[RFC][PATCH v2 0/6] binutils patches to add DT_GNU_UNIQUE

Vivek Das Mohapatra vivek@collabora.com
Wed Jun 17 13:59:39 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_GNU_UNIQUE dynamic section 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 DT_GNU_UNIQUE to ld, gold, and
readelf (and documents it in the help text and so forth).

Vivek Das Mohapatra (6):
  Define a new DT_GNU_UNIQUE dynamic section for ld, readelf et al
  Handle DT_GNU_UNIQUE/--unique-dso in ld
  Document --unique-dso in the man page and ld help output
  Handle DT_GNU_UNIQUE in readelf
  Define DT_GNU_UNIQUE for gold
  Implement and document DT_GNU_UNIQUE/--unique-dso handling in gold

 bfd/elflink.c        |  4 +++-
 binutils/readelf.c   | 10 ++++++++++
 elfcpp/elfcpp.h      |  2 ++
 gold/layout.cc       |  3 +++
 gold/options.h       |  4 ++++
 include/bfdlink.h    |  3 +++
 include/elf/common.h |  1 +
 ld/emultempl/elf.em  |  8 +++++++-
 ld/ld.texi           |  8 ++++++++
 ld/lexsup.c          |  2 ++
 10 files changed, 43 insertions(+), 2 deletions(-)

-- 
2.11.0



More information about the Binutils mailing list