# -*- makefile -*- # # arch/i386/MCONFIG # # Special rules for this architecture. Note that this is actually # included from the main Makefile, and that pathnames should be # accordingly. # # Enable this to compile with register parameters; only safe for # gcc >= 3 REGPARM_OPT := -mregparm=3 -D_REGPARM=3 gcc_major := $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n 1) OPTFLAGS = -march=i386 -Os -g -fomit-frame-pointer LDFLAGS = -m elf_i386 ifneq ($(gcc_major),2) REQFLAGS += $(REGPARM_OPT) OPTFLAGS += -falign-functions=0 -falign-jumps=0 -falign-loops=0 ARCHREQFLAGS += -m32 else OPTFLAGS += -malign-functions=0 -malign-jumps=0 -malign-loops=0 endif BITSIZE = 32 # Extra linkflags when building the shared version of the library # This address needs to be reachable using normal inter-module # calls, and work on the memory models for this architecture # 96 MB - normal binaries start at 128 MB SHAREDFLAGS = -Ttext 0x06000200