[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/23050] New: readelf error on sectionless elf
From: |
jakehehrlich at google dot com |
Subject: |
[Bug binutils/23050] New: readelf error on sectionless elf |
Date: |
Wed, 11 Apr 2018 22:08:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23050
Bug ID: 23050
Summary: readelf error on sectionless elf
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: jakehehrlich at google dot com
Target Milestone: ---
I have a sectionless ELF. When I run `readelf -l cowsay` where cowsay is a
sectionless ELF I get the following output.
```
Elf file type is DYN (Shared object file)
Entry point 0x1000
There are 10 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
PHDR 0x0000000000000040 0x0000000000000040 0x0000000000000040
0x0000000000000230 0x0000000000000230 R 0x8
INTERP 0x0000000000000270 0x0000000000000270 0x0000000000000270
0x0000000000000008 0x0000000000000008 R 0x1
[Requesting program interpreter: ld.so.1]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000000006d8 0x00000000000006d8 R 0x1000
LOAD 0x0000000000001000 0x0000000000001000 0x0000000000001000
0x0000000000000470 0x0000000000000470 R E 0x1000
LOAD 0x0000000000002000 0x0000000000002000 0x0000000000002000
0x0000000000001008 0x0000000000001008 RW 0x1000
DYNAMIC 0x0000000000000448 0x0000000000000448 0x0000000000000448
0x0000000000000120 0x0000000000000120 R 0x8
GNU_RELRO 0x0000000000003000 0x0000000000003000 0x0000000000003000
0x0000000000000008 0x0000000000001000 R 0x1
GNU_EH_FRAME 0x0000000000000668 0x0000000000000668 0x0000000000000668
0x0000000000000014 0x0000000000000014 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x0
NOTE 0x00000000000006c0 0x00000000000006c0 0x00000000000006c0
0x0000000000000018 0x0000000000000018 R 0x4
readelf: Error: Reading 13256 bytes extends past end of file for dynamic string
table
```
The error at the end appears to be a bug.
The binary can be downloaded here:
https://drive.google.com/file/d/17H2raNvsWpTouehd5vpdjvrEgzJstPOc/view?usp=sharing
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/23050] New: readelf error on sectionless elf,
jakehehrlich at google dot com <=