Re: Use of uninitialized variables in binutils-2.17

2016-07-31 Thread Philip Guenther
On Sun, Jul 31, 2016 at 10:00 AM, Stefan Kempf wrote: > clang errors out about use of undefined variables when building > binutils-2.17. > > In elf.c, do not increment `s' before it is initialized. At the time > of the increment, `s' is otherwise unused anyway. Indeed, it's dead there. > In elf

Re: Use of uninitialized variables in binutils-2.17

2016-07-31 Thread Jeremie Courreges-Anglas
Stefan Kempf writes: > clang errors out about use of undefined variables when building > binutils-2.17. > > In elf.c, do not increment `s' before it is initialized. At the time > of the increment, `s' is otherwise unused anyway. > > In elflink.c, initialize sec_contents and l_sec_contents to make

Use of uninitialized variables in binutils-2.17

2016-07-31 Thread Stefan Kempf
clang errors out about use of undefined variables when building binutils-2.17. In elf.c, do not increment `s' before it is initialized. At the time of the increment, `s' is otherwise unused anyway. In elflink.c, initialize sec_contents and l_sec_contents to make sure that the free(sec_contents) a