build: Newer toolchains need a few tweaks to linker options.

Pull those fixes in now

Change-Id: I71c373ecc9d062ca997eb940c7d84a94e2d678aa
This commit is contained in:
Solomon Peachy 2025-09-07 15:40:44 -04:00
parent e9b8413f49
commit eb03c7b4d0
4 changed files with 10 additions and 6 deletions

View file

@ -149,7 +149,7 @@ ifdef APP_TYPE
PLUGINFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
else
PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
OVERLAYLDFLAGS = -T$(OVERLAYREF_LDS) -Wl,--gc-sections -Wl,-Map,$*.refmap
OVERLAYLDFLAGS = -T$(OVERLAYREF_LDS) -Wl,--gc-sections -Wl,-Map,$*.refmap $(GLOBAL_LDOPTS)
endif
PLUGINLDFLAGS += $(GLOBAL_LDOPTS)