mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
Fix thinko in previous change to elf32-msp430.c
This commit is contained in:
@ -2227,8 +2227,10 @@ msp430_elf_relax_section (bfd * abfd, asection * sec,
|
||||
|
||||
/* Try to turn a 16-bit absolute branch into a 10-bit pc-relative
|
||||
branch. */
|
||||
if (ELF32_R_TYPE (irel->r_info) == R_MSP430X_ABS16
|
||||
|| ELF32_R_TYPE (irel->r_info) == R_MSP430_16)
|
||||
if ((uses_msp430x_relocs (abfd)
|
||||
&& ELF32_R_TYPE (irel->r_info) == R_MSP430X_ABS16)
|
||||
|| (! uses_msp430x_relocs (abfd)
|
||||
&& ELF32_R_TYPE (irel->r_info) == R_MSP430_16))
|
||||
{
|
||||
bfd_vma value = symval;
|
||||
|
||||
|
Reference in New Issue
Block a user