do we still care about building with gcc-4.9?
Alan Modra
amodra@gmail.com
Wed Jul 15 22:56:35 GMT 2026
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
More information about the Binutils
mailing list