aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-ia64.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2018-02-26 14:05:13 -0800
committerJim Wilson <jimw@sifive.com>2018-02-26 14:05:13 -0800
commit6f6372fadcfffc89ef511d51323678f88624be5c (patch)
treea2273c9777cc90953115fa70f9f28f17225c2c6f /bfd/elfnn-ia64.c
parent3275ef477498e0500d7ea440f1bc51787acf4610 (diff)
downloadgdb-6f6372fadcfffc89ef511d51323678f88624be5c.zip
gdb-6f6372fadcfffc89ef511d51323678f88624be5c.tar.gz
gdb-6f6372fadcfffc89ef511d51323678f88624be5c.tar.bz2
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.
Diffstat (limited to 'bfd/elfnn-ia64.c')
-rw-r--r--bfd/elfnn-ia64.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elfnn-ia64.c b/bfd/elfnn-ia64.c
index 595316d..84b1af1 100644
--- a/bfd/elfnn-ia64.c
+++ b/bfd/elfnn-ia64.c
@@ -593,6 +593,9 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
1, change it to slot 2. */
if ((irel->r_offset & 3) == 1)
irel->r_offset += 1;
+
+ changed_contents = TRUE;
+ changed_relocs = TRUE;
}
continue;
@@ -607,6 +610,9 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
/* Make the relocation offset point to slot 1. */
irel->r_offset = (irel->r_offset & ~((bfd_vma) 0x3)) + 1;
+
+ changed_contents = TRUE;
+ changed_relocs = TRUE;
continue;
}