aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/DFU/BootloaderDFU.c
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/DFU/BootloaderDFU.c
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/DFU/BootloaderDFU.c')
-rw-r--r--Bootloaders/DFU/BootloaderDFU.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c
index 078d59deb..6e0c95d06 100644
--- a/Bootloaders/DFU/BootloaderDFU.c
+++ b/Bootloaders/DFU/BootloaderDFU.c
@@ -99,10 +99,6 @@ static uint16_t EndAddr = 0x0000;
*/
int main(void)
{
- /* Force a reference to the API jump table to prevent the linker from discarding it */
- uint8_t* volatile Dummy = BootloaderAPI_JumpTable;
- (void)Dummy;
-
/* Configure hardware required by the bootloader */
SetupHardware();