[lld] r245880 - Add support for reading files with more than 0xff00 sections.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 19:17:56 PDT 2015


Hmm, I guess gnu as doesn't have a notion of variable assignment at
assemble time.

Anyway, something like this should work:

.macro  range_inclusive from, to
.section foo,"ax", at progbits,unique,\from
.if \to-\from
range_inclusive "(\from+1)",\to
.endif
.endm

range_inclusive 1,20

-- Sean Silva

On Tue, Sep 8, 2015 at 6:59 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> On 4 September 2015 at 23:09, Sean Silva <chisophugis at gmail.com> wrote:
> > Can you use .rept for this?
>
> I don't think so. .rept always creates identical lines, so we can
> switch to the same section 0xff00 times, but would still just create
> 1, no?
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150908/d1ee7db8/attachment.html>


More information about the llvm-commits mailing list