Browse Source

linker scripts have no effect on object files

K. Lange 3 years ago
parent
commit
0ef0c0cd8f
2 changed files with 1 additions and 21 deletions
  1. 1 1
      Makefile
  2. 0 20
      modules/link.ld

+ 1 - 1
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}
 

+ 0 - 20
modules/link.ld

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