Mercurial > hg > graal-jvmci-8
comparison make/solaris/makefiles/saproc.make @ 6095:9c1709c4c80c
7165598: enable FDS on Solaris X64 when 7165593 is fixed
Summary: Work around 'gobjcopy' failure on Solaris X64 by adding a temporary tool that removes the SHF_ALLOC flag from "empty" section headers.
Reviewed-by: sspitsyn, acorn
author | dcubed |
---|---|
date | Thu, 24 May 2012 12:03:42 -0700 |
parents | d652a62d6e03 |
children | 5a98bf7d847b |
comparison
equal
deleted
inserted
replaced
6077:7d4e6dabc6bf | 6095:9c1709c4c80c |
---|---|
88 | 88 |
89 # Uncomment the following to simulate building on Nevada-B159 or later | 89 # Uncomment the following to simulate building on Nevada-B159 or later |
90 # when actually building on Nevada-B158 or earlier: | 90 # when actually building on Nevada-B158 or earlier: |
91 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER | 91 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER |
92 | 92 |
93 $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE) | 93 $(LIBSAPROC): $(ADD_GNU_DEBUGLINK) $(FIX_EMPTY_SEC_HDR_FLAGS) $(SASRCFILES) $(SAMAPFILE) |
94 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ | 94 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ |
95 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ | 95 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ |
96 exit 1; \ | 96 exit 1; \ |
97 fi | 97 fi |
98 @echo Making SA debugger back-end... | 98 @echo Making SA debugger back-end... |
107 $(SA_LFLAGS) \ | 107 $(SA_LFLAGS) \ |
108 -o $@ \ | 108 -o $@ \ |
109 -ldl -ldemangle -lthread -lc | 109 -ldl -ldemangle -lthread -lc |
110 [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); } | 110 [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); } |
111 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) | 111 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
112 # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set. | |
113 # Clear the SHF_ALLOC flag (if set) from empty section headers. | |
114 # An empty section header has sh_addr == 0 and sh_size == 0. | |
115 # This problem has only been seen on Solaris X64, but we call this tool | |
116 # on all Solaris builds just in case. | |
117 $(QUIETLY) $(FIX_EMPTY_SEC_HDR_FLAGS) $@ | |
112 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) | 118 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) |
113 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@ | 119 # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections. |
120 # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available. | |
121 # $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@ | |
122 $(QUIETLY) $(ADD_GNU_DEBUGLINK) $(LIBSAPROC_DEBUGINFO) $@ | |
114 ifeq ($(STRIP_POLICY),all_strip) | 123 ifeq ($(STRIP_POLICY),all_strip) |
115 $(QUIETLY) $(STRIP) $@ | 124 $(QUIETLY) $(STRIP) $@ |
116 else | 125 else |
117 ifeq ($(STRIP_POLICY),min_strip) | 126 ifeq ($(STRIP_POLICY),min_strip) |
118 $(QUIETLY) $(STRIP) -x $@ | 127 $(QUIETLY) $(STRIP) -x $@ |