[Bug 246015] readelf -S truncates section names
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015 Kubilay Kocak changed: What|Removed |Added CC||toolch...@freebsd.org Severity|Affects Only Me |Affects Some People Flags||mfc-stable13+, ||mfc-stable12? Status|New |In Progress Assignee|toolch...@freebsd.org |ema...@freebsd.org --- Comment #5 from Kubilay Kocak --- ^Triage: Assign to committer resolving, track merges to stable/* -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list 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"
[Bug 246015] readelf -S truncates section names
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015 --- Comment #4 from commit-h...@freebsd.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=207f4289711423b4ffb2f92520b8f2a4a03350de commit 207f4289711423b4ffb2f92520b8f2a4a03350de Author: Ed Maste AuthorDate: 2021-02-02 14:35:04 + Commit: Ed Maste CommitDate: 2021-02-18 19:31:28 + readelf: do not trucate section name with -W PR: 246015 Reviewed by:cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28461 (cherry picked from commit 847dfd2803f6c8b077e3ebc68e35adff2c79a65f) contrib/elftoolchain/readelf/readelf.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) -- 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"
[Bug 246015] readelf -S truncates section names
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015 --- Comment #3 from commit-h...@freebsd.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=847dfd2803f6c8b077e3ebc68e35adff2c79a65f commit 847dfd2803f6c8b077e3ebc68e35adff2c79a65f Author: Ed Maste AuthorDate: 2021-02-02 14:35:04 + Commit: Ed Maste CommitDate: 2021-02-03 21:24:22 + readelf: do not trucate section name with -W PR: 246015 Reviewed by:cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28461 contrib/elftoolchain/readelf/readelf.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) -- 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"
[Bug 246015] readelf -S truncates section names
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015 --- Comment #2 from Ed Maste --- Aside, readelf -t does display the full name -- 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"
[Bug 246015] readelf -S truncates section names
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"
[Bug 246015] readelf -S truncates section names
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246015 Conrad Meyer changed: What|Removed |Added Assignee|b...@freebsd.org|toolch...@freebsd.org CC||ema...@freebsd.org -- 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"