From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] ARM: define position-independent __pi_memmove/memset/memcpy
Date: Tue, 22 Apr 2025 09:57:13 +0200 [thread overview]
Message-ID: <20250422075714.221527-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250422075714.221527-1-a.fatoum@pengutronix.de>
From: Ahmad Fatoum <a.fatoum@barebox.org>
For future use in the EFI loader runtime service code, have ARM arch
support define a memcpy that's completely position independent with
the same name as in Linux.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/arm/lib32/memcpy.S | 1 +
arch/arm/lib32/memmove.S | 1 +
arch/arm/lib32/memset.S | 1 +
3 files changed, 3 insertions(+)
diff --git a/arch/arm/lib32/memcpy.S b/arch/arm/lib32/memcpy.S
index ffa4c8f394bf..e48e077c5941 100644
--- a/arch/arm/lib32/memcpy.S
+++ b/arch/arm/lib32/memcpy.S
@@ -62,3 +62,4 @@ WEAK(memcpy)
ENDPROC(memcpy)
ENDPROC(__memcpy)
+SYM_FUNC_ALIAS(__pi_memcpy, __memcpy)
diff --git a/arch/arm/lib32/memmove.S b/arch/arm/lib32/memmove.S
index 6410554039fd..836286bc990f 100644
--- a/arch/arm/lib32/memmove.S
+++ b/arch/arm/lib32/memmove.S
@@ -204,3 +204,4 @@ WEAK(memmove)
UNWIND( .fnend )
ENDPROC(memmove)
ENDPROC(__memmove)
+SYM_FUNC_ALIAS(__pi_memmove, __memmove)
diff --git a/arch/arm/lib32/memset.S b/arch/arm/lib32/memset.S
index b0c0e11e991b..57dd1aa6daad 100644
--- a/arch/arm/lib32/memset.S
+++ b/arch/arm/lib32/memset.S
@@ -132,6 +132,7 @@ UNWIND( .fnstart )
UNWIND( .fnend )
ENDPROC(memset)
ENDPROC(__memset)
+SYM_FUNC_ALIAS(__pi_memset, __memset)
ENTRY(__memset32)
UNWIND( .fnstart )
--
2.39.5
next prev parent reply other threads:[~2025-04-22 8:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-22 7:57 [PATCH 1/3] ARM: drop unused mmiocpy/mmioset symbols Ahmad Fatoum
2025-04-22 7:57 ` Ahmad Fatoum [this message]
2025-04-22 7:57 ` [PATCH 3/3] RISC-V: define position-independent __pi_memmove/memset/memcpy Ahmad Fatoum
2025-04-22 8:57 ` [PATCH 1/3] ARM: drop unused mmiocpy/mmioset symbols Sascha Hauer
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=20250422075714.221527-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.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