From 08a19af3c78e8a03f83bc354b50545136c03edd2 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Mon, 4 Nov 2019 13:03:39 +0000 Subject: [PATCH] link: Introduce _start[] to match _end[] Signed-off-by: Andrew Cooper --- arch/x86/include/arch/xtf.h | 2 +- arch/x86/link.lds.S | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/arch/xtf.h b/arch/x86/include/arch/xtf.h index 8c951cd..da75ac8 100644 --- a/arch/x86/include/arch/xtf.h +++ b/arch/x86/include/arch/xtf.h @@ -16,7 +16,7 @@ #include #include -extern char _end[]; +extern char _start[], _end[]; /*** Misc helpers which are library code, but really want to be inline. ***/ diff --git a/arch/x86/link.lds.S b/arch/x86/link.lds.S index 916b671..91df1e8 100644 --- a/arch/x86/link.lds.S +++ b/arch/x86/link.lds.S @@ -34,6 +34,8 @@ SECTIONS { . = SEGMENT_START("text-segment", MB(1)); + _start = .; + .text : { *(.text) -- 2.39.5