[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel 2.6 for m68k/amiga



Hi,

Geert Uytterhoeven wrote:

Does no one know how to tell the linker file not to put a stack program header
in the final object?

The attached patch might help, the output looks ok, but I haven't actually booted the kernel yet...

bye, Roman
Index: arch/m68k/kernel/vmlinux-std.lds
===================================================================
RCS file: /home/linux-m68k/cvsroot/linux/arch/m68k/kernel/vmlinux-std.lds,v
retrieving revision 1.3
diff -u -p -r1.3 vmlinux-std.lds
--- arch/m68k/kernel/vmlinux-std.lds	10 May 2004 18:39:29 -0000	1.3
+++ arch/m68k/kernel/vmlinux-std.lds	17 Aug 2004 18:33:48 -0000
@@ -15,7 +15,7 @@ SECTIONS
 	SCHED_TEXT
 	*(.fixup)
 	*(.gnu.warning)
-	} = 0x4e75
+	} :text = 0x4e75
 
   . = ALIGN(16);		/* Exception table */
   __start___ex_table = .;
@@ -29,7 +29,7 @@ SECTIONS
   .data : {			/* Data */
 	*(.data)
 	CONSTRUCTORS
-	}
+	} :data
 
   .bss : { *(.bss) }		/* BSS */
 
Index: arch/m68k/kernel/vmlinux.lds.S
===================================================================
RCS file: /home/linux-m68k/cvsroot/linux/arch/m68k/kernel/vmlinux.lds.S,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vmlinux.lds.S
--- arch/m68k/kernel/vmlinux.lds.S	23 Aug 2003 12:05:42 -0000	1.1.1.1
+++ arch/m68k/kernel/vmlinux.lds.S	17 Aug 2004 18:33:48 -0000
@@ -1,5 +1,9 @@
 #include <linux/config.h>
-
+PHDRS
+{
+  text PT_LOAD FILEHDR PHDRS FLAGS (5);
+  data PT_LOAD FLAGS (6);
+}
 #ifdef CONFIG_SUN3
 #include "vmlinux-sun3.lds"
 #else

Reply to: