5 # Special rules for this architecture. Note that this is actually
6 # included from the main Makefile, and that pathnames should be
10 OPTFLAGS = -Os -fomit-frame-pointer
13 # Extra linkflags when building the shared version of the library
14 # This address needs to be reachable using normal inter-module
15 # calls, and work on the memory models for this architecture
16 # 224 MB - normal binaries start at 0
17 # (lib?)gcc on cris seems to insist on producing .init and .fini sections
18 SHAREDFLAGS = --section-start .init=0x0e000100
20 # The CRIS compiler needs an -iprefix to find libgcc includes when
21 # nostdinc is used. It also needs -mlinux to compile linux applications.
22 INCLUDE_PREFIX = $(shell $(CC) -print-libgcc-file-name | sed -e s/libgcc.a//)
23 ARCHREQFLAGS = -iprefix $(INCLUDE_PREFIX) -mlinux
25 # Special flags needed for linking
26 LDFLAGS += -mcrislinux