[PATCH] elf: _dl_fixup*: make @reloc_arg 64-bit safe

Vladimir Isaev Vladimir.Isaev at synopsys.com
Thu Jul 22 06:58:53 PDT 2021


On Jul 22 2021, Andreas Schwab wrote:
> 
> On Jul 22 2021, Vladimir Isaev via Libc-alpha wrote:
> 
> > diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c
> > index 9d0d941000..6099a44ffb 100644
> > --- a/elf/dl-runtime.c
> > +++ b/elf/dl-runtime.c
> > @@ -56,7 +56,7 @@ _dl_fixup (
> >  # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
> >  	   ELF_MACHINE_RUNTIME_FIXUP_ARGS,
> >  # endif
> > -	   struct link_map *l, ElfW(Word) reloc_arg)
> > +	   struct link_map *l, uintptr_t reloc_arg)
> 
> ElfW(Addr)?
> 

We can use it, but I think that uintptr_t is more natural here because it is used
in reloc_offset and reloc_index.

Thank you,
Vladimir Isaev



More information about the linux-snps-arc mailing list