diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-04-08 14:21:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-04-16 13:17:19 -0400 |
commit | 8087200ffe2fbbe62265dd480ce8be67db8349eb (patch) | |
tree | 17563eb1034f6074c692e6b7580fc7a7783dbdf7 /src | |
parent | 61c0c8d2ef40340781835dd53fb04cc7a454e37a (diff) | |
download | kutter-8087200ffe2fbbe62265dd480ce8be67db8349eb.tar.gz kutter-8087200ffe2fbbe62265dd480ce8be67db8349eb.tar.xz kutter-8087200ffe2fbbe62265dd480ce8be67db8349eb.zip |
Makefile: Don't disable gcc's use-linker-plugin option
This option seems to be confusing ld's region usage checks (builds
that could fit in small chips are being reported as not fitting). The
option was disabled back in commit 4e8674d5 because it showed worse
results. However, recent versions of gcc seem to produce the same
results even if this option is enabled, so change the build to avoid
disabling that option on newer versions of gcc (those that have the
-ffat-lto-objects option - which is needed to ensure
compile_time_requests sections can be extracted with objcopy).
The PRU build is dependent on -fuse-linker-plugin, so enable that
option explicitly in its build.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/pru/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pru/Makefile b/src/pru/Makefile index c304219e..5c85f5e3 100644 --- a/src/pru/Makefile +++ b/src/pru/Makefile @@ -8,6 +8,7 @@ dirs-y += lib/pru_rpmsg CFLAGS += -Os -minrt -mmcu=am335x.pru1 CFLAGS += -Ilib/pru_rpmsg/include -Ilib/pru_rpmsg/include/am335x +CFLAGS += -fno-use-linker-plugin CFLAGS_klipper.elf := $(filter-out -mmcu=%, $(CFLAGS)) CFLAGS_klipper.elf += -Wl,-r -nostdlib -Wl,-T,src/pru/pru.lds |