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:
parent
735ee40d92
commit
dc28c732ac
26
ppc64.ld
26
ppc64.ld
|
@ -4,13 +4,12 @@ OUTPUT_FORMAT("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/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: */
|
||||
|
@ -90,16 +89,13 @@ SECTIONS
|
|||
.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.*) } /* 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 */
|
||||
*(.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
|
||||
|
|
Loading…
Reference in New Issue