Support COMDAT section/symbol for Windows(COFF)
Reported by Peter Johnson | June 25th, 2011 @ 07:52 PM | in 1.3.0
Originally posted on Trac by yin@absoft.com
Original
Trac Ticket
Description
After retrying the latest Yasm, we didn't found it supported COMDAT section for Windows like what generated by declspec(selectany) by Visual Studio. Please support this feature because it is a solution for some C++ features.
Trac Attachments
h3. Trac Comments
comment:1
Changed 8 months ago by peter@tortall.net
Any suggestions as to the assembler syntax for this? Also, an example object/source file would be helpful. Thanks!
comment:2
Changed 4 months ago by hopperpl@googlemail.com
Microsoft COMDAT specification can be found here:
msdn.microsoft.com/windows/hardware/gg463125
segment .text comdat=
If yasm doesn't support multiple segments with the same name (COFF does) and combines them automatically, we have the option to create segments with a sub name, separated by $ e.g. .text$one and .text$two The MS linker combines such segments later to .text [all must have the same RWX access or multiple segments according to RWX are created].
Comments and changes to this ticket
-

Peter Johnson June 25th, 2011 @ 08:22 PM
- → Milestone set to 1.2.0
- → Assigned user set to Peter Johnson
-

Peter Johnson October 31st, 2011 @ 05:37 AM
- → Milestone changed from 1.2.0 to 1.3.0
Bumping to 1.3.0.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Yasm Modular Assembler Project