aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index a2a4be8..10da820 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -5185,6 +5185,17 @@ elf_x86_64_link_setup_gnu_properties (struct bfd_link_info *info)
plt_layout.normal_target = FALSE;
}
+ if (ABI_64_P (info->output_bfd))
+ {
+ plt_layout.r_info = elf64_r_info;
+ plt_layout.r_sym = elf64_r_sym;
+ }
+ else
+ {
+ plt_layout.r_info = elf32_r_info;
+ plt_layout.r_sym = elf32_r_sym;
+ }
+
return _bfd_x86_elf_link_setup_gnu_properties (info, &plt_layout);
}