Skip to contentSkip to conversation

m68k: consolidate the vmlinux.lds linker scripts

PATCH New [email protected] 1 participant 1 message Dec 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: consolidate the vmlinux.lds linker scripts

From: Greg Ungerer <[email protected]>

The merge of m68knommu left the linker scripts a little disorganized. Some consistent naming and squashing two of scripts that just include others can simplify things a lot.

So merge the two simple including scripts, and rename the nommu script to be consistent with the existing m68k linker scripts.

---
 .../kernel/{vmlinux.lds_no.S => vmlinux-nommu.lds} |    0
 arch/m68k/kernel/vmlinux.lds.S                     |   13 +++++++++++--
 arch/m68k/kernel/vmlinux.lds_mm.S                  |   10 ----------
 3 files changed, 11 insertions(+), 12 deletions(-)
 rename arch/m68k/kernel/{vmlinux.lds_no.S => vmlinux-nommu.lds} (100%)
 delete mode 100644 arch/m68k/kernel/vmlinux.lds_mm.S
arch/m68k/kernel/vmlinux-nommu.lds renamed from arch/m68k/kernel/vmlinux.lds_no.S +0 -0
similarity index 100%
rename from arch/m68k/kernel/vmlinux.lds_no.S
rename to arch/m68k/kernel/vmlinux-nommu.lds
arch/m68k/kernel/vmlinux.lds.S +11 -2
index 030dabf..3d99a04 100644
@@ -1,5 +1,14 @@
 #ifdef CONFIG_MMU
-#include "vmlinux.lds_mm.S"
+PHDRS
+{
+  text PT_LOAD FILEHDR PHDRS FLAGS (7);
+  data PT_LOAD FLAGS (7);
+}
+#ifdef CONFIG_SUN3
+#include "vmlinux-sun3.lds"
 #else
-#include "vmlinux.lds_no.S"
+#include "vmlinux-std.lds"
+#endif
+#else
+#include "vmlinux-nommu.lds"
 #endif
arch/m68k/kernel/vmlinux.lds_mm.S deleted +0 -10
deleted file mode 100644
index 99ba315..0000000
@@ -1,10 +0,0 @@
-PHDRS
-{
-  text PT_LOAD FILEHDR PHDRS FLAGS (7);
-  data PT_LOAD FLAGS (7);
-}
-#ifdef CONFIG_SUN3
-#include "vmlinux-sun3.lds"
-#else
-#include "vmlinux-std.lds"
-#endif
Signature · 1 line
1.7.0.4