lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since f2ffad4 was f2ffad4, checked in by Jakub Jermar <jakub@…>, 20 years ago |
For each architecture, add function/macro FADDR that calculates absolute address of a function referenced by void (* f)(void).
IA-32 and MIPS gcc's use direct addressing (f == FADDR(f)) while IA-64 gcc uses indirect addressing (f != FADDR(f)).
Tweaks in IA-64 Makefile.inc to declare constant gp and main Makefile to consider ASFLAGS when compiling .s targets.
|
-
Property mode
set to
100644
|
File size:
578 bytes
|
Line | |
---|
1 | IA-64_TARGET=ia64-pc-linux-gnu
|
---|
2 |
|
---|
3 | IA-64_CC_DIR=/usr/local/ia64/bin
|
---|
4 | IA-64_BINUTILS_DIR=/usr/local/ia64/bin
|
---|
5 |
|
---|
6 | CC=$(IA-64_CC_DIR)/$(IA-64_TARGET)-gcc
|
---|
7 | AS=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-as
|
---|
8 | LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld
|
---|
9 |
|
---|
10 | ASFLAGS=-mconstant-gp
|
---|
11 |
|
---|
12 | DEFS=-DARCH=$(ARCH)
|
---|
13 | CPPFLAGS=$(DEFS) -nostdinc -I../include
|
---|
14 | CFLAGS=$(CPPFLAGS) -mconstant-gp -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O3
|
---|
15 | LFLAGS=-EL -M -T ../arch/ia64/_link.ld
|
---|
16 |
|
---|
17 | arch_sources= \
|
---|
18 | arch/start.S \
|
---|
19 | arch/asm.S \
|
---|
20 | arch/fake.s \
|
---|
21 | arch/putchar.c \
|
---|
22 | arch/ia64.c \
|
---|
23 | arch/fpu_context.c \
|
---|
24 | arch/context.S
|
---|
Note:
See
TracBrowser
for help on using the repository browser.