[Bug c/105172] New: RV64: gcc generates R_RISCV_ALIGN with a non-power-of-two value
rui314 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 6 03:27:55 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105172
Bug ID: 105172
Summary: RV64: gcc generates R_RISCV_ALIGN with a
non-power-of-two value
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: rui314 at gmail dot com
Target Milestone: ---
It is reported against the mold linker
(https://github.com/rui314/mold/issues/419), but I believe it's GCC"s bug.
It looks like GCC sometimes create a R_RISCV_ALIGN relocation with a
non-power-of-two requirement alignment, as you can see in the above bug report.
That simply doesn't make sense and strongly suggests that something is not
working as intended in GCC. I believe all R_RISV_ALIGN relocations have a
power-of-two value.
More information about the Gcc-bugs
mailing list