From: Amelia Coutard <eliottulio.coutard@gmail.com>
Date: Tue, 28 Feb 2023 20:52:59 +0000 (+0100)
Subject: Removed the linker script from the test module: it was unneeded
X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=07def124ccc43dd6a31c2c2d5e066a630b00d892;p=voyage-au-centre-des-fichiers.git

Removed the linker script from the test module: it was unneeded
---

diff --git a/test_module/linker.ld b/test_module/linker.ld
deleted file mode 100644
index f94ccb2..0000000
--- a/test_module/linker.ld
+++ /dev/null
@@ -1,44 +0,0 @@
-ENTRY(_start)
-
-SECTIONS {
-	. = 1M;
-
-	. = ALIGN(4K);
-	.text ALIGN(4K) : AT(ADDR(.text)) {
-		*(.text)
-		*(.text*)
-		*(.gnu.linkonce.t*)
-		. = ALIGN(8);
-		*(.init)
-		. = ALIGN(8);
-		*(.fini)
-		. = ALIGN(8);
-		*(.ctors)
-		. = ALIGN(8);
-		*(.dtors)
-	}
-	.rodata ALIGN(4K) : AT(ADDR(.rodata)) {
-		*(.rodata)
-		*(.rodata*)
-		*(.gnu.linkonce.r*)
-	}
-	.eh_frame ALIGN(4K) : AT(ADDR(.eh_frame)) {
-		*(.eh_frame)
-	}
-	.data ALIGN(4K) : AT(ADDR(.data)) {
-		*(.data)
-		*(.data*)
-		*(.gnu.linkonce.d*)
-	}
-	.bss ALIGN(4K) : AT(ADDR(.bss)) {
-		*(.bss)
-		*(COMMON)
-		*(.bss*)
-		*(.gnu.linkonce.b*)
-	}
-	. = ALIGN(4K);
-
-	/DISCARD/ : {
-		*(.comment)
-	}
-}
diff --git a/test_module/module.mk b/test_module/module.mk
index ddfcc32..dd51dd4 100644
--- a/test_module/module.mk
+++ b/test_module/module.mk
@@ -14,7 +14,7 @@ TO_ISO += isodir/boot/$(EXEC_NAME)
 TO_CLEAN += $(OUT_DIR) $(DEP_DIR)
 
 LOCAL_CXXFLAGS := $(CXXFLAGS)
-LOCAL_LDFLAGS := $(LDFLAGS) -T test_module/linker.ld -z max-page-size=0x1000
+LOCAL_LDFLAGS := $(LDFLAGS)
 
 CPPOBJS := $(patsubst $(SRC_DIR)%,$(OUT_DIR)%.o,$(shell find $(SRC_DIR) -name '*.cpp'))
 ASMOBJS := $(patsubst $(SRC_DIR)%,$(OUT_DIR)%.o,$(shell find $(SRC_DIR) -name '*.S'))