diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ef94add5..3ac0f57b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - TCA9534: Added I2C GPIO expander driver (`src/dev/tca9534.h`) with shared-bus and owned-bus init, plus `TCA9534_GPIO` example. +### Bug Fixes + +- Linker scripts: removed a malformed `DISCARD` section that loaded full newlib's `libc.a` into every link. CMake builds now link newlib-nano only; the Makefile build is byte-identical. + ## v8.1.0 ### Features diff --git a/core/STM32H750IB_flash.lds b/core/STM32H750IB_flash.lds index 6d8e6a439..7ac8227f5 100644 --- a/core/STM32H750IB_flash.lds +++ b/core/STM32H750IB_flash.lds @@ -257,12 +257,5 @@ SECTIONS PROVIDE(__reserved_for_stack_end__ = .); } > SRAM - DISCARD : - { - libc.a ( * ) - libm.a ( * ) - libgcc.a ( * ) - } - } diff --git a/core/STM32H750IB_qspi.lds b/core/STM32H750IB_qspi.lds index 8e3eb1311..9d0229541 100644 --- a/core/STM32H750IB_qspi.lds +++ b/core/STM32H750IB_qspi.lds @@ -260,11 +260,4 @@ SECTIONS PROVIDE(__reserved_for_stack_end__ = .); } > DTCMRAM - DISCARD : - { - libc.a ( * ) - libm.a ( * ) - libgcc.a ( * ) - } - } \ No newline at end of file diff --git a/core/STM32H750IB_sram.lds b/core/STM32H750IB_sram.lds index d080f30e9..133ead951 100644 --- a/core/STM32H750IB_sram.lds +++ b/core/STM32H750IB_sram.lds @@ -258,11 +258,4 @@ SECTIONS PROVIDE(__reserved_for_stack_end__ = .); } > DTCMRAM - DISCARD : - { - libc.a ( * ) - libm.a ( * ) - libgcc.a ( * ) - } - } \ No newline at end of file