Mercurial > hg > truffle
comparison make/linux/makefiles/gcc.make @ 198:6470a2a42f92
6647068: libjvm.so is not built PIC
Summary: Remove the preferred base address built with libjvm.so and unified the PIC approach on Solaris & Linux.
Reviewed-by: never, kamg
Contributed-by: xiaobin.lu@sun.com
author | xlu |
---|---|
date | Tue, 10 Jun 2008 16:39:20 -0700 |
parents | a294fd0c4b38 |
children | 3e82d72933d0 |
comparison
equal
deleted
inserted
replaced
186:cf1821c649d9 | 198:6470a2a42f92 |
---|---|
48 # position-independent code | 48 # position-independent code |
49 PICFLAG = -fPIC | 49 PICFLAG = -fPIC |
50 | 50 |
51 VM_PICFLAG/LIBJVM = $(PICFLAG) | 51 VM_PICFLAG/LIBJVM = $(PICFLAG) |
52 VM_PICFLAG/AOUT = | 52 VM_PICFLAG/AOUT = |
53 | |
54 ifneq ($(BUILDARCH), i486) | |
55 VM_PICFLAG = $(VM_PICFLAG/$(LINK_INTO)) | 53 VM_PICFLAG = $(VM_PICFLAG/$(LINK_INTO)) |
56 else | |
57 # PIC has significant overhead on x86, build nonpic VM for now. | |
58 # Link JVM at a "good" base location to avoid unnecessary .text patching. | |
59 JVM_BASE_ADDR = 0x06000000 | |
60 endif | |
61 | 54 |
62 CFLAGS += $(VM_PICFLAG) | 55 CFLAGS += $(VM_PICFLAG) |
63 CFLAGS += -fno-rtti | 56 CFLAGS += -fno-rtti |
64 CFLAGS += -fno-exceptions | 57 CFLAGS += -fno-exceptions |
65 CFLAGS += -D_REENTRANT | 58 CFLAGS += -D_REENTRANT |