[LLVMdev] Adding support to LLVM for data & code layout (neededby GHC)

Sam Martin sam.martin at geomerics.com
Thu Jun 17 04:00:40 PDT 2010


Hi,

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
toolchain?

Cheers,
Sam

-----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
mentioned).

The key is that gnu as supports a feature called subsections.

http://sourceware.org/binutils/docs-2.20/as/Sub_002dSections.html#Sub_00
2dSections

<snip>




More information about the llvm-dev mailing list