summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-03-22 20:57:39 -0400
committerTom Rini <[email protected]>2023-03-22 20:57:39 -0400
commit884d626d8357853c012d535bf26c143bb7b5e6a5 (patch)
tree06ac245b48b6cc59b392b5117030dffd63459db1 /examples
parent12340b122b354ecca350c0d08ac3d825897bdafa (diff)
parent486930bd7fe1db63c302c960445cdd4be4a4f1d1 (diff)
Merge branch '2023-03-22-assorted-minor-code-cleanups' into next
- Minor code cleanups based on problems found by clang or enabling LTO.
Diffstat (limited to 'examples')
-rw-r--r--examples/standalone/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 5b48a9d43c6..559170dd5c9 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y)
LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y))
ELF := $(addprefix $(obj)/,$(ELF))
+# Disable LTO for these builds
+CFLAGS_REMOVE_hello_world.o := $(LTO_CFLAGS)
+CFLAGS_REMOVE_stubs.o := $(LTO_CFLAGS)
+
# For PowerPC there's no need to compile standalone applications as a
# relocatable executable. The relocation data is not needed, and
# also causes the entry point of the standalone application to be