readelf: Support SHT_RELR/DT_RELR for -r
authorFangrui Song <maskray@google.com>
Tue, 16 Nov 2021 21:03:57 +0000 (13:03 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Jan 2022 13:05:22 +0000 (05:05 -0800)
commit67609c9c701ea8a679d80e3352266b058b184f4b
tree84aedaaf28d6bfcc5d559d8b7236dd17693bb404
parent1b244ed9d3f4dc3df364bcd65332985ab03de302
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.

(cherry picked from commit a7fd11862703e45d2774981a4888bc127d473b06)
include/elf/common.h
include/elf/external.h
This page took 0.02494 seconds and 4 git commands to generate.