From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH 2/3] loongarch64: Use la.pcrel instead of la.
Date: Tue, 8 Apr 2025 15:16:24 +0000 [thread overview]
Message-ID: <20250408151657.3303174-3-phcoder@gmail.com> (raw)
In-Reply-To: <20250408151657.3303174-1-phcoder@gmail.com>
la.pcrel unlike la should work even above 4GiB mark.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
grub-core/kern/loongarch64/efi/startup.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/loongarch64/efi/startup.S
index 87cfb23ea..a6476b360 100644
--- a/grub-core/kern/loongarch64/efi/startup.S
+++ b/grub-core/kern/loongarch64/efi/startup.S
@@ -26,9 +26,9 @@ FUNCTION(_start)
* EFI_SYSTEM_TABLE and EFI_HANDLE are passed in $a1/$a0.
*/
- la $a2, EXT_C(grub_efi_image_handle)
+ la.pcrel $a2, EXT_C(grub_efi_image_handle)
st.d $a0, $a2, 0
- la $a2, EXT_C(grub_efi_system_table)
+ la.pcrel $a2, EXT_C(grub_efi_system_table)
st.d $a1, $a2, 0
b EXT_C(grub_main)
--
2.49.0
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2025-04-08 15:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 15:16 [PATCH 0/3] Use -shared compilation instead of -Wl,-r Vladimir Serbinenko
2025-04-08 15:16 ` [PATCH 1/3] Use ET_DYN instead of ET_REL modules Vladimir Serbinenko
2025-04-23 22:36 ` Glenn Washburn
2025-04-08 15:16 ` Vladimir Serbinenko [this message]
2025-04-08 15:16 ` [PATCH 3/3] Use ET_DYN images and PHDRs for creating relocatable images Vladimir Serbinenko
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=20250408151657.3303174-3-phcoder@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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.