* [PATCH] ARM: Pass dl_hwcap to IFUNC resolver functions.
@ 2013-07-02 11:01 Will Newton
2013-07-02 13:02 ` Joseph S. Myers
0 siblings, 1 reply; 2+ messages in thread
From: Will Newton @ 2013-07-02 11:01 UTC (permalink / raw)
To: libc-ports; +Cc: patches
elf_ifunc_invoke passes dl_hwcap to IFUNC resolvers, so we should
do the same when fixing up R_ARM_IRELATIVE relocs in elf_machine_rela.
ports/ChangeLog.arm:
2013-07-02 Will Newton <will.newton@linaro.org>
* sysdeps/arm/dl-machine.h (elf_machine_rela): Pass dl_hwcap
to IFUNC resolver functions.
---
ports/sysdeps/arm/dl-machine.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h
index 4cf87a9..d251527 100644
--- a/ports/sysdeps/arm/dl-machine.h
+++ b/ports/sysdeps/arm/dl-machine.h
@@ -595,7 +595,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
break;
case R_ARM_IRELATIVE:
value = map->l_addr + *reloc_addr;
- value = ((Elf32_Addr (*) (void)) value) ();
+ value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap));
*reloc_addr = value;
break;
#endif
--
1.8.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: Pass dl_hwcap to IFUNC resolver functions.
2013-07-02 11:01 [PATCH] ARM: Pass dl_hwcap to IFUNC resolver functions Will Newton
@ 2013-07-02 13:02 ` Joseph S. Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph S. Myers @ 2013-07-02 13:02 UTC (permalink / raw)
To: Will Newton; +Cc: libc-ports, patches
On Tue, 2 Jul 2013, Will Newton wrote:
> elf_ifunc_invoke passes dl_hwcap to IFUNC resolvers, so we should
> do the same when fixing up R_ARM_IRELATIVE relocs in elf_machine_rela.
>
> ports/ChangeLog.arm:
>
> 2013-07-02 Will Newton <will.newton@linaro.org>
>
> * sysdeps/arm/dl-machine.h (elf_machine_rela): Pass dl_hwcap
> to IFUNC resolver functions.
Thanks, committed.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-02 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-02 11:01 [PATCH] ARM: Pass dl_hwcap to IFUNC resolver functions Will Newton
2013-07-02 13:02 ` Joseph S. Myers
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).