Hello,

Below test case:
====test_eh.s====
   .file "test_eh.cc"
   .section .eh_frame,"aw",@progbits
   # .section .eh_frame
.L1:
   .long .L3-.L2
.L2:
   .long 0x0
.L3:
   .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 .L1   // 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.



Thanks
Swami



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

Reply via email to