u-boot-nand_spl.lds 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * (C) Copyright 2006
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de
  4. *
  5. * Copyright 2009 Freescale Semiconductor, Inc.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include "config.h"
  10. OUTPUT_ARCH(powerpc)
  11. SECTIONS
  12. {
  13. . = 0xfff00000;
  14. .text : {
  15. *(.text*)
  16. }
  17. _etext = .;
  18. .reloc : {
  19. _GOT2_TABLE_ = .;
  20. KEEP(*(.got2))
  21. KEEP(*(.got))
  22. _FIXUP_TABLE_ = .;
  23. KEEP(*(.fixup))
  24. }
  25. __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
  26. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  27. . = ALIGN(8);
  28. .data : {
  29. *(.rodata*)
  30. *(.data*)
  31. *(.sdata*)
  32. }
  33. _edata = .;
  34. .u_boot_list : {
  35. KEEP(*(SORT(.u_boot_list*)));
  36. }
  37. . = ALIGN(8);
  38. __init_begin = .;
  39. __init_end = .;
  40. #if defined(CONFIG_FSL_IFC) /* Restrict bootpg at 4K boundry for IFC */
  41. .bootpg ADDR(.text) + 0x1000 :
  42. {
  43. start.o (.bootpg)
  44. }
  45. #define RESET_VECTOR_OFFSET 0x1ffc /* IFC has 8K sram */
  46. #elif defined(CONFIG_FSL_ELBC)
  47. #define RESET_VECTOR_OFFSET 0xffc /* LBC has 4k sram */
  48. #else
  49. #error unknown NAND controller
  50. #endif
  51. .resetvec ADDR(.text) + RESET_VECTOR_OFFSET : {
  52. KEEP(*(.resetvec))
  53. } = 0xffff
  54. __bss_start = .;
  55. .bss : {
  56. *(.sbss*)
  57. *(.bss*)
  58. }
  59. __bss_end = .;
  60. }
  61. ASSERT(__init_end <= (0xfff00000 + RESET_VECTOR_OFFSET), "NAND bootstrap too big");