Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2020 04:09:22 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368781 - stable/12/libexec/rtld-elf/i386
Message-ID:  <202012190409.0BJ49MMa093761@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012190409.0BJ49MMa093761>