diff --git a/Makefile b/Makefile index a9f21aa5..fedc4d56 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ $(OUT)klipper.o: $(patsubst %.c, $(OUT)src/%.o,$(src-y)) $(OUT)declfunc.lds $(OUT)compile_time_request.o: $(OUT)klipper.o ./scripts/buildcommands.py @echo " Building $@" - $(Q)$(OBJCOPY) --dump-section '.compile_time_request'=$(OUT)klipper.o.compile_time_request $< + $(Q)$(OBJCOPY) -j '.compile_time_request' -O binary $< $(OUT)klipper.o.compile_time_request $(Q)$(PYTHON) ./scripts/buildcommands.py $(OUT)klipper.o.compile_time_request $(OUT)autoconf.h $(OUT)compile_time_request.c $(Q)$(CC) $(CFLAGS) -c $(OUT)compile_time_request.c -o $@ diff --git a/src/declfunc.lds.S b/src/declfunc.lds.S index 2226300c..1f178643 100644 --- a/src/declfunc.lds.S +++ b/src/declfunc.lds.S @@ -31,7 +31,4 @@ SECTIONS .compile_time_request.parsers 0 (INFO) : { *( .compile_time_request.parsers ) } - .compile_time_request (INFO) : { - *( .compile_time_request ) - } }