--- qemu/Makefile.target.mps 2005-02-22 11:06:38 +0100 +++ qemu/Makefile.target 2005-02-22 11:52:45 +0100 @@ -399,11 +399,24 @@ gen-op.h: op.o $(DYNGEN) $(DYNGEN) -g -o $@ $< +# -fno-pic is needed, else dyngen -o op.h op.o says 'dyngen: unsupported i386 relocation (10)' +# -fno-stack-protector is needed, else compiling translate-all.c says +# 'op.h: ...: error: parse error before ')' token at many locations +# -fno-stack-protector-all produces less of them on i386/x86_64 op.o: op.c - $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< +ifeq ($(TARGET_BASE_ARCH), i386) + $(CC) $(OP_CFLAGS) $(DEFINES) -fno-pic -fno-stack-protector -c -o $@ $< +else + $(CC) $(OP_CFLAGS) $(DEFINES) -fno-pic -fno-stack-protector-all -c -o $@ $< +endif +# -fno-pic is needed, else out of registers helper.o: helper.c +ifdef CONFIG_SOFTMMU + $(CC) $(HELPER_CFLAGS) $(DEFINES) -fno-pic -c -o $@ $< +else $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< +endif ifeq ($(TARGET_BASE_ARCH), i386) op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h @@ -415,6 +428,9 @@ ifeq ($(TARGET_BASE_ARCH), sparc) op.o: op.c op_template.h op_mem.h +# out of registers +op_helper.o: op_helper.c + $(CC) $(CFLAGS) $(DEFINES) -fno-pic -c -o $@ $< endif ifeq ($(TARGET_ARCH), ppc)