[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/1568] New: COFF code section should be read only
From: |
vahur dot sinijarv at cydonia dot ee |
Subject: |
[Bug gas/1568] New: COFF code section should be read only |
Date: |
27 Oct 2005 13:58:03 -0000 |
To create object files which are link-compatible with MS Visual C, the "x" flag
in .section directive should also set read only flag in COFF section. Otherwise
MS linker will complain about multiple segments with different attributes and
in fact will not merge such section with other code sections.
I tracked down the problem to the function obj_coff_section in file config/obj-
coff.c where line
case 'x': flags |= SEC_CODE | SEC_LOAD; break;
should be changed to
case 'x': flags |= SEC_CODE | SEC_LOAD | SEC_READONLY; break;
Read/write code sections are possible then by specifying "wx" as section
attributes.
--
Summary: COFF code section should be read only
Product: binutils
Version: 2.17 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: vahur dot sinijarv at cydonia dot ee
CC: bug-binutils at gnu dot org
GCC build triplet: i686-pc-mingw32
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32
http://sourceware.org/bugzilla/show_bug.cgi?id=1568
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/1568] New: COFF code section should be read only,
vahur dot sinijarv at cydonia dot ee <=
- Re: [Bug gas/1568] New: COFF code section should be read only, Nick Clifton, 2005/10/28
- [Bug gas/1568] COFF code section should be read only, nickc at redhat dot com, 2005/10/28
- [Bug gas/1568] COFF code section should be read only, nickc at redhat dot com, 2005/10/28
- [Bug gas/1568] COFF code section should be read only, nickc at redhat dot com, 2005/10/28
- [Bug gas/1568] COFF code section should be read only, vahur dot sinijarv at cydonia dot ee, 2005/10/29