From: Vincent Chen <vincent.chen@sifive.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: GNU C Library <libc-alpha@sourceware.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
darius@bluespec.com, dj@redhat.com
Subject: Re: [RFC PATCH] riscv: Add support for STT_GNU_IFUNC symbols
Date: Fri, 17 Jul 2020 10:50:09 +0800 [thread overview]
Message-ID: <CABvJ_xiuB=G8ysTkSqpCN1ijY_oSuFRoT8sHVvKwwwtwwPAoLA@mail.gmail.com> (raw)
In-Reply-To: <87lfjtt6yb.fsf@igel.home>
On Thu, Jul 9, 2020 at 4:42 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Jul 09 2020, Vincent Chen wrote:
>
> > diff --git a/sysdeps/riscv/dl-irel.h b/sysdeps/riscv/dl-irel.h
> > new file mode 100644
> > index 0000000..9dd8de9
> > --- /dev/null
> > +++ b/sysdeps/riscv/dl-irel.h
> > @@ -0,0 +1,53 @@
> > +/* Machine-dependent ELF indirect relocation inline functions.
> > + RISC-V version.
> > + Copyright (C) 2012-2020 Free Software Foundation, Inc.
>
> I think that should list only 2020 as copyright year.
>
> > diff --git a/sysdeps/riscv/dl-machine.h b/sysdeps/riscv/dl-machine.h
> > index 03db94a..728e6d3 100644
> > --- a/sysdeps/riscv/dl-machine.h
> > +++ b/sysdeps/riscv/dl-machine.h
>
> > @@ -248,7 +256,12 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
> > break;
> > }
> > #endif
> > -
> > + case R_RISCV_IRELATIVE:
> > + value = map->l_addr + reloc->r_addend;
> > + if (__glibc_likely (!skip_ifunc))
> > + value = elf_ifunc_invoke (value);
> > + *addr_field = value;
> > + break;
> > case R_RISCV_JUMP_SLOT:
> > case __WORDSIZE == 64 ? R_RISCV_64 : R_RISCV_32:
> > *addr_field = value;
>
> Please keep the empty line between each case bock.
>
> Andreas.
Thank you for pointing out my mistakes. I will modify them in my next
version patch
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
next prev parent reply other threads:[~2020-07-17 2:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 8:26 Vincent Chen
2020-07-09 8:42 ` Andreas Schwab
2020-07-17 2:50 ` Vincent Chen [this message]
2020-07-09 16:40 ` Joseph Myers
2020-07-17 2:53 ` Vincent Chen
2020-07-10 23:16 ` Jim Wilson
2020-07-17 3:05 ` Vincent Chen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABvJ_xiuB=G8ysTkSqpCN1ijY_oSuFRoT8sHVvKwwwtwwPAoLA@mail.gmail.com' \
--to=vincent.chen@sifive.com \
--cc=darius@bluespec.com \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=palmer@dabbelt.com \
--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).