Re: do we still care about building with gcc-4.9?

Alan Modra <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On Thu, Jul 16, 2026 at 12:26:45AM +0200, Christian Groessler wrote:
> Couldn't you just remove the initializer? Like
> 
> 		  Elf_Internal_Shdr section;
> 		  section.sh_offset
> 		    = filedata->dynamic_info[DT_RELR];
> 		  section.sh_size = rel_size;
> 		  section.sh_entsize = rel_entsz;
> 		  section.sh_type = SHT_RELR;

That would leave other fields uninitialised.  I didn't check whether
that actually matters in this case, but HJ wrote this code with the
struct var zeroed so I didn't want to change that.

-- 
Alan Modra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.