All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: linux-parisc@vger.kernel.org
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	John David Anglin <dave.anglin@bell.net>,
	Sven Schnelle <svens@stackframe.org>
Subject: [PATCH] parisc: Do not export __lshrdi3 on 64-bit with gcc >= 11
Date: Sat, 27 Nov 2021 11:58:18 +0100	[thread overview]
Message-ID: <20211127105818.299902-1-deller@gmx.de> (raw)

It seems the __lshrdi3 symbol was dropped from libgcc.a from gcc-11 for
64-bit executables.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/kernel/parisc_ksyms.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/parisc/kernel/parisc_ksyms.c b/arch/parisc/kernel/parisc_ksyms.c
index 00297e8e1c88..f26c51370255 100644
--- a/arch/parisc/kernel/parisc_ksyms.c
+++ b/arch/parisc/kernel/parisc_ksyms.c
@@ -14,6 +14,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/syscalls.h>
+#include <linux/compiler.h>

 #include <linux/string.h>
 EXPORT_SYMBOL(memset);
@@ -94,16 +95,19 @@ EXPORT_SYMBOL($$divI_15);

 extern void __ashrdi3(void);
 extern void __ashldi3(void);
-extern void __lshrdi3(void);
 extern void __muldi3(void);
 extern void __ucmpdi2(void);

 EXPORT_SYMBOL(__ashrdi3);
 EXPORT_SYMBOL(__ashldi3);
-EXPORT_SYMBOL(__lshrdi3);
 EXPORT_SYMBOL(__muldi3);
 EXPORT_SYMBOL(__ucmpdi2);

+#if !(defined(CONFIG_64BIT) && (GCC_VERSION >= 110000))
+extern void __lshrdi3(void);
+EXPORT_SYMBOL(__lshrdi3);
+#endif
+
 asmlinkage void * __canonicalize_funcptr_for_compare(void *);
 EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);

--
2.31.1


             reply	other threads:[~2021-11-27 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27 10:58 Helge Deller [this message]
2021-11-27 16:32 ` [PATCH] parisc: Do not export __lshrdi3 on 64-bit with gcc >= 11 John David Anglin
2021-11-27 21:52   ` John David Anglin
2021-11-27 22:08     ` Helge Deller
2021-11-27 22:25       ` John David Anglin

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=20211127105818.299902-1-deller@gmx.de \
    --to=deller@gmx.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=dave.anglin@bell.net \
    --cc=linux-parisc@vger.kernel.org \
    --cc=svens@stackframe.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.