From: "H.J. Lu" <hjl.tools@gmail.com>
To: libc-alpha@sourceware.org
Subject: [PATCH v8 0/6] Support DT_RELR relative relocation format
Date: Wed, 13 Apr 2022 11:25:01 -0700 [thread overview]
Message-ID: <20220413182507.896862-1-hjl.tools@gmail.com> (raw)
Changes in v8:
1. Remove the out-of-date comments in _dl_check_map_versions.
2. Change "long" to "long int".
3. Update the DT_RELR NEWS entry.
Changes in v7:
1. Add GLIBC_ABI_DT_RELR support before adding DT_RELR support.
2. Update the DT_RELR NEWS entry.
3. Misc fixes.
Changes in v6:
1. Move ELF_DYNAMIC_DO_RELR before ELF_DYNAMIC_DO_REL.
Changes in v5:
1. Update NEWS entry with the linker option, -z pack-relative-relocs.
2. Remove elf/libc-abi-version.exp and use $(READELF) to check
GLIBC_ABI_DT_RELR.
Changes in v4:
1. Always enable GLIBC_ABI_DT_RELR check.
2. Use $(OBJDUMP) instead of $(NM) for GLIBC_ABI_DT_RELR check.
Changes in v3:
1. Don't define SUPPORT_DT_RELR.
2. Enable DT_RELR in glibc shared libraries and position independent
executables (PIE) automatically if linker supports -z pack-relative-relocs.
Changes in v2:
1. Enable DT_RELR for all targets.
2. Issue an error if there is a DT_RELR entry without GLIBC_ABI_DT_RELR
dependency nor GLIBC_PRIVATE definition.
Fangrui Song (1):
elf: Support DT_RELR relative relocation format [BZ #27924]
H.J. Lu (5):
elf: Define DT_RELR related macros and types
Add GLIBC_ABI_DT_RELR for DT_RELR support
elf: Properly handle zero DT_RELA/DT_REL values
Add --disable-default-dt-relr
NEWS: Mention DT_RELR support
INSTALL | 6 ++++
Makeconfig | 19 ++++++++++++
Makerules | 2 ++
NEWS | 7 ++++-
configure | 55 +++++++++++++++++++++++++++++++++++
configure.ac | 18 ++++++++++++
elf/Makefile | 43 ++++++++++++++++++++++++++--
elf/Versions | 5 ++++
elf/dl-version.c | 38 ++++++++++++++++++++----
elf/dynamic-link.h | 40 +++++++++++++++++++++++++-
elf/elf.h | 13 +++++++--
elf/get-dynamic-info.h | 25 ++++++++++++----
elf/tst-relr-pie.c | 1 +
elf/tst-relr.c | 65 ++++++++++++++++++++++++++++++++++++++++++
include/link.h | 6 ++++
manual/install.texi | 5 ++++
scripts/abilist.awk | 2 ++
scripts/versions.awk | 7 ++++-
18 files changed, 338 insertions(+), 19 deletions(-)
create mode 100644 elf/tst-relr-pie.c
create mode 100644 elf/tst-relr.c
--
2.35.1
next reply other threads:[~2022-04-13 18:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-13 18:25 H.J. Lu [this message]
2022-04-13 18:25 ` [PATCH v8 1/6] elf: Define DT_RELR related macros and types H.J. Lu
2022-04-13 21:43 ` Fangrui Song
2022-04-13 18:25 ` [PATCH v8 2/6] Add GLIBC_ABI_DT_RELR for DT_RELR support H.J. Lu
2022-04-13 22:16 ` Fangrui Song
2022-04-13 18:25 ` [PATCH v8 3/6] elf: Support DT_RELR relative relocation format [BZ #27924] H.J. Lu
2022-04-13 18:25 ` [PATCH v8 4/6] elf: Properly handle zero DT_RELA/DT_REL values H.J. Lu
2022-04-13 18:25 ` [PATCH v8 5/6] Add --disable-default-dt-relr H.J. Lu
2022-04-13 18:25 ` [PATCH v8 6/6] NEWS: Mention DT_RELR support H.J. Lu
2022-04-13 21:43 ` Fangrui Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220413182507.896862-1-hjl.tools@gmail.com \
--to=hjl.tools@gmail.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).