board: xilinx: mbv: Disable -fpic for SPL
Michal Simek
maintainerPATCH 1/1 board: xilinx: mbv: Disable -fpic for SPL
MicroBlaze-V SPL runs from a fixed address and doesn't need position independent code. Pass -fno-pic for SPL from the board config.mk, which is included after the arch config.mk, so the later flag takes precedence over -fpic while U-Boot proper keeps -fpic.
It saved more then 1kB of memory.
---
board/xilinx/mbv/config.mk | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 board/xilinx/mbv/config.mk
board/xilinx/mbv/config.mk new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 + +ifdef CONFIG_XPL_BUILD +PLATFORM_CPPFLAGS += -fno-pic +endif
---
base-commit: 4b2c5fa37b4ce7235de2908f20ba433e79626ffb
Signature · 1 line
2.43.0
Quoted 26 lines · Michal Simek
MicroBlaze-V SPL runs from a fixed address and doesn't need position independent code. Pass -fno-pic for SPL from the board config.mk, which is included after the arch config.mk, so the later flag takes precedence over -fpic while U-Boot proper keeps -fpic.
It saved more then 1kB of memory.
Signed-off-by Michal Simek <[email protected]>---
board/xilinx/mbv/config.mk | 5 +++++ 1 file changed, 5 insertions(+)create mode 100644
board/xilinx/mbv/config.mkboard/xilinx/mbv/config.mk new file +5
-1@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 + +ifdef CONFIG_XPL_BUILD +PLATFORM_CPPFLAGS += -fno-pic +endif ---
Quoted 2 lines
base-commit:
4b2c5fa37b4ce7235de2908f20ba433e79626ffb
Applied.
M