Commit 761de242 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Fix up MIPS vmlinux.lds.S

Untested, but at least it should show how to adapt the mips arch.
parent 6c5216e2
......@@ -266,11 +266,11 @@ endif
# error messages during linking. Select a default linkscript if
# none has been choosen above.
#
vmlinux: arch/$(ARCH)/ld.script
vmlinux: arch/$(ARCH)/vmlinux.lds.s
arch/$(ARCH)/ld.script: arch/$(ARCH)/ld.script.in arch/$(ARCH)/Makefile
sed -e 's/@@LOADADDR@@/$(LOADADDR)/' <$< >$@
LDFLAGS_vmlinux += -T arch/$(ARCH)/ld.script
LDFLAGS_vmlinux += -T arch/$(ARCH)/vmlinux.lds.s
AFLAGS_vmlinux.lds.o := -DLOADADDR=$(LOADADDR)
HEAD := arch/mips/kernel/head.o arch/mips/kernel/init_task.o
......
......@@ -3,7 +3,7 @@ ENTRY(kernel_entry)
SECTIONS
{
/* Read-only sections, merged into text segment: */
. = @@LOADADDR@@;
. = LOADADDR;
.init : { *(.init) } =0
.text :
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment