Correct version of Heikki Lindholms ppc64.ld script

Was butchered by c&p

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5035 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
malc 2008-08-20 22:39:24 +00:00
parent 735ee40d92
commit dc28c732ac
1 changed files with 22 additions and 26 deletions

View File

@ -4,13 +4,12 @@ OUTPUT_FORMAT("elf64-powerpc", "elf64-powerpc",
OUTPUT_ARCH(powerpc:common64) OUTPUT_ARCH(powerpc:common64)
ENTRY(_start) ENTRY(_start)
SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib64"); SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib64");
EARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.164"); SEARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.164");
EARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64");
EARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/powerpc64-unknown-linux-gnu/lib");
EARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.1"); SEARCH_DIR("/usr/lib/binutils/powerpc64-unknown-linux-gnu/2.16.1");
EARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); /* Do we
/* Do we need any of these for elf? need any of these for elf? + __DYNAMIC = 0; */
__DYNAMIC = 0; */
SECTIONS SECTIONS
{ {
/* Read-only sections, merged into text segment: */ /* Read-only sections, merged into text segment: */
@ -90,16 +89,13 @@ SECTIONS
.eh_frame_hdr : { *(.eh_frame_hdr) } .eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table))
(.gcc_except_table.*) } *(.gcc_except_table.*) } /* Adjust the address for the data segment. We want to
/* Adjust the address for the data segment. We want to adjust up to adjust up to + the same address within the page on the next page up. */
the same address within the page on the next page up. */ . = ALIGN (0x10000) - ((0x10000 - .) & (0x10000 - 1)); . = DATA_SEGMENT_ALIGN
. = ALIGN (0x10000) - ((0x10000 - .) & (0x10000 - 1)); . = (0x10000, 0x1000); /* Exception handling */
ATA_SEGMENT_ALIGN (0x10000, 0x1000);
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table))
(.gcc_except_table.*) } *(.gcc_except_table.*) } /* Thread Local Storage sections */
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
/* Ensure the __preinit_array_start label is properly aligned. We /* Ensure the __preinit_array_start label is properly aligned. We