From 0ef0c0cd8faac9ab1eb560e1ef4ff44958728435 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 7 Oct 2018 12:06:17 +0900 Subject: [PATCH] linker scripts have no effect on object files --- Makefile | 2 +- modules/link.ld | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 modules/link.ld diff --git a/Makefile b/Makefile index aa206e35..83cdb44d 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ MODULES = $(patsubst modules/%.c,fatbase/mod/%.ko,$(wildcard modules/*.c)) HEADERS = $(shell find base/usr/include/kernel -type f -name '*.h') fatbase/mod/%.ko: modules/%.c ${HEADERS} | fatbase/mod - ${KCC} -T modules/link.ld -nostdlib ${KCFLAGS} -c -o $@ $< + ${KCC} -nostdlib ${KCFLAGS} -c -o $@ $< modules: ${MODULES} diff --git a/modules/link.ld b/modules/link.ld deleted file mode 100644 index f3cac6e8..00000000 --- a/modules/link.ld +++ /dev/null @@ -1,20 +0,0 @@ -SECTIONS -{ - .text : - { - *(.text*) - *(.rodata) - } - .data : - { - *(.data*) - } - .bss : - { - *(.bss*) - } - .moddeps : - { - *(.moddeps) - } -}