A user may change the linker script for his purposes. This patch
removes warnings when he does so.
The default linker script can now be overridden by changing
LD_FLAGS in user makefile with the following option:
-Wl,-T path/to/linker_script.ld
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4641
38d2e660-2303-0410-9eaa-
f027e97ec537
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7S128__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_128_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_128_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7S256__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_256_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_256_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7S512__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_512_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_512_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7S64__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_64_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_64_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7X128__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_128_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_128_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7X256__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_256_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_256_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_AT91SAM7X512__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "at91sam7_512_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "at91sam7_512_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_LPC2378__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "lpc2378.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "lpc2378.ld"
# CPU type used for flashing/debugging
MK_PROGRAMMER_CPU = "lpc2378"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_LM3S1968__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "lm3s1968_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "lm3s1968_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_LM3S8962__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "lm3s8962_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "lm3s8962_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_SAM3N4__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "sam3n4_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "sam3n4_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_STM32F101C4__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "stm32f101c4_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "stm32f101c4_rom.ld"
# GCC flags for this cpu.
MK_CPU_CPPFLAGS += " -D__ARM_STM32F103RB__"
-MK_CPU_LDFLAGS += " -T " + SCRIPT_DIR + "stm32f103rb_rom.ld"
+MK_CPU_LDFLAGS += " -Wl,-dT " + SCRIPT_DIR + "stm32f103rb_rom.ld"