bug-binutils
[Top][All Lists]
Advanced

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

[BUG] cr16-elf-as: .long directive offset is not resolved if section nam


From: M R Swami Reddy
Subject: [BUG] cr16-elf-as: .long directive offset is not resolved if section name with ""aw",@progbits"
Date: Thu, 02 Jul 2009 11:28:35 +0530
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

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





reply via email to

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