arch/x86: complete 64-bit linker script
The previous linker script was barebones and non-standard. It is replaced with a script conforms to the rest of the Zephyr arches, utilizing include/linker headers and standard macros. link-tool-gcc.h is updated to account for the "i386:x86-64" arch and the generation of 64-bit ELF binaries. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
2bb59fc84e
commit
3cf1bff71c
3 changed files with 78 additions and 58 deletions
|
@ -8,12 +8,6 @@
|
|||
#include <autoconf.h>
|
||||
#include <generated_dts_board.h>
|
||||
|
||||
#ifdef CONFIG_X86_LONGMODE
|
||||
|
||||
#include <arch/x86/intel64/linker.ld>
|
||||
|
||||
#else /* IA32 */
|
||||
|
||||
#define PHYS_LOAD_ADDR DT_PHYS_RAM_ADDR
|
||||
#define PHYS_RAM_ADDR DT_PHYS_RAM_ADDR
|
||||
|
||||
|
@ -30,6 +24,8 @@ MEMORY
|
|||
IDT_LIST : ORIGIN = 2K, LENGTH = 2K
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86_LONGMODE
|
||||
#include <arch/x86/intel64/linker.ld>
|
||||
#else
|
||||
#include <arch/x86/ia32/linker.ld>
|
||||
|
||||
#endif /* CONFIG_X86_LONGMODE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue