direct-io.hg

changeset 11356:af7c87d42bc6

[XEN][POWERPC] Fix PHDR issues with large .data.percpu sections

This patch tells the link to only create one PHDR and place all sections
in it, also removing an unrequired mapping for the .data.percpu section.

This avoids the "Not enough room for program headers (allocated 2, need 3)"

Booted on a JS20.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Aug 17 07:10:57 2006 -0400 (2006-08-17)
parents 8273f730371b
children 9b3b420ec064
files xen/arch/powerpc/xen.lds.S
line diff
     1.1 --- a/xen/arch/powerpc/xen.lds.S	Tue Aug 29 12:23:11 2006 +0100
     1.2 +++ b/xen/arch/powerpc/xen.lds.S	Thu Aug 17 07:10:57 2006 -0400
     1.3 @@ -10,11 +10,15 @@ ENTRY(_start)
     1.4  SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64"); SEARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
     1.5  /* Do we need any of these for elf?
     1.6     __DYNAMIC = 0;    */
     1.7 +PHDRS
     1.8 +{
     1.9 +  text PT_LOAD FILEHDR PHDRS;
    1.10 +}   
    1.11  SECTIONS
    1.12  {
    1.13    /* Read-only sections, merged into text segment: */
    1.14    PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
    1.15 -  .interp         : { *(.interp) }
    1.16 +  .interp         : { *(.interp) } :text
    1.17    .hash           : { *(.hash) }
    1.18    .dynsym         : { *(.dynsym) }
    1.19    .dynstr         : { *(.dynstr) }
    1.20 @@ -121,7 +125,7 @@ SECTIONS
    1.21    __inithcall_end = .;
    1.22  
    1.23    __per_cpu_start = .;
    1.24 -  .data.percpu : { *(.data.percpu) } :text
    1.25 +  .data.percpu : { *(.data.percpu) }
    1.26    __per_cpu_data_end = .;
    1.27    . = __per_cpu_start + (NR_CPUS << PERCPU_SHIFT);
    1.28    . = ALIGN(STACK_SIZE);