serialice.ld 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * SerialICE
  3. *
  4. * Copyright (C) 2009 coresystems GmbH
  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 as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc.
  18. */
  19. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
  20. OUTPUT_ARCH(i386)
  21. ALIGNED_ROMBASE = 0x100000000 - (ALIGNED_ROMSIZE);
  22. _ROMSIZE = (1024 * 64);
  23. _ROMBASE = 0x100000000 - (_ROMSIZE);
  24. SECTIONS {
  25. . = ALIGNED_ROMBASE;
  26. .rom : {
  27. . = ALIGNED_ROMSIZE - _ROMSIZE;
  28. _main = . ;
  29. *(.rom.text);
  30. *(.text);
  31. *(.rom.data);
  32. *(.data);
  33. *(.rodata);
  34. *(.rodata.*);
  35. } =0xff
  36. . = 0xffffff40;
  37. .messages . : {
  38. *(.messages)
  39. . = 111;
  40. BYTE(0x00);
  41. }
  42. . = 0xffffffd0;
  43. .romstrap . : {
  44. *(.romstrap)
  45. }
  46. . = 0xfffffff0;
  47. .reset . : {
  48. *(.reset)
  49. . = 15;
  50. BYTE(0x00);
  51. }
  52. /DISCARD/ : {
  53. *(.comment)
  54. *(.note.*)
  55. *(.note)
  56. }
  57. }