]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/xen/x86_64: Add missing segment alignement for `xen`
authorAndrei Stan <andreistan2003@gmail.com>
Mon, 20 Nov 2023 21:32:57 +0000 (23:32 +0200)
committerAndrei Stan <andreistan2003@gmail.com>
Mon, 20 Nov 2023 22:06:51 +0000 (00:06 +0200)
Make the second segment in a `xen/x86-64` ELF aligned to the page size.
This fixes a memory overlap issue that triggers an assert during
memory coalescing.

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
plat/xen/x86/link64.lds.S

index c996cb392083009fb9f8786ba41f240468aa212e..a567fcc99a70a5f9a5b98391095aa53f880cb452 100644 (file)
@@ -55,6 +55,8 @@ SECTIONS
 
        _etext = .;                     /* End of text section */
 
+       . = ALIGN(__PAGE_SIZE);
+
        _rodata = .;
        .rodata : {
                *(.rodata)