Revert "linker.ld: Work around portability issue"
This reverts commit 1929fda490
.
This commit is contained in:
parent
8d9603b566
commit
fe90ab4f39
|
@ -42,7 +42,7 @@ override INTERNALLDFLAGS := \
|
|||
-nostdlib \
|
||||
-static \
|
||||
-Wl,-z,max-page-size=0x1000 \
|
||||
-Wl,-T,linker-$(ARCH).ld
|
||||
-Wl,-T,linker.ld
|
||||
|
||||
# Set archtecture specific variables (and check that the architecture is supported).
|
||||
ifeq ($(ARCH),x86_64)
|
||||
|
@ -56,8 +56,9 @@ ifeq ($(ARCH),x86_64)
|
|||
-mno-sse2 \
|
||||
-mno-red-zone \
|
||||
-mcmodel=kernel
|
||||
override INTERNALLDFLAGS += \
|
||||
-Wl,-m,elf_x86_64
|
||||
override INTERNALLDFLAGS += \
|
||||
-Wl,-m,elf_x86_64 \
|
||||
-Wl,--oformat=elf64-x86-64
|
||||
else
|
||||
$(error Architecture $(ARCH) not supported)
|
||||
endif
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
/* Tell the linker that we want an x86_64 ELF64 output file */
|
||||
OUTPUT_FORMAT(elf64-x86-64)
|
||||
OUTPUT_ARCH(i386:x86-64)
|
||||
|
||||
/* We want the symbol _start to be our entry point */
|
||||
ENTRY(_start)
|
||||
|
Loading…
Reference in a new issue