linker scripts have no effect on object files

This commit is contained in:
K. Lange 2018-10-07 12:06:17 +09:00
parent 3ae31e3efb
commit 0ef0c0cd8f
2 changed files with 1 additions and 21 deletions

View File

@ -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') HEADERS = $(shell find base/usr/include/kernel -type f -name '*.h')
fatbase/mod/%.ko: modules/%.c ${HEADERS} | fatbase/mod fatbase/mod/%.ko: modules/%.c ${HEADERS} | fatbase/mod
${KCC} -T modules/link.ld -nostdlib ${KCFLAGS} -c -o $@ $< ${KCC} -nostdlib ${KCFLAGS} -c -o $@ $<
modules: ${MODULES} modules: ${MODULES}

View File

@ -1,20 +0,0 @@
SECTIONS
{
.text :
{
*(.text*)
*(.rodata)
}
.data :
{
*(.data*)
}
.bss :
{
*(.bss*)
}
.moddeps :
{
*(.moddeps)
}
}