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

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

 



On Wed, Mar 19, 2008 at 09:20:11PM +0100, Andreas Schwab wrote:
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?

Unfortunately not:

<--  snip  -->

...
  KSYM    .tmp_kallsyms1.S
No valid symbol.
make[1]: *** [.tmp_kallsyms1.S] Error 1

<--  snip  -->

--- 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.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
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