From e58efb17cc65df51da9c890de0ffef0cb6b34377 Mon Sep 17 00:00:00 2001 From: p-szafonimateusz Date: Wed, 21 Aug 2024 08:33:33 +0200 Subject: [PATCH] qemu-intel64: simplify linker script simplify linker script for qemu-intel64 - remove not needed AT instructions Signed-off-by: p-szafonimateusz --- boards/x86_64/intel64/qemu-intel64/scripts/qemu.ld | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boards/x86_64/intel64/qemu-intel64/scripts/qemu.ld b/boards/x86_64/intel64/qemu-intel64/scripts/qemu.ld index 4702c25b38..ecce7c852b 100644 --- a/boards/x86_64/intel64/qemu-intel64/scripts/qemu.ld +++ b/boards/x86_64/intel64/qemu-intel64/scripts/qemu.ld @@ -67,7 +67,8 @@ SECTIONS _etext = ABSOLUTE(.); } - .rodata ALIGN(0x1000) : AT ( (LOADADDR (.text) + SIZEOF (.text) + 0xFFF) & 0xFFFFFFFFFFFFF000 ) + + .rodata ALIGN(0x1000) : { _srodata = ABSOLUTE(.); *(.rodata .rodata.*) @@ -83,7 +84,7 @@ SECTIONS _erodata = ABSOLUTE(.); } - .data ALIGN(0x1000) : AT ( (LOADADDR (.rodata) + SIZEOF (.rodata) + 0xFFF) & 0xFFFFFFFFFFFFF000 ) + .data ALIGN(0x1000) : { _sdata = ABSOLUTE(.); *(.data .data.*) @@ -93,7 +94,7 @@ SECTIONS _edata = ABSOLUTE(.); } - .bss ALIGN(0x1000) : AT ( (LOADADDR (.data) + SIZEOF (.data) + 0xFFF) & 0xFFFFFFFFFFFFF000 ) + .bss ALIGN(0x1000) : { _sbss = ABSOLUTE(.); *(.bss .bss.*)