|
From: | Nick Clifton |
Subject: | Re: Possible bugs in gnu assembler for IA64 |
Date: | Sat, 25 Oct 2008 11:07:22 +0100 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Hi Surbhi,
Here is a easier pointer to the bug1:
I am not an IA64 expert, but I took a look at this problem.
.macro emul_ptr_i pr=p0,va,sz .section "test", "a", "progbits" (\pr) ptr.i \va,\sz .previous (\pr) ptr.i \va,\sz .endmnop.m 0x0emul_ptr_i p1, r1, r2 Comment : both the ptr.i instructions go into the .textsection. The first instruction is supposed to go in the "test" section.
The problem it seems to me is that the "test" section is a data section and so the assembler does not want to put code into it. (Maybe the assembler should trust the program and put instructions there, but it certainly does not seem to want to). Anyway if I change the .section directive in your test case to:
.section "test", "ax", "progbits"then the test works and the first ptr.i instruction is placed into the "test" section.
Putting a .align(16) before the instruction insertion in the "test" section and after the .popsection, helps in puttingthe instructions in their respective sections.
Are you sure ? This did not work when I tried it. Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |