https://sourceware.org/bugzilla/show_bug.cgi?id=16711
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gmail dot com --- Comment #1 from Alan Modra <amodra at gmail dot com> --- Confirmed. This is seen when linking the linux kernel. [36] .data_nosave PROGBITS c000000008906000 8916000 001000 00 WA 0 0 4 [37] .bss NOBITS c000000008910000 8920000 2e32ba0 00 WA 0 0 65536 [38] .comment PROGBITS 0000000000000000 b752ba0 000039 01 MS 0 0 1 LOAD 0x010000 0xc000000000000000 0x0000000000000000 0xb742ba0 0xb742ba0 RWE 0x10000 Note the file offset of .comment and p_filesz == p_memsz in the load header. Also seen with existing gold tests that use a script, eg. tls_script_test [32] .got.plt PROGBITS 0000000010101f38 001f38 000070 00 WA 0 0 8 [33] .bss NOBITS 0000000010202060 002060 000100 00 WA 0 0 32 [34] .comment PROGBITS 0000000000000000 002160 000035 01 MS 0 0 1 I started debugging this and it seems like the problem lies in Output_segment::set_section_addresses where we have if (i < static_cast<int>(ORDER_SMALL_BSS)) { this->filesz_ = *poff - orig_off; off = *poff; } and sections in a script are not sorted into output_lists_[] by ORDER_*. -- 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