u-boot.lds.debug 2.56 KB
Newer Older
wdenk's avatar
wdenk committed
1 2 3 4
/*
 * (C) Copyright 2001
 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 *
5
 * SPDX-License-Identifier:	GPL-2.0+
wdenk's avatar
wdenk committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
 */

OUTPUT_ARCH(powerpc)
/* Do we need any of these for elf?
   __DYNAMIC = 0;    */
SECTIONS
{
  /* Read-only sections, merged into text segment: */
  . = + SIZEOF_HEADERS;
  .interp : { *(.interp) }
  .hash          : { *(.hash)		}
  .dynsym        : { *(.dynsym)		}
  .dynstr        : { *(.dynstr)		}
  .rel.text      : { *(.rel.text)	}
Wolfgang Denk's avatar
Wolfgang Denk committed
20
  .rela.text     : { *(.rela.text)	}
wdenk's avatar
wdenk committed
21
  .rel.data      : { *(.rel.data)	}
Wolfgang Denk's avatar
Wolfgang Denk committed
22 23 24
  .rela.data     : { *(.rela.data)	}
  .rel.rodata    : { *(.rel.rodata)	}
  .rela.rodata   : { *(.rela.rodata)	}
wdenk's avatar
wdenk committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
  .rel.got       : { *(.rel.got)	}
  .rela.got      : { *(.rela.got)	}
  .rel.ctors     : { *(.rel.ctors)	}
  .rela.ctors    : { *(.rela.ctors)	}
  .rel.dtors     : { *(.rel.dtors)	}
  .rela.dtors    : { *(.rela.dtors)	}
  .rel.bss       : { *(.rel.bss)	}
  .rela.bss      : { *(.rela.bss)	}
  .rel.plt       : { *(.rel.plt)	}
  .rela.plt      : { *(.rela.plt)	}
  .init          : { *(.init)		}
  .plt : { *(.plt) }
  .text      :
  {
    /* WARNING - the following is hand-optimized to fit within	*/
    /* the sector layout of our flash chips!	XXX FIXME XXX	*/

42
    arch/powerpc/cpu/mpc8xx/start.o	(.text)
wdenk's avatar
wdenk committed
43
    common/dlmalloc.o	(.text)
44 45
    lib/vsprintf.o	(.text)
    lib/crc32.o		(.text)
46
    arch/powerpc/lib/extable.o	(.text)
wdenk's avatar
wdenk committed
47 48

    . = env_offset;
49
    common/env_embedded.o(.text)
wdenk's avatar
wdenk committed
50 51 52 53 54 55 56 57 58 59

    *(.text)
    *(.got1)
  }
  _etext = .;
  PROVIDE (etext = .);
  .rodata    :
  {
    *(.rodata)
    *(.rodata1)
Wolfgang Denk's avatar
Wolfgang Denk committed
60 61
    *(.rodata.str1.4)
    *(.eh_frame)
wdenk's avatar
wdenk committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
  }
  .fini      : { *(.fini)    } =0
  .ctors     : { *(.ctors)   }
  .dtors     : { *(.dtors)   }

  /* Read-write section, merged into data segment: */
  . = (. + 0x0FFF) & 0xFFFFF000;
  _erotext = .;
  PROVIDE (erotext = .);
  .reloc   :
  {
    *(.got)
    _GOT2_TABLE_ = .;
    *(.got2)
    _FIXUP_TABLE_ = .;
    *(.fixup)
  }
  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  __fixup_entries = (. - _FIXUP_TABLE_)>>2;

  .data    :
  {
    *(.data)
    *(.data1)
    *(.sdata)
    *(.sdata2)
    *(.dynamic)
    CONSTRUCTORS
  }
  _edata  =  .;
  PROVIDE (edata = .);

wdenk's avatar
wdenk committed
94

95 96
  . = ALIGN(4);
  .u_boot_list : {
97
	KEEP(*(SORT(.u_boot_list*)));
98 99
  }

wdenk's avatar
wdenk committed
100

wdenk's avatar
wdenk committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
  __start___ex_table = .;
  __ex_table : { *(__ex_table) }
  __stop___ex_table = .;

  . = ALIGN(4096);
  __init_begin = .;
  .text.init : { *(.text.init) }
  .data.init : { *(.data.init) }
  . = ALIGN(4096);
  __init_end = .;

  __bss_start = .;
  .bss       :
  {
   *(.sbss) *(.scommon)
   *(.dynbss)
   *(.bss)
   *(COMMON)
  }
120
  __bss_end = . ;
wdenk's avatar
wdenk committed
121 122
  PROVIDE (end = .);
}