aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/CDC/makefile
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-11-23 14:09:01 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-11-23 14:09:01 +0000
commit075538abb9af8a31fa8239ecfda592b968cd53d8 (patch)
tree08086c52834794e8db1a40d07679443a4b4828aa /Bootloaders/CDC/makefile
parentd6192148542bebdfbd7a33b336492e93dbf90406 (diff)
downloadlufa-075538abb9af8a31fa8239ecfda592b968cd53d8.tar.gz
lufa-075538abb9af8a31fa8239ecfda592b968cd53d8.tar.bz2
lufa-075538abb9af8a31fa8239ecfda592b968cd53d8.zip
Use the proper "-Wl,--undefined=BootloaderAPI_JumpTable" linker command line parameter in the bootloaders to ensure that the API jump tables are not discarded, rather than the previous C volatile pointer hack (thanks to Opendous Inc.).
Diffstat (limited to 'Bootloaders/CDC/makefile')
-rw-r--r--Bootloaders/CDC/makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile
index 65982263e..f98372dfb 100644
--- a/Bootloaders/CDC/makefile
+++ b/Bootloaders/CDC/makefile
@@ -340,7 +340,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) -Wl,--section-start=.apitable=$(BOOT_API_TABLESTART)
+LDFLAGS += -Wl,--section-start=.text=$(BOOT_START) -Wl,--section-start=.apitable=$(BOOT_API_TABLESTART) -Wl,--undefined=BootloaderAPI_JumpTable
LDFLAGS += -Wl,--relax
LDFLAGS += -Wl,--gc-sections
LDFLAGS += $(EXTMEMOPTS)