diff --git a/arch/x86/CMakeLists.txt b/arch/x86/CMakeLists.txt index 049f6e52be1..3d4729e3041 100644 --- a/arch/x86/CMakeLists.txt +++ b/arch/x86/CMakeLists.txt @@ -234,7 +234,7 @@ if(CONFIG_GDT_DYNAMIC) -I binary -B ${OUTPUT_ARCH} -O ${OUTPUT_FORMAT} - --rename-section .data=gdt_ram_data + --rename-section .data=gdt gdt.bin gdt.o WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} diff --git a/include/arch/x86/linker.ld b/include/arch/x86/linker.ld index d5ca64886aa..7924df82560 100644 --- a/include/arch/x86/linker.ld +++ b/include/arch/x86/linker.ld @@ -331,7 +331,7 @@ SECTIONS . = ALIGN(8); _gdt = .; #ifdef LINKER_PASS2 - KEEP(*(gdt_ram_data)) + KEEP(*(gdt)) #else /* LINKER_PASS2 */ #ifdef CONFIG_USERSPACE