We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55da7d8 commit f9c1cecCopy full SHA for f9c1cec
arch/sim/src/Makefile
@@ -133,6 +133,13 @@ ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
133
# the place in the object list for linking. Namely, its constructor
134
# should be the first one in the executable.
135
HEADSRC = sim_macho_init.c
136
+
137
+ # sim_macho_init.c is not compatible with chained fixups.
138
+ # cf. https://github.com/apache/nuttx/issues/15208
139
+ ifeq ($(shell $(LD) -ld_classic -no_fixup_chains 2>&1 | grep "unknown option"),)
140
+ LDLINKFLAGS += -ld_classic -no_fixup_chains
141
+ LDFLAGS += -Wl,-ld_classic,-no_fixup_chains
142
+ endif
143
endif
144
else
145
STDLIBS += -lrt
0 commit comments