Fix Atmel Studio projects not enabling linker relaxations correctly.
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 3 Oct 2015 12:09:40 +0000 (22:09 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 3 Oct 2015 12:09:40 +0000 (22:09 +1000)
LUFA/StudioIntegration/lufa_toolchain.xml

index 34725bf..ddd758f 100644 (file)
@@ -23,6 +23,7 @@
                                <toolchain-config name="avrgcc.compiler.miscellaneous.OtherFlags" value="-mrelax -std=gnu99 -fno-strict-aliasing -fno-jump-tables" toolchain="avrgcc"/>\r
                                <toolchain-config name="avrgcc.linker.optimization.GarbageCollectUnusedSections" value="True" toolchain="avrgcc"/>\r
                                <toolchain-config name="avrgcc.linker.optimization.RelaxBranches" value="True" toolchain="avrgcc"/>\r
+                               <toolchain-config name="avrgcc.linker.miscellaneous.LinkerFlags" value="-Wl,--relax" toolchain="avrgcc"/>\r
                        </module>\r
                </select-by-device>\r
 \r
@@ -38,6 +39,7 @@
                        <toolchain-config name="avr32gcc.compiler.miscellaneous.OtherFlags" value="-mrelax -std=gnu99 -fno-strict-aliasing -mno-cond-exec-before-reload" toolchain="avr32gcc"/>\r
                        <toolchain-config name="avr32gcc.linker.optimization.GarbageCollectUnusedSections" value="True" toolchain="avr32gcc"/>\r
                        <toolchain-config name="avr32gcc.linker.optimization.RelaxBranches" value="True" toolchain="avr32gcc"/>\r
+                       <toolchain-config name="avr32gcc.linker.miscellaneous.LinkerFlags" value="-Wl,--relax" toolchain="avr32gcc"/>\r
                </module>\r
        </asf>\r
 </lufa>\r