401-avr32-linkrelax-option.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From nobody Mon Sep 17 00:00:00 2001
  2. Subject: [PATCH] Make linkrelax configurable
  3. From: Håvard Skinnemoen <[email protected]>
  4. Date: 1133951618 +0100
  5. Add a linkrelax option to the configure system which will give
  6. appropriate options to the compiler, assembler and linker to enable
  7. link-time optimizations.
  8. ---
  9. Rules.mak | 2 ++
  10. extra/Configs/Config.avr32 | 4 ++++
  11. 2 files changed, 6 insertions(+)
  12. Index: uClibc-0.9.28/Rules.mak
  13. ===================================================================
  14. --- uClibc-0.9.28.orig/Rules.mak 2006-02-08 17:58:53.000000000 +0100
  15. +++ uClibc-0.9.28/Rules.mak 2006-02-08 17:59:07.000000000 +0100
  16. @@ -233,6 +233,8 @@ endif
  17. ifeq ($(strip $(TARGET_ARCH)),avr32)
  18. CPU_CFLAGS-$(CONFIG_AP7000) += -mcpu=ap7000
  19. + CPU_CFLAGS-$(LINKRELAX) += -masm-addr-pseudos -Wa,--pic,--linkrelax
  20. + CPU_LDFLAGS-$(LINKRELAX) += --relax
  21. endif
  22. # Keep the check_gcc from being needlessly executed
  23. Index: uClibc-0.9.28/extra/Configs/Config.avr32
  24. ===================================================================
  25. --- uClibc-0.9.28.orig/extra/Configs/Config.avr32 2006-02-08 17:58:53.000000000 +0100
  26. +++ uClibc-0.9.28/extra/Configs/Config.avr32 2006-02-08 17:59:07.000000000 +0100
  27. @@ -36,3 +36,7 @@ config CONFIG_AP7000
  28. bool "AP7000"
  29. endchoice
  30. +
  31. +config LINKRELAX
  32. + bool "Enable linker optimizations"
  33. + default n