at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch 873 B

1234567891011121314151617181920212223242526272829
  1. From b783d1f9bf985c0981e755bd2c13e091e9d6837f Mon Sep 17 00:00:00 2001
  2. From: Gregory Hermant <gregory.hermant@calao-systems.com>
  3. Date: Tue, 6 Nov 2012 09:38:50 +0100
  4. Subject: [PATCH] at91bootstrap: fix overlap linker issue
  5. The linker script of the at91bootstrap package has to be modified when
  6. built from gcc-4.6.x version. Indeed a section named text.startup is
  7. created and has to be added into the text section.
  8. Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
  9. ---
  10. elf32-littlearm.lds | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds
  13. index a33952f..4f3ba25 100644
  14. --- a/elf32-littlearm.lds
  15. +++ b/elf32-littlearm.lds
  16. @@ -7,6 +7,7 @@ SECTIONS
  17. .text : {
  18. _stext = .;
  19. *(.text)
  20. + *(.text*)
  21. *(.rodata) /* read-only data (constants) */
  22. *(.rodata*)
  23. . = ALIGN(4);
  24. --
  25. 1.7.9.5