qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [patch] ppc linker script fix


From: Paul Brook
Subject: [Qemu-devel] [patch] ppc linker script fix
Date: Wed, 1 Jun 2005 16:46:08 +0100
User-agent: KMail/1.7.2

The attached patch adds some missing definitions to the ppc linker script.
These are required to link qemu on my ydl4 system.
They are consistent with the definitions used on other hosts.

Paul
Index: ppc.ld
===================================================================
RCS file: /cvsroot/qemu/qemu/ppc.ld,v
retrieving revision 1.1
diff -u -p -r1.1 ppc.ld
--- ppc.ld      18 Feb 2003 23:35:48 -0000      1.1
+++ ppc.ld      1 Jun 2005 15:28:24 -0000
@@ -53,6 +53,16 @@ SECTIONS
   _etext = .;
   PROVIDE (etext = .);
   .fini      : { *(.fini)    } =0x47ff041f
+  . = ALIGN(32 / 8);
+  PROVIDE (__preinit_array_start = .);
+  .preinit_array     : { *(.preinit_array) }
+  PROVIDE (__preinit_array_end = .);
+  PROVIDE (__init_array_start = .);
+  .init_array     : { *(.init_array) }
+  PROVIDE (__init_array_end = .);
+  PROVIDE (__fini_array_start = .);
+  .fini_array     : { *(.fini_array) }
+  PROVIDE (__fini_array_end = .);
   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
   .rodata1   : { *(.rodata1) }
   .reginfo : { *(.reginfo) }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]