Bootloaders: Enable LTO to reduce compiled size.
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 11:30:06 +0000 (21:30 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 11:30:06 +0000 (21:30 +1000)
Bootloaders/CDC/makefile
Bootloaders/DFU/makefile
Bootloaders/HID/makefile
Bootloaders/MassStorage/makefile
Bootloaders/Printer/makefile
LUFA/DoxygenPages/ChangeLog.txt

index c618e9c..98fa430 100644 (file)
@@ -22,6 +22,7 @@ SRC          = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
 LUFA_PATH    = ../../LUFA
 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
 LD_FLAGS     = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
+LTO          = Y
 
 # Flash size and bootloader section sizes of the target, in KB. These must
 # match the target's total FLASH size and the bootloader size set in the
index dc54ba9..2859aa0 100644 (file)
@@ -22,6 +22,7 @@ SRC          = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
 LUFA_PATH    = ../../LUFA
 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
 LD_FLAGS     = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
+LTO          = Y
 
 # Flash size and bootloader section sizes of the target, in KB. These must
 # match the target's total FLASH size and the bootloader size set in the
index 238823f..cd1b8b3 100644 (file)
@@ -22,6 +22,7 @@ SRC          = $(TARGET).c Descriptors.c $(LUFA_SRC_USB)
 LUFA_PATH    = ../../LUFA
 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -DBOOT_START_ADDR=$(BOOT_START_OFFSET) -IConfig/
 LD_FLAGS     = -Wl,--section-start=.text=$(BOOT_START_OFFSET)
+LTO          = Y
 
 # Flash size and bootloader section sizes of the target, in KB. These must
 # match the target's total FLASH size and the bootloader size set in the
index 2df2666..a5ce0a1 100644 (file)
@@ -22,6 +22,7 @@ SRC          = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S Li
 LUFA_PATH    = ../../LUFA\r
 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)\r
 LD_FLAGS     = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)\r
+LTO          = Y\r
 \r
 # Flash size and bootloader section sizes of the target, in KB. These must\r
 # match the target's total FLASH size and the bootloader size set in the\r
index 744ba2a..1b0caeb 100644 (file)
@@ -22,6 +22,7 @@ SRC          = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
 LUFA_PATH    = ../../LUFA\r
 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)\r
 LD_FLAGS     = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)\r
+LTO          = Y\r
 \r
 # Flash size and bootloader section sizes of the target, in KB. These must\r
 # match the target's total FLASH size and the bootloader size set in the\r
index 55d5f55..a84ca3d 100644 (file)
@@ -22,6 +22,7 @@
   *   - Reduced compiled size of the Endpoint_Discard_Stream() and Endpoint_Null_Stream() functions.
   *  - Library Applications:
   *   - Updated Printer class bootloader to not store 32-bit HEX parser flash offsets on small flash devices.
+  *   - Enabled Link Time Optimizations (LTO) on bootloaders to reduce compiled size on newer versions of GCC.
   *
   *  <b>Fixed:</b>
   *  - Core: