ia64/xen-unstable

changeset 12941:f7096a6728e6

[POWERPC][XEN] Fix yaboot loading and other linker script tweaks.
yaboot refuses to load segments at file offset 0, so move the ELF headers out
of our text segment. Also hardcode the link address in the linker script, and
remove the now-inaccurate start/end comments.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Fri Oct 06 12:15:06 2006 -0500 (2006-10-06)
parents 3bd514d3e078
children 0f4c73a1e92a
files xen/arch/powerpc/Makefile xen/arch/powerpc/xen.lds.S
line diff
     1.1 --- a/xen/arch/powerpc/Makefile	Thu Oct 05 16:06:42 2006 -0500
     1.2 +++ b/xen/arch/powerpc/Makefile	Fri Oct 06 12:15:06 2006 -0500
     1.3 @@ -96,7 +96,7 @@ endif
     1.4  cmdline.o: cmdline.dep
     1.5  cmdline.o: CFLAGS += -DCMDLINE="\"$(FULL_CMDLINE)\""
     1.6  
     1.7 -TARGET_OPTS = $(OMAGIC) -Wl,-Ttext,0x400000,-T,xen.lds
     1.8 +TARGET_OPTS = $(OMAGIC) -Wl,-T,xen.lds
     1.9  TARGET_OPTS += start.o $(ALL_OBJS)
    1.10  
    1.11  .xen-syms: start.o $(ALL_OBJS) xen.lds
     2.1 --- a/xen/arch/powerpc/xen.lds.S	Thu Oct 05 16:06:42 2006 -0500
     2.2 +++ b/xen/arch/powerpc/xen.lds.S	Fri Oct 06 12:15:06 2006 -0500
     2.3 @@ -12,12 +12,12 @@ SEARCH_DIR("=/usr/local/lib64"); SEARCH_
     2.4     __DYNAMIC = 0;    */
     2.5  PHDRS
     2.6  {
     2.7 -  text PT_LOAD FILEHDR PHDRS;
     2.8 +  text PT_LOAD;
     2.9  }   
    2.10  SECTIONS
    2.11  {
    2.12 +  . = 0x00400000;
    2.13    /* Read-only sections, merged into text segment: */
    2.14 -  PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
    2.15    .interp         : { *(.interp) } :text
    2.16    .hash           : { *(.hash) }
    2.17    .dynsym         : { *(.dynsym) }
    2.18 @@ -111,8 +111,6 @@ SECTIONS
    2.19      SORT(CONSTRUCTORS)
    2.20    }
    2.21  
    2.22 -  /* Xen addition */
    2.23 -
    2.24    . = ALIGN(32);
    2.25    __setup_start = .;
    2.26    .setup.init : { *(.setup.init) }
    2.27 @@ -131,8 +129,6 @@ SECTIONS
    2.28    . = ALIGN(STACK_SIZE);
    2.29    __per_cpu_end = .;
    2.30  
    2.31 -  /* end Xen addition */
    2.32 -
    2.33    .data1          : { *(.data1) }
    2.34    .tdata	  : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
    2.35    .tbss		  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }