Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159164879
D8707.id22696.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
682 B
Referenced Files
None
Subscribers
None
D8707.id22696.diff
View Options
Index: contrib/elftoolchain/readelf/readelf.c
===================================================================
--- contrib/elftoolchain/readelf/readelf.c
+++ contrib/elftoolchain/readelf/readelf.c
@@ -6557,13 +6557,14 @@
}
if ((name = elf_strptr(re->elf, shstrndx, sh.sh_name)) == NULL) {
(void) elf_errno();
- name = "ERROR";
+ name = "<no-name>";
}
if ((ndx = elf_ndxscn(scn)) == SHN_UNDEF) {
- if ((elferr = elf_errno()) != 0)
+ if ((elferr = elf_errno()) != 0) {
warnx("elf_ndxscn failed: %s",
elf_errmsg(elferr));
- continue;
+ continue;
+ }
}
if (ndx >= re->shnum) {
warnx("section index of '%s' out of range", name);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 11, 8:15 PM (2 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33889481
Default Alt Text
D8707.id22696.diff (682 B)
Attached To
Mode
D8707: readelf(1) -S: Include zero index and match binutils' no-name
Attached
Detach File
Event Timeline
Log In to Comment