On RHEL5.1, compile the following gcc code. The compiled ELF code doesn't 
contain parasection which is defined by pushsection/popsection in the gcc code.
The compiled .o file still contains parasection. But the linked ELF loses the 
section. If changing linker to ld V2.18, the issue is still existing.

The issue is likely either the ld issue or the linked libraries issue.

This is a road blocker for some critical Linux kernel new features to 
function. Please help root cause and fix the issue.

int foo2(int a)
{
return a*10;
}

int foo (int a, int b)
{
        return a+b;
}

main()
{
        int x,y;
        //asm volatile ("br.call b0=foo;;");
        asm volatile ("mov out0=out0;;\t .pushsection .parasections;\t mov 
out0=out0;;\t.popsection");
        y = foo2(6);
        asm volatile ("mov out0=out0;;");
        x= foo(5,6);

        return x+y;
}

-- 
           Summary: pushsection/popsection doesn't work on Itanium
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: critical
          Priority: P1
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: fenghua dot yu at intel dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=5871

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to