* [resend PATCH] Fix miscompilation and thus build on ia64's gcc-10 and later
@ 2023-08-31 14:40 Andreas K. Hüttel
2023-09-11 13:33 ` Carlos O'Donell
0 siblings, 1 reply; 2+ messages in thread
From: Andreas K. Hüttel @ 2023-08-31 14:40 UTC (permalink / raw)
To: libc-alpha; +Cc: Sergei Trofimovich, Andreas K . Hüttel
From: Sergei Trofimovich <slyich@gmail.com>
Needed since gcc-10 enabled -fno-common by default.
[In use in Gentoo since gcc-10, no problems observed.
Also discussed with and reviewed by Jessica Clarke from
Debian. Andreas]
Bug: https://bugs.gentoo.org/723268
Signed-off-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
---
Re-sending this after discussion at the review meeting
and after checking back with Debian (see above). -Andreas
---
sysdeps/unix/sysv/linux/ia64/dl-sysdep.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
index 3e4d5da820..eb7681b704 100644
--- a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
+++ b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
@@ -32,7 +32,9 @@
#ifndef __ASSEMBLER__
/* Don't declare this as a function---we want it's entry-point, not
it's function descriptor... */
-extern int _dl_sysinfo_break attribute_hidden;
+/* Use section ".text" to force far GPREL64 relocation instead of
+ GPREL22 . */
+extern int _dl_sysinfo_break attribute_hidden __attribute__((section(".text")));
# define DL_SYSINFO_DEFAULT ((uintptr_t) &_dl_sysinfo_break)
# define DL_SYSINFO_IMPLEMENTATION \
asm (".text\n\t" \
--
2.41.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [resend PATCH] Fix miscompilation and thus build on ia64's gcc-10 and later
2023-08-31 14:40 [resend PATCH] Fix miscompilation and thus build on ia64's gcc-10 and later Andreas K. Hüttel
@ 2023-09-11 13:33 ` Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2023-09-11 13:33 UTC (permalink / raw)
To: Andreas K. Hüttel, libc-alpha; +Cc: Sergei Trofimovich
On 8/31/23 10:40, Andreas K. Hüttel via Libc-alpha wrote:
> From: Sergei Trofimovich <slyich@gmail.com>
>
> Needed since gcc-10 enabled -fno-common by default.
>
> [In use in Gentoo since gcc-10, no problems observed.
> Also discussed with and reviewed by Jessica Clarke from
> Debian. Andreas]
>
> Bug: https://bugs.gentoo.org/723268
> Signed-off-by: Sergei Trofimovich <slyich@gmail.com>
> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
If this fixes the issue downstream we should push it upstream.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
> ---
> Re-sending this after discussion at the review meeting
> and after checking back with Debian (see above). -Andreas
> ---
> sysdeps/unix/sysv/linux/ia64/dl-sysdep.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
> index 3e4d5da820..eb7681b704 100644
> --- a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
> +++ b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
> @@ -32,7 +32,9 @@
> #ifndef __ASSEMBLER__
> /* Don't declare this as a function---we want it's entry-point, not
> it's function descriptor... */
> -extern int _dl_sysinfo_break attribute_hidden;
> +/* Use section ".text" to force far GPREL64 relocation instead of
> + GPREL22 . */
s/GPREL22 ./GPREL22. *//g
> +extern int _dl_sysinfo_break attribute_hidden __attribute__((section(".text")));
> # define DL_SYSINFO_DEFAULT ((uintptr_t) &_dl_sysinfo_break)
> # define DL_SYSINFO_IMPLEMENTATION \
> asm (".text\n\t" \
--
Cheers,
Carlos.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-11 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-31 14:40 [resend PATCH] Fix miscompilation and thus build on ia64's gcc-10 and later Andreas K. Hüttel
2023-09-11 13:33 ` Carlos O'Donell
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).