[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/19977] [mips] gas writes incorrect addendum for %tprel_hi reloc
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/19977] [mips] gas writes incorrect addendum for %tprel_hi relocation |
Date: |
Thu, 04 Apr 2024 10:34:40 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19977
--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f38e9921479a00b4e7a72a79088106859ec5fabc
commit f38e9921479a00b4e7a72a79088106859ec5fabc
Author: Alan Modra <amodra@gmail.com>
Date: Sat Mar 2 08:10:34 2024 +1030
MIPS HI16 and LO16 reloc howtos
All the HI16 reloc howtos should have a rightshift of 16, and all the
LO16 relocs shouldn't complain on overflow. This was correct for
R_MIPS_LO16 and R_MIPS_LO16 (at least on the howto_table_rel entries),
and corresponding MIPS16, MICROMIPS and MIPS64 relocs, but not on many
other HI16 and LO16 relocs.
While we're at it, fix the HIGHER and HIGHEST rightshift too.
These changes are necessary to support addends outside the range
[0,32767] when those addends are stored in section contents. Note
that some of the reloc howtos changed here will always have zero
addends (GOT_HI16, CALL_HI16). Those don't really need changing, but
use what is clearly correct for hi16 relocs anyway.
PR 19977
* elf32-mips.c: Correct rightshift for HI16, HIGHER and HIGHEST
reloc howtos. Correct complain_on_overflow for LO16 relocs.
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
--
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/19977] [mips] gas writes incorrect addendum for %tprel_hi relocation,
cvs-commit at gcc dot gnu.org <=