]> xenbits.xensource.com Git - people/aperard/xtf.git/commitdiff
link: Introduce _start[] to match _end[]
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 4 Nov 2019 13:03:39 +0000 (13:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 4 Nov 2019 13:03:39 +0000 (13:03 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/include/arch/xtf.h
arch/x86/link.lds.S

index 8c951cd13a5f7611ee1c06a3df3eb54d77f3b22f..da75ac85647d7694a5a442db9def8dba1fe0f3c6 100644 (file)
@@ -16,7 +16,7 @@
 #include <arch/tsx.h>
 #include <arch/x86-dbg-reg.h>
 
-extern char _end[];
+extern char _start[], _end[];
 
 /*** Misc helpers which are library code, but really want to be inline. ***/
 
index 916b671084e5c4f2fd93d73cdd3be7346940166a..91df1e898a5110578d44f89722e094ec6c180cc0 100644 (file)
@@ -34,6 +34,8 @@ SECTIONS
 {
         . = SEGMENT_START("text-segment", MB(1));
 
+        _start = .;
+
         .text : {
                 *(.text)