Re: m68k: kernel build error with binutils >= 2.18

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

 



Adrian Bunk <bunk@xxxxxxxxx> writes:

m68k-linux-ld: .tmp_vmlinux1: Not enough room for program headers, try linking with -N
m68k-linux-ld: final link failed: Bad value
make[1]: *** [.tmp_vmlinux1] Error 1

Does that help?

--- linux/arch/m68k/kernel/vmlinux-std.lds	01 Dez 2007 11:55:39 +0100	1.11
+++ linux/arch/m68k/kernel/vmlinux-std.lds	19 Mär 2008 21:18:33 +0100	
@@ -6,6 +6,12 @@ OUTPUT_FORMAT("elf32-m68k", "elf32-m68k"
 OUTPUT_ARCH(m68k)
 ENTRY(_start)
 jiffies = jiffies_64 + 4;
+
+PHDRS {
+	text PT_LOAD FLAGS(5);	/* R_E */
+	data PT_LOAD FLAGS(7);	/* RWE */
+	note PT_NOTE FLAGS(0);	/* ___ */
+}
 SECTIONS
 {
   . = 0x1000;
@@ -26,6 +32,8 @@ SECTIONS
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
 
+  NOTES :text :note
+
   RODATA
 
   .data : {			/* Data */

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux