https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015
--- Comment #1 from Ed Maste ---
Indeed, creating a test file via
$ objcopy -I binary -O elf64-x86-64 -B x86-64 --rename-section
.data=.this-is-a-really-long-name empty output.elf
ELF Tool Chain readelf by default shows:
$ readelf -S output.elf
There are 5 section headers, starting at offset 0x78:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL
0 0 0
[ 1] .this-is-a-really PROGBITS 0040
WA 0 0 1
[ 2] .shstrtab STRTAB 0040
0038 0 0 1
[ 3] .symtab SYMTAB 01b8
0078 0018 4 2 8
[ 4] .strtab STRTAB 0230
003a 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
GNU readelf 2.33.1 shows:
$ /usr/local/bin/readelf -S output.elf
There are 5 section headers, starting at offset 0x78:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL
0 0 0
[ 1] .this-is-a-really PROGBITS 0040
WA 0 0 1
[ 2] .shstrtab STRTAB 0040
0038 0 0 1
[ 3] .symtab SYMTAB 01b8
0078 0018 4 2 8
[ 4] .strtab STRTAB 0230
003a 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),
l (large), p (processor specific)
(These differ only in the key.)
With -W GNU readelf shows:
$ /usr/local/bin/readelf -S -W output.elf
There are 5 section headers, starting at offset 0x78:
Section Headers:
[Nr] Name TypeAddress OffSize ES Flg
Lk Inf Al
[ 0] NULL 00 00 00
0 0 0
[ 1] .this-is-a-really-long-name PROGBITS 40
00 00 WA 0 0 1
[ 2] .shstrtab STRTAB 40 38 00
0 0 1
[ 3] .symtab SYMTAB 0001b8 78 18
4 2 8
[ 4] .strtab STRTAB 000230 3a 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),
l (large), p (processor specific)
While ELF Tool Chain prints on one line but does not widen the name:
$ readelf -S -W output.elf
There are 5 section headers, starting at offset 0x78:
Section Headers:
[Nr] Name TypeAddr OffSize ES Flg
Lk Inf Al
[ 0] NULL 00 00 00
0 0 0
[ 1] .this-is-a-really PROGBITS 40 00 00 WA
0 0 1
[ 2] .shstrtab STRTAB 40 38 00
0 0 1
[ 3] .symtab SYMTAB 0001b8 78 18
4 2 8
[ 4] .strtab STRTAB 000230 3a 00
0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
--
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"