Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVwKs-00021v-QT for qemu-devel@nongnu.org; Wed, 20 Aug 2008 18:39:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVwKs-00021G-88 for qemu-devel@nongnu.org; Wed, 20 Aug 2008 18:39:26 -0400 Received: from [199.232.76.173] (port=57180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVwKr-000212-KL for qemu-devel@nongnu.org; Wed, 20 Aug 2008 18:39:25 -0400 Received: from savannah.gnu.org ([199.232.41.3]:40536 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVwKr-0004ls-7l for qemu-devel@nongnu.org; Wed, 20 Aug 2008 18:39:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KVwKq-0006SQ-KJ for qemu-devel@nongnu.org; Wed, 20 Aug 2008 22:39:24 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KVwKq-0006SM-Fm for qemu-devel@nongnu.org; Wed, 20 Aug 2008 22:39:24 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Wed, 20 Aug 2008 22:39:24 +0000 Subject: [Qemu-devel] [5035] Correct version of Heikki Lindholms ppc64.ld script Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5035 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5035 Author: malc Date: 2008-08-20 22:39:24 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Correct version of Heikki Lindholms ppc64.ld script Was butchered by c&p Modified Paths: -------------- trunk/ppc64.ld Modified: trunk/ppc64.ld =================================================================== --- trunk/ppc64.ld 2008-08-20 22:39:22 UTC (rev 5034) +++ trunk/ppc64.ld 2008-08-20 22:39:24 UTC (rev 5035) @@ -1,16 +1,15 @@ /* Script for -z combreloc: combine and sort reloc sections */ OUTPUT_FORMAT("elf64-powerpc", "elf64-powerpc", - "elf64-powerpc") + "elf64-powerpc") OUTPUT_ARCH(powerpc:common64) ENTRY(_start) -SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib64"); -EARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.164"); -EARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); -EARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib"); -EARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.1"); -EARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); -/* Do we need any of these for elf? - __DYNAMIC = 0; */ +SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib64"); +SEARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.164"); +SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); +SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib"); +SEARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.1"); +SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); /* Do we +need any of these for elf? + __DYNAMIC = 0; */ SECTIONS { /* Read-only sections, merged into text segment: */ @@ -63,7 +62,7 @@ } .rel.plt : { *(.rel.plt) } .rela.plt : { *(.rela.plt) } - .rela.tocbss : { *(.rela.tocbss) } + .rela.tocbss : { *(.rela.tocbss) } .init : { KEEP (*(.init)) @@ -89,19 +88,16 @@ .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } .eh_frame_hdr : { *(.eh_frame_hdr) } .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } - .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) -(.gcc_except_table.*) } - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN (0x10000) - ((0x10000 - .) & (0x10000 - 1)); . = -ATA_SEGMENT_ALIGN (0x10000, 0x1000); - /* Exception handling */ + .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) +*(.gcc_except_table.*) } /* Adjust the address for the data segment. We want to +adjust up to + the same address within the page on the next page up. */ + . = ALIGN (0x10000) - ((0x10000 - .) & (0x10000 - 1)); . = DATA_SEGMENT_ALIGN +(0x10000, 0x1000); /* Exception handling */ .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } - .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) -(.gcc_except_table.*) } - /* Thread Local Storage sections */ - .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } - .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } + .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) +*(.gcc_except_table.*) } /* Thread Local Storage sections */ + .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } + .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } /* Ensure the __preinit_array_start label is properly aligned. We could instead move the label definition inside the section, but the linker would then create the section even if it turns out to @@ -154,9 +150,9 @@ SORT(CONSTRUCTORS) } .data1 : { *(.data1) } - .toc1 ALIGN(8) : { *(.toc1) } - .opd ALIGN(8) : { KEEP (*(.opd)) } - .got ALIGN(8) : { *(.got .toc) } + .toc1 ALIGN(8) : { *(.toc1) } + .opd ALIGN(8) : { KEEP (*(.opd)) } + .got ALIGN(8) : { *(.got .toc) } /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ @@ -167,7 +163,7 @@ _edata = .; PROVIDE (edata = .); __bss_start = .; - .tocbss ALIGN(8) : { *(.tocbss)} + .tocbss ALIGN(8) : { *(.tocbss)} .sbss : { PROVIDE (__sbss_start = .);