Mercurial > hg > truffle
comparison make/solaris/makefiles/saproc.make @ 20640:8c76e844a7f9
8033602: wrong stabs data in libjvm.debuginfo on JDK 8 - SPARC
8034005: cannot debug in synchronizer.o or objectMonitor.o on Solaris X86
Summary: Solaris needs objcopy version of 2.21.1 or newer is needed to create valid .debuginfo files.
Reviewed-by: dsamersoff, sspitsyn, dholmes, ihse
author | dcubed |
---|---|
date | Sat, 15 Nov 2014 11:22:07 -0800 |
parents | 892acf0431ef |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20639:84e11eeec136 | 20640:8c76e844a7f9 |
---|---|
1 # | 1 # |
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. | 2 # Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | 4 # |
5 # This code is free software; you can redistribute it and/or modify it | 5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as | 6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
88 # Uncomment the following to simulate building on Nevada-B159 or later | 88 # Uncomment the following to simulate building on Nevada-B159 or later |
89 # when actually building on Nevada-B158 or earlier: | 89 # when actually building on Nevada-B158 or earlier: |
90 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER | 90 #SOLARIS_11_B159_OR_LATER=-DSOLARIS_11_B159_OR_LATER |
91 | 91 |
92 | 92 |
93 $(LIBSAPROC): $(ADD_GNU_DEBUGLINK) $(FIX_EMPTY_SEC_HDR_FLAGS) $(SASRCFILES) $(SADISOBJ) $(SAMAPFILE) | 93 $(LIBSAPROC): $(SASRCFILES) $(SADISOBJ) $(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... |
119 $(SOLARIS_11_B159_OR_LATER) \ | 119 $(SOLARIS_11_B159_OR_LATER) \ |
120 $(SADISSRCFILES) \ | 120 $(SADISSRCFILES) \ |
121 -c -o $(SADISOBJ) | 121 -c -o $(SADISOBJ) |
122 | 122 |
123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) | 123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
124 # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set. | |
125 # Clear the SHF_ALLOC flag (if set) from empty section headers. | |
126 # An empty section header has sh_addr == 0 and sh_size == 0. | |
127 # This problem has only been seen on Solaris X64, but we call this tool | |
128 # on all Solaris builds just in case. | |
129 $(QUIETLY) $(FIX_EMPTY_SEC_HDR_FLAGS) $@ | |
130 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) | 124 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) |
131 # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections. | 125 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@ |
132 # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available. | |
133 # $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@ | |
134 $(QUIETLY) $(ADD_GNU_DEBUGLINK) $(LIBSAPROC_DEBUGINFO) $@ | |
135 ifeq ($(STRIP_POLICY),all_strip) | 126 ifeq ($(STRIP_POLICY),all_strip) |
136 $(QUIETLY) $(STRIP) $@ | 127 $(QUIETLY) $(STRIP) $@ |
137 else | 128 else |
138 ifeq ($(STRIP_POLICY),min_strip) | 129 ifeq ($(STRIP_POLICY),min_strip) |
139 $(QUIETLY) $(STRIP) -x $@ | 130 $(QUIETLY) $(STRIP) -x $@ |