[haiku-commits] haiku: hrev44180 - src/system/ldscripts/ppc

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 17 May 2012 23:55:25 +0200 (CEST)

hrev44180 adds 1 changeset to branch 'master'
old head: b011337e20bf312aa0d12536b86d51f4267f0ffc
new head: 61d7e757094737adb33780054a5279397a6d1042

----------------------------------------------------------------------------

61d7e75: U-Boot ppc: Add missing sections to ldscript
  
  * it seems we missed some sections that exist on ppc, add them.
  * resulting binary runs a little further in QEMU but still screws up.

                                          [ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44180
Commit:      61d7e757094737adb33780054a5279397a6d1042
URL:         http://cgit.haiku-os.org/haiku/commit/?id=61d7e75
Author:      François Revol <revol@xxxxxxx>
Date:        Thu May 17 21:52:35 2012 UTC

----------------------------------------------------------------------------

1 file changed, 5 insertions(+), 2 deletions(-)
src/system/ldscripts/ppc/boot_loader_u-boot.ld |    7 +++++--

----------------------------------------------------------------------------

diff --git a/src/system/ldscripts/ppc/boot_loader_u-boot.ld 
b/src/system/ldscripts/ppc/boot_loader_u-boot.ld
index 1318b75..61649d0 100644
--- a/src/system/ldscripts/ppc/boot_loader_u-boot.ld
+++ b/src/system/ldscripts/ppc/boot_loader_u-boot.ld
@@ -7,7 +7,7 @@ SECTIONS
        . = BOARD_LOADER_BASE;
 
        /* text/read-only data */
-       .text : { *(.text .gnu.linkonce.t.*) }
+       .text : { *(.text .text.* .gnu.linkonce.t.*) }
 
        . = ALIGN(0x4);
        __ctor_list = .;
@@ -20,10 +20,13 @@ SECTIONS
        . = ALIGN(0x1000);
        __data_start = .;
        .data : { *(.data .gnu.linkonce.d.*) }
+       .data.rel.ro : { *(.data.rel.ro.local .data.rel.ro*) }
+       .got : { *(.got .got2) }
 
        /* uninitialized data (in same segment as writable data) */
        __bss_start = .;
-       .bss : { *(.bss) }
+       .sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.*) }
+       .bss : { *(.bss .bss.* .gnu.linkonce.b.*) }
 
        . = ALIGN(0x1000);
        _end = . ;


Other related posts:

  • » [haiku-commits] haiku: hrev44180 - src/system/ldscripts/ppc - revol