[binutils-gdb] Re: loongarch readelf support
Alan Modra
amodra@sourceware.org
Tue Jun 6 10:43:43 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d3f340763bab7c74838ebb481fd7ff93acd9f00c
commit d3f340763bab7c74838ebb481fd7ff93acd9f00c
Author: Alan Modra <amodra@gmail.com>
Date: Tue Jun 6 19:56:56 2023 +0930
Re: loongarch readelf support
Commit 89c70cd358b8 apparently results in a bogus "value may be used
uninitialized" warning with some combination of compiler and
optimisation options.
* readelf.c (target_specific_reloc_handling): Init value.
Diff:
---
binutils/readelf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 23d3e21bea6..c3e5c587afe 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -14017,7 +14017,7 @@ target_specific_reloc_handling (Filedata *filedata,
case 107: /* R_LARCH_ADD_ULEB128. */
case 108: /* R_LARCH_SUB_ULEB128. */
{
- uint64_t value;
+ uint64_t value = 0;
unsigned int reloc_size = 0;
int leb_ret = 0;
More information about the Binutils-cvs
mailing list