https://sourceware.org/bugzilla/show_bug.cgi?id=19440
Bug ID: 19440 Summary: COFF handling bug. In particular, renders bigobj support broken. Product: binutils Version: unspecified Status: NEW Severity: critical Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: kyrab at mail dot ru Target Milestone: --- Created attachment 8895 --> https://sourceware.org/bugzilla/attachment.cgi?id=8895&action=edit COFF fix There is an egregious bug in COFF handling code resulting in that any object file containing more than 32768 sections is broken. The problem is that 'n_scnum' is declared 'short' in include/coff/internal.h. This leads to that PE+ bigobj format implementation doesn't in fact work properly and also explains why having 2**16 sections as specified by Microsoft never worked before (only 2**15 worked). This also doesn't match other BFD code, where 'target_index' is declared 'int' in 'bfd_section' structure. I've attached the patch solving the problem. -- 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