https://sourceware.org/bugzilla/show_bug.cgi?id=22049
vincegeg83 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|WORKSFORME |---
--- Comment #3 from vincegeg83 at gmail dot com ---
Thanks, can you confirm whether this is correct? It doesn't seem like it:
Original assembly (attached as test.s):
.org 0x100100
e_b begin
data0:
.short 0x1234
.align 2, 0x44
begin:
e_lis r4, data0@ha
e_lhz r4, data0@l(r4)
_@photon ~/asm
$ powerpc-linux-as -many -mvle -mregnames test.s
_@photon ~/asm
$ powerpc-linux-objdump -dr a.out
a.out: file format elf32-powerpc
Disassembly of section .text:
00000000 <data0-0x100104>:
...
100100: 78 00 00 08 e_b 100108 <begin>
00100104 <data0>:
100104: 12 34 44 44 .long 0x12344444
00100108 <begin>:
100108: 70 80 e0 10 e_lis r4,16
100108: R_PPC_VLE_HA16A .text+0x100104
10010c: 58 84 00 00 e_lhz r4,0(r4)
10010e: R_PPC_ADDR16_LO .text+0x100104
It seems to correctly set the symbol to 0x100104, but note the low 16 bit
decoding is wrong, it's using 0 instead of 0x0104.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils