aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-31 08:03:23 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-31 08:03:23 +0000
commit5dfa25f81acb5480aec091d3391ba3be2d33600d (patch)
treea79a5006602d867b6483218e74be72cc233ac1de
parent9597b33c3320969b8ca53aff0b1b38ee1fa24949 (diff)
downloadlufa-5dfa25f81acb5480aec091d3391ba3be2d33600d.tar.gz
lufa-5dfa25f81acb5480aec091d3391ba3be2d33600d.tar.bz2
lufa-5dfa25f81acb5480aec091d3391ba3be2d33600d.zip
Re-add deleted linker options to the Bootloader makefiles, which was preventing the compiled application from being shifted into the bootloader section address space.
-rw-r--r--Bootloaders/CDC/makefile1
-rw-r--r--Bootloaders/DFU/makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile
index cb05e0fbc..2df18289e 100644
--- a/Bootloaders/CDC/makefile
+++ b/Bootloaders/CDC/makefile
@@ -324,6 +324,7 @@ EXTMEMOPTS =
# -Map: create map file
# --cref: add cross reference to map file
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
+LDFLAGS += -Wl,--section-start=.text=$(BOOT_START)
LDFLAGS += -Wl,--relax
LDFLAGS += -Wl,--gc-sections
LDFLAGS += $(EXTMEMOPTS)
diff --git a/Bootloaders/DFU/makefile b/Bootloaders/DFU/makefile
index dc516c314..2cfff0fbe 100644
--- a/Bootloaders/DFU/makefile
+++ b/Bootloaders/DFU/makefile
@@ -325,6 +325,7 @@ EXTMEMOPTS =
# -Map: create map file
# --cref: add cross reference to map file
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
+LDFLAGS += -Wl,--section-start=.text=$(BOOT_START)
LDFLAGS += -Wl,--relax
LDFLAGS += -Wl,--gc-sections
LDFLAGS += $(EXTMEMOPTS)