[i] ℤ readelf -SW 006.make.elf.arm32 15:16:08
There are 28 section headers, starting at offset 0x2caa0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .interp PROGBITS 00010154 000154 000019 00 A 0 0 1
[ 2] .note.ABI-tag NOTE 00010170 000170 000020 00 A 0 0 4
[ 3] .note.gnu.build-id NOTE 00010190 000190 000024 00 A 0 0 4
[ 4] .gnu.hash GNU_HASH 000101b4 0001b4 000cbc 04 A 5 0 4
[ 5] .dynsym DYNSYM 00010e70 000e70 001a80 10 A 6 1 4
[ 6] .dynstr STRTAB 000128f0 0028f0 0015b6 00 A 0 0 1
[ 7] .gnu.version VERSYM 00013ea6 003ea6 000350 02 A 5 0 2
[ 8] .gnu.version_r VERNEED 000141f8 0041f8 000090 00 A 6 3 4
[ 9] .rel.dyn REL 00014288 004288 000048 08 A 5 0 4
[10] .rel.plt REL 000142d0 0042d0 0003e8 08 AI 5 22 4
[11] .init PROGBITS 000146b8 0046b8 00000c 00 AX 0 0 4
[12] .plt PROGBITS 000146c4 0046c4 0005f0 04 AX 0 0 4
[13] .text PROGBITS 00014cb8 004cb8 021060 00 AX 0 0 8
[14] .fini PROGBITS 00035d18 025d18 000008 00 AX 0 0 4
[15] .rodata PROGBITS 00035d20 025d20 0058d8 00 A 0 0 4
[16] .ARM.exidx ARM_EXIDX 0003b5f8 02b5f8 000008 00 AL 13 0 4
[17] .eh_frame PROGBITS 0003b600 02b600 000004 00 A 0 0 4
[18] .init_array INIT_ARRAY 0004bef8 02bef8 000004 04 WA 0 0 4
[19] .fini_array FINI_ARRAY 0004befc 02befc 000004 04 WA 0 0 4
[20] .data.rel.ro PROGBITS 0004bf00 02bf00 000004 00 WA 0 0 8
[21] .dynamic DYNAMIC 0004bf04 02bf04 0000f8 08 WA 6 0 4
[22] .got PROGBITS 0004c000 02c000 000204 04 WA 0 0 4
[23] .data PROGBITS 0004c208 02c208 00072c 00 WA 0 0 8
[24] .bss NOBITS 0004c938 02c934 002dd8 00 WA 0 0 8
[25] .ARM.attributes ARM_ATTRIBUTES 00000000 02c934 00002f 00 0 0 1
[26] .gnu_debuglink PROGBITS 00000000 02c964 000034 00 0 0 4
[27] .shstrtab STRTAB 00000000 02c998 000108 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
y (purecode), p (processor specific)
Actual behavior
It substitutes characters like - in the section name: .note.gnu.build_id is in fact should be note.gnu.build-id, .note.ABI_tag should be .note.ABI-tag:
Expected behavior
See the
readelf
output, for example:Actual behavior
It substitutes characters like
-
in the section name:.note.gnu.build_id
is in fact should benote.gnu.build-id
,.note.ABI_tag
should be.note.ABI-tag
:Steps to reproduce the behavior
See implementation in:
librz/bin/formats/elf
librz/bin/p/bin_elf.c
Additional Logs, screenshots, source-code, configuration dump, ...
006.make.elf.arm32.zip
The text was updated successfully, but these errors were encountered: