diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2020-12-19 04:09:21 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2020-12-19 04:09:21 +0000 |
commit | 673b7213cb32622f5aeb0bd8ad7063a4230ae4e3 (patch) | |
tree | 95b6650a35ea3489ea3563262f9be92134059c13 | |
parent | 3fb56c614a998452d26da3727193bd4ed5af3862 (diff) | |
download | src-test2-673b7213cb32622f5aeb0bd8ad7063a4230ae4e3.tar.gz src-test2-673b7213cb32622f5aeb0bd8ad7063a4230ae4e3.zip |
MFC r343672 (by vangyzen):
rtld: pacify -Wmaybe-uninitialized from gcc6
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/stable/12/; revision=368781
-rw-r--r-- | libexec/rtld-elf/i386/reloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/rtld-elf/i386/reloc.c b/libexec/rtld-elf/i386/reloc.c index 67b9828887fe..b4bd09d677b4 100644 --- a/libexec/rtld-elf/i386/reloc.c +++ b/libexec/rtld-elf/i386/reloc.c @@ -146,6 +146,10 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags, } 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)) { |