linker scripts have no effect on object files
This commit is contained in:
parent
3ae31e3efb
commit
0ef0c0cd8f
2
Makefile
2
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')
|
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}
|
||||||
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
*(.text*)
|
|
||||||
*(.rodata)
|
|
||||||
}
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
*(.data*)
|
|
||||||
}
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
*(.bss*)
|
|
||||||
}
|
|
||||||
.moddeps :
|
|
||||||
{
|
|
||||||
*(.moddeps)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user