From: Dean Camera Date: Sat, 31 Jul 2010 08:03:23 +0000 (+0000) Subject: Re-add deleted linker options to the Bootloader makefiles, which was preventing the... X-Git-Tag: LUFA-110528-BETA~297 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/5dfa25f81acb5480aec091d3391ba3be2d33600d?ds=sidebyside Re-add deleted linker options to the Bootloader makefiles, which was preventing the compiled application from being shifted into the bootloader section address space. --- 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)