mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
IA-64: Fix linker error with --no-keep-memory.
bfd/ PR 15904 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl call, set changed_contents and changed_relocs. Likewise after successful ia64_elf_relax_br call.
This commit is contained in:
@ -593,6 +593,9 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
|
|||||||
1, change it to slot 2. */
|
1, change it to slot 2. */
|
||||||
if ((irel->r_offset & 3) == 1)
|
if ((irel->r_offset & 3) == 1)
|
||||||
irel->r_offset += 1;
|
irel->r_offset += 1;
|
||||||
|
|
||||||
|
changed_contents = TRUE;
|
||||||
|
changed_relocs = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@ -607,6 +610,9 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
|
|||||||
|
|
||||||
/* Make the relocation offset point to slot 1. */
|
/* Make the relocation offset point to slot 1. */
|
||||||
irel->r_offset = (irel->r_offset & ~((bfd_vma) 0x3)) + 1;
|
irel->r_offset = (irel->r_offset & ~((bfd_vma) 0x3)) + 1;
|
||||||
|
|
||||||
|
changed_contents = TRUE;
|
||||||
|
changed_relocs = TRUE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user