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
.endm
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.
Cheers
Nick
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils