.long directive offset is not resolved if the section name ith ""aw",@progbits"

Consider a test case:
====test_eh.s====
     .file "test_eh.cc"
     .section .eh_frame,"aw",@progbits
# .section .eh_frame
.Lframe1:
     .long .LECIE1-.LSCIE1
.LSCIE1:
     .long 0x0
.LECIE1:
     .ident "GCC: (GNU) 4.1.2"
====

Command line:

> cr16-elf-gcc test_eh.s -c
> cr16-elf-objdump -r test_eh.o
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET TYPE VALUE
00000000 R_CR16_SWITCH32 .LECIE1+0x00000004 // WRONG

Ideally the R_CR16_SWITCH32 should be resolved by cr16-elf-as .

NOTE: If the section is with ","aw",@progbits", then AS tool resolve
the relocation.

-- 
           Summary: .long offset is not resolved
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: critical
          Priority: P3
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: MR dot Swami dot Reddy at nsc dot com
                CC: MR dot Swami dot Reddy at nsc dot com,bug-binutils at
                    gnu dot org
  GCC host triplet: Native linux
GCC target triplet: cr16-elf-


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

------- 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