Undefined reference to `_exit' and friends

In file C_API/buildsupport/common.mk, there is a recipe for a file called /pdx.elf:

$(OBJDIR)/pdex.elf: $(OBJS) $(LDSCRIPT)
	$(CC) $(OBJS) $(LDFLAGS) $(LIBS) -o $@

--specs=nosys.specs goes somewhere in the recipe, such as this:

$(OBJDIR)/pdex.elf: $(OBJS) $(LDSCRIPT)
	$(CC) $(OBJS) $(LDFLAGS) $(LIBS) -o $@ --specs=nosys.specs
1 Like