[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/22049] PowerPC VLE: Lower 16 bit address offset not calculated
From: |
amodra at gmail dot com |
Subject: |
[Bug gas/22049] PowerPC VLE: Lower 16 bit address offset not calculated properly in some cases |
Date: |
Thu, 31 Aug 2017 01:25:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22049
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |amodra at gmail dot com
Resolution|--- |WORKSFORME
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Seems to already be fixed, if this bug ever existed. Disassembly of
relocatable object files won't always show you what you might expect, since the
instruction fields may have relocations. It pays to use objdump -dr to see the
relocs.
Note that this
e_lis r4, address@hidden
e_ori r4, r4, address@hidden
is incorrect and *will* result in wrong addresses in the final linked object
for half the possible addresses of data0. You need to use @hi to set the high
16 bits when using ori to set the low 16 bits.
--
You are receiving this mail because:
You are on the CC list for the bug.