[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bugs in gnu assembler for IA64

From: Nick Clifton
Subject: Re: Possible bugs in gnu assembler for IA64
Date: Sat, 25 Oct 2008 11:07:22 +0100
User-agent: Thunderbird (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
        (\pr) ptr.i \va,\sz
nop.m 0x0
 emul_ptr_i p1, r1, r2

Comment : both the ptr.i instructions go into the .text
section. 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 putting
the instructions in their respective sections.

Are you sure ?  This did not work when I tried it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]