summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-05-16 15:19:22 +0530
committerSubrata Banik <subratabanik@google.com>2024-05-24 08:10:56 +0000
commit36e2b97e4cdaeb065265ed79b77f130747308b61 (patch)
tree837f3e011868e35113480ddffeff993892848c67 /payloads/libpayload/arch/x86
parent814ae3b05507726938b0f9a9ba0c3a2a37e7b295 (diff)
libpayload: Inject head.S into libc, remove separate class
Integrate head.S directly into libc and remove all instances of head.o. * Drop 'separate class' entry for head.S. * Drop special treament for head.o inside lpgcc. * Change the .text in `x86/head.S` to `.section .text._entry`. * Drop arch/mock/head.c, initially added as a dummy file. Change-Id: I156d781908fcc38d455bbf9f2c29e5ab95c7775a Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82478 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/arch/x86')
-rw-r--r--payloads/libpayload/arch/x86/Makefile.mk2
-rw-r--r--payloads/libpayload/arch/x86/head.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/arch/x86/Makefile.mk b/payloads/libpayload/arch/x86/Makefile.mk
index 196415d7a2..d2c33b4fb8 100644
--- a/payloads/libpayload/arch/x86/Makefile.mk
+++ b/payloads/libpayload/arch/x86/Makefile.mk
@@ -30,7 +30,7 @@ ifneq ($(CONFIG_LP_COMPILER_LLVM_CLANG),y)
CFLAGS += -mpreferred-stack-boundary=2
endif
-head.o-y += head.S
+libc-y += head.S
libc-y += main.c sysinfo.c
libc-y += timer.c coreboot.c util.S
libc-y += exec.S virtual.c
diff --git a/payloads/libpayload/arch/x86/head.S b/payloads/libpayload/arch/x86/head.S
index 99842cd54b..26ba901d5a 100644
--- a/payloads/libpayload/arch/x86/head.S
+++ b/payloads/libpayload/arch/x86/head.S
@@ -29,7 +29,7 @@
.code32
.global _entry
- .text
+ .section .text._entry
.align 4
/*