diff options
author | Fangrui Song <maskray@google.com> | 2021-11-16 13:03:57 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2021-11-16 13:04:33 -0800 |
commit | a7fd11862703e45d2774981a4888bc127d473b06 (patch) | |
tree | 6caa5fcbd7a7b71a0b6ab895a2bf9a4a00193fa9 /binutils/NEWS | |
parent | 830070c66d25e6749b7159009f1d87d85f02eaa3 (diff) | |
download | fsf-binutils-gdb-a7fd11862703e45d2774981a4888bc127d473b06.zip fsf-binutils-gdb-a7fd11862703e45d2774981a4888bc127d473b06.tar.gz fsf-binutils-gdb-a7fd11862703e45d2774981a4888bc127d473b06.tar.bz2 |
readelf: Support SHT_RELR/DT_RELR for -r
The -r output for SHT_RELR looks like:
Relocation section '.relr.dyn' at offset 0x530 contains 4 entries:
7 offsets
00000000000028c0
00000000000028c8
0000000000003ad0
0000000000003ad8
0000000000003ae0
0000000000003ae8
0000000000003af0
For --use-dynamic, the header looks like
'RELR' relocation section at offset 0x530 contains 32 bytes:
include/
* elf/common.h (DT_ENCODING): Bump to 38.
* elf/external.h (Elf32_External_Relr): New.
(Elf64_External_Relr): New.
binutils/
* readelf.c (enum relocation_type): New.
(slurp_relr_relocs): New.
(dump_relocations): Change is_rela to rel_type.
Dump RELR.
(dynamic_relocations): Add DT_RELR.
(process_relocs): Check SHT_RELR and DT_RELR.
(process_dynamic_section): Store into dynamic_info for
DT_RELR/DT_RELRENT/DT_RELRSZ.
Diffstat (limited to 'binutils/NEWS')
-rw-r--r-- | binutils/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/NEWS b/binutils/NEWS index f948d34..f388125 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -11,6 +11,8 @@ using --unicode=highlight will display them as unicode escape sequences highlighted in red (if supported by the output device). +* readelf -r dumps RELR relative relocations now. + Changes in 2.37: * The readelf tool has a new command line option which can be used to specify |