#210 new
Peter Johnson

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

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Pages