PR 26419
* elf-m10300.c (mn10300_elf_relax_section): Don't attempt access
before start of section.
+2020-08-25 Alan Modra <amodra@gmail.com>
+
+ PR 26419
+ * elf-m10300.c (mn10300_elf_relax_section): Don't attempt access
+ before start of section.
+
2020-08-25 Alan Modra <amodra@gmail.com>
* elf-m10300.c (elf32_mn10300_hash_table): Test is_elf_hash_table
/* See if the value will fit in 24 bits.
We allow any 16bit match here. We prune those we can't
handle below. */
- if ((long) value < 0x7fffff && (long) value > -0x800000)
+ if (value + 0x800000 < 0x1000000 && irel->r_offset >= 3)
{
unsigned char code;
/* See if the value will fit in 16 bits.
We allow any 16bit match here. We prune those we can't
handle below. */
- if ((long) value < 0x7fff && (long) value > -0x8000)
+ if (value + 0x8000 < 0x10000 && irel->r_offset >= 2)
{
unsigned char code;