vmlinux.lds.S 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * AVR32 linker script for the Linux kernel
  3. *
  4. * Copyright (C) 2004-2006 Atmel Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #define LOAD_OFFSET 0x00000000
  11. #include <asm-generic/vmlinux.lds.h>
  12. #include <asm/cache.h>
  13. #include <asm/thread_info.h>
  14. OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
  15. OUTPUT_ARCH(avr32)
  16. ENTRY(_start)
  17. /* Big endian */
  18. jiffies = jiffies_64 + 4;
  19. SECTIONS
  20. {
  21. . = CONFIG_ENTRY_ADDRESS;
  22. .init : AT(ADDR(.init) - LOAD_OFFSET) {
  23. _text = .;
  24. __init_begin = .;
  25. _sinittext = .;
  26. *(.text.reset)
  27. INIT_TEXT
  28. /*
  29. * .exit.text is discarded at runtime, not
  30. * link time, to deal with references from
  31. * __bug_table
  32. */
  33. EXIT_TEXT
  34. _einittext = .;
  35. . = ALIGN(4);
  36. __tagtable_begin = .;
  37. *(.taglist.init)
  38. __tagtable_end = .;
  39. }
  40. INIT_DATA_SECTION(16)
  41. . = ALIGN(PAGE_SIZE);
  42. __init_end = .;
  43. .text : AT(ADDR(.text) - LOAD_OFFSET) {
  44. _evba = .;
  45. _stext = .;
  46. *(.ex.text)
  47. *(.irq.text)
  48. KPROBES_TEXT
  49. TEXT_TEXT
  50. SCHED_TEXT
  51. LOCK_TEXT
  52. *(.fixup)
  53. *(.gnu.warning)
  54. _etext = .;
  55. } = 0xd703d703
  56. EXCEPTION_TABLE(4)
  57. RODATA
  58. .data : AT(ADDR(.data) - LOAD_OFFSET) {
  59. _data = .;
  60. _sdata = .;
  61. INIT_TASK_DATA(THREAD_SIZE)
  62. PAGE_ALIGNED_DATA(PAGE_SIZE);
  63. CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
  64. *(.data.rel*)
  65. DATA_DATA
  66. CONSTRUCTORS
  67. _edata = .;
  68. }
  69. BSS_SECTION(0, 8, 8)
  70. _end = .;
  71. DWARF_DEBUG
  72. /* When something in the kernel is NOT compiled as a module, the module
  73. * cleanup code and data are put into these segments. Both can then be
  74. * thrown away, as cleanup code is never called unless it's a module.
  75. */
  76. DISCARDS
  77. }