Skip to content

Commit 5d3adee

Browse files
committed
microblaze: fix R_MICROBLAZE_32_NONE relaxation reloc isn't updated
Its size still uses the outdated 2=long notation and based on R_MICROBLAZE_NONE reloc, it shouldn't be PC_RELATIVE. Signed-off-by: Alp Sayin <alpsayin@gmail.com>
1 parent f66bf6b commit 5d3adee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bfd/elf32-microblaze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ static reloc_howto_type microblaze_elf_howto_raw[] =
177177
/* This reloc does nothing. Used for relaxation. */
178178
HOWTO (R_MICROBLAZE_32_NONE, /* Type. */
179179
0, /* Rightshift. */
180-
2, /* Size (0 = byte, 1 = short, 2 = long). */
180+
4, /* Size */
181181
32, /* Bitsize. */
182-
true, /* PC_relative. */
182+
false, /* PC_relative. */
183183
0, /* Bitpos. */
184184
complain_overflow_bitfield, /* Complain on overflow. */
185185
NULL, /* Special Function. */

0 commit comments

Comments
 (0)