unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Vineet Gupta via Libc-alpha <libc-alpha@sourceware.org>
To: Vladimir Isaev <Vladimir.Isaev@synopsys.com>,
	Andreas Schwab <schwab@linux-m68k.org>,
	Vladimir Isaev via Libc-alpha <libc-alpha@sourceware.org>
Cc: Cupertino Miranda <Cupertino.Miranda@synopsys.com>,
	Florian Weimer <fweimer@redhat.com>,
	"linux-snps-arc@lists.infradead.org"
	<linux-snps-arc@lists.infradead.org>,
	Joseph Myers <joseph@codesourcery.com>
Subject: Re: [PATCH] elf: _dl_fixup*: make @reloc_arg 64-bit safe
Date: Mon, 2 Aug 2021 23:18:41 +0000	[thread overview]
Message-ID: <4782a11e-fdf6-5b52-f805-06b485fda19e@synopsys.com> (raw)
In-Reply-To: <BY5PR12MB4131E40A7C1EB2F154F36A30DFE49@BY5PR12MB4131.namprd12.prod.outlook.com>

Hi Joseph, Adhemerval, Florian

On 7/22/21 6:58 AM, Vladimir Isaev via Libc-alpha wrote:
> 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.

Any objections to this change - OK to commit ?

-Vineet


      reply	other threads:[~2021-08-02 23:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 13:22 [PATCH] elf: _dl_fixup*: make @reloc_arg 64-bit safe Vladimir Isaev via Libc-alpha
2021-07-22 13:39 ` Andreas Schwab
2021-07-22 13:58   ` Vladimir Isaev via Libc-alpha
2021-08-02 23:18     ` Vineet Gupta via Libc-alpha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4782a11e-fdf6-5b52-f805-06b485fda19e@synopsys.com \
    --to=libc-alpha@sourceware.org \
    --cc=Cupertino.Miranda@synopsys.com \
    --cc=Vineet.Gupta1@synopsys.com \
    --cc=Vladimir.Isaev@synopsys.com \
    --cc=fweimer@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).