Fix rtld-elf compilation warning for powerpc64 ELFv2 ABI

Summary: reloc_jmpslot function parameter 'defobj' is not used when using ELFv2
ABI

Submitted by:	alfredo.junior_eldorado.org.br
Reviewed By: kib, git_bdragon.rtk0.net, emaste, jhibbits
Differential Revision: https://reviews.freebsd.org/D18808
This commit is contained in:
Justin Hibbits 2019-01-13 02:33:20 +00:00
parent 02f2e80c3f
commit b6abe132d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342985

View File

@ -447,7 +447,7 @@ reloc_jmpslots(Obj_Entry *obj, int flags, RtldLockState *lockstate)
* Update the value of a PLT jump slot.
*/
Elf_Addr
reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *defobj,
reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *defobj __unused,
const Obj_Entry *obj __unused, const Elf_Rel *rel __unused)
{