[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/3132] Incorrect 16-bit relocations in ELF
From: |
amodra at gmail dot com |
Subject: |
[Bug gas/3132] Incorrect 16-bit relocations in ELF |
Date: |
Wed, 24 Aug 2022 13:59:57 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=3132
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|ld |gas
--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
This is a gas problem. gas is generating R_H8_DIR16 for the .word expression,
which is wrong. The expression needs a 16 bit pc-relative reloc instead, or
gas should be resolving the "label-." expression itself. It doesn't resolve
the expression because h8300 sets linkrelax and there is no logic to detect
that the expression is pc-relative and does not cross a region that could
change size.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/3132] Incorrect 16-bit relocations in ELF,
amodra at gmail dot com <=