summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/sparc64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-12-01 20:36:48 +0000
committerjhb <jhb@FreeBSD.org>2016-12-01 20:36:48 +0000
commit3673260fc9cd940469688433ec5f09ca53d19107 (patch)
treea072e04921e54dd0e8edfd2db415454f8fb6556a /libexec/rtld-elf/sparc64
parenteb77968c18f03c2025c676c2567f9afb4589263a (diff)
downloadFreeBSD-src-3673260fc9cd940469688433ec5f09ca53d19107.zip
FreeBSD-src-3673260fc9cd940469688433ec5f09ca53d19107.tar.gz
MFC 308456: Pass the correct flag to find_symdef() from _rtld_bind().
When symbol versioning was added to rtld, the boolean 'in_plt' argument to find_symdef() was converted to a bitmask of flags. The first flag added was 'SYMLOOK_IN_PLT' which replaced the 'in_plt' bool. This happened to still work by accident as SYMLOOK_IN_PLT had the value of 1 which is the same as 'true', so there should be no functional change.
Diffstat (limited to 'libexec/rtld-elf/sparc64')
-rw-r--r--libexec/rtld-elf/sparc64/reloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/sparc64/reloc.c b/libexec/rtld-elf/sparc64/reloc.c
index ab16879..197c66c 100644
--- a/libexec/rtld-elf/sparc64/reloc.c
+++ b/libexec/rtld-elf/sparc64/reloc.c
@@ -503,7 +503,7 @@ reloc_plt(Obj_Entry *obj)
assert(ELF64_R_TYPE_ID(rela->r_info) == R_SPARC_JMP_SLOT);
where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
- true, NULL, lockstate);
+ SYMLOOK_IN_PLT, NULL, lockstate);
value = (Elf_Addr)(defobj->relocbase + def->st_value);
*where = value;
}
OpenPOWER on IntegriCloud