[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/19440] New: COFF handling bug. In particular, renders bigo
From: |
kyrab at mail dot ru |
Subject: |
[Bug binutils/19440] New: COFF handling bug. In particular, renders bigobj support broken. |
Date: |
Sat, 09 Jan 2016 13:01:47 +0000 |
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/19440] New: COFF handling bug. In particular, renders bigobj support broken.,
kyrab at mail dot ru <=
- [Bug binutils/19440] COFF handling bug. In particular, renders bigobj support broken., nickc at redhat dot com, 2016/01/13
- [Bug binutils/19440] COFF handling bug. In particular, renders bigobj support broken., kyrab at mail dot ru, 2016/01/13
- [Bug binutils/19440] COFF handling bug. In particular, renders bigobj support broken., cvs-commit at gcc dot gnu.org, 2016/01/18
- [Bug binutils/19440] COFF handling bug. In particular, renders bigobj support broken., nickc at redhat dot com, 2016/01/18