[LLVMdev] Adding support to LLVM for data & code layout (neededby GHC)
641 at rudkx.com
Thu Jun 17 20:34:01 PDT 2010
The Microsoft COFF format and linker support what they call section
groupings, which are very similar. You can have an object file with a
section like ".text$foo" and another (or the same) with ".text$bar"
and they will be ordered alphabetically in the final image (and merged
into .text, after all of the "regular" .text sections).
This is documented in the Microsoft COFF documentation.
On Thu, Jun 17, 2010 at 4:00 AM, Sam Martin <sam.martin at geomerics.com> wrote:
> Does anyone know whether subsections are specific to the gnu assembler
> or whether they are supported by other assemblers, such as masm?
> Or put another way, will this limit the assembly output to the gnu
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of David Terei
> Sent: 15 June 2010 14:18
> To: Andrew Lenharth
> Cc: Simon Marlow; LLVM Developers Mailing List
> Subject: Re: [LLVMdev] Adding support to LLVM for data & code layout
> (neededby GHC)
> Hi all,
> Just wanted to report that I've found a second way to achieve
> data/code layout (the first being the linker script that Eugene
> The key is that gnu as supports a feature called subsections.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev