svn commit: r368781 - stable/12/libexec/rtld-elf/i386
Ryan Libby
rlibby at FreeBSD.org
Sat Dec 19 04:09:22 UTC 2020
Author: rlibby
Date: Sat Dec 19 04:09:21 2020
New Revision: 368781
URL: https://svnweb.freebsd.org/changeset/base/368781
Log:
MFC r343672 (by vangyzen):
rtld: pacify -Wmaybe-uninitialized from gcc6
Sponsored by: Dell EMC Isilon
Modified:
stable/12/libexec/rtld-elf/i386/reloc.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/libexec/rtld-elf/i386/reloc.c
==============================================================================
--- stable/12/libexec/rtld-elf/i386/reloc.c Sat Dec 19 04:05:08 2020 (r368780)
+++ stable/12/libexec/rtld-elf/i386/reloc.c Sat Dec 19 04:09:21 2020 (r368781)
@@ -146,6 +146,10 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int
} else
cache = NULL;
+ /* Appease some compilers. */
+ symval = 0;
+ def = NULL;
+
rellim = (const Elf_Rel *)((const char *)obj->rel + obj->relsize);
for (rel = obj->rel; rel < rellim; rel++) {
switch (ELF_R_TYPE(rel->r_info)) {
More information about the svn-src-all
mailing list