[Bug binutils/19383] New: strip generates section names in wrong order
https://sourceware.org/bugzilla/show_bug.cgi?id=19383 Bug ID: 19383 Summary: strip generates section names in wrong order Product: binutils Version: 2.24 Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: fizixer at gmail dot com Target Milestone: --- After running strip on an object file, the order of section names turns out incorrect. 'Sections: offsets' before strip: data: 512 text: 528 shstrtab: 576 symtab: 640 strtab: 816 rela.text: 864 section names in shstrtab: data, text, shstrtab, symtab, strtab, rela.text After strip: data: 64 text: 80 shstrtab: 119 section names in shstrtab: shstrtab, data, text Did I discover a bug, or am I missing something? I'm using GNU strip 2.24 (Ubuntu 14.04) on x86-64. Code is nasm hello world program[1], compiled with nasm 2.10.09, ld 2.24 (but ld is irrelevant here since I analyzed the nasm-generated object file only). EDIT 1: readelf reports it correctly (in both cases) so I'm not sure what is going on. [1] http://docs.cs.up.ac.za/programming/asm/derick_tut/quickstart.html -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19383] strip generates section names in wrong order
https://sourceware.org/bugzilla/show_bug.cgi?id=19383 Fi Zixer changed: What|Removed |Added Version|2.24|2.25 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19383] strip generates section names in wrong order
https://sourceware.org/bugzilla/show_bug.cgi?id=19383 --- Comment #1 from Fi Zixer --- Bug confirmed in strip 2.25 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19383] strip generates section names in wrong order
https://sourceware.org/bugzilla/show_bug.cgi?id=19383 --- Comment #2 from Fi Zixer --- Not a bug. shstrtab string are accessed by offsets (first field in sht entries). Closing now. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19383] strip generates section names in wrong order
https://sourceware.org/bugzilla/show_bug.cgi?id=19383 Fi Zixer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Fi Zixer --- Not a bug. shstrtab string are accessed by offsets (first field in sht entries). Closing now. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils