hotspot/make/solaris/makefiles/fix_empty_sec_hdr_flags.make
author twisti
Mon, 06 May 2013 19:49:23 -0700
changeset 17382 bba473b81ec0
parent 13092 3b4aad065f27
permissions -rw-r--r--
8008772: remove gamma launcher Reviewed-by: kvn, neliasso, ctornqvi
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12767
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     1
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     2
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     4
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     7
# published by the Free Software Foundation.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     8
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    13
# accompanied this code).
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    14
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    18
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    21
# questions.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    22
#  
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    23
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    24
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    25
# Rules to build fix_empty_sec_hdr_flags, used by vm.make on Solaris
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    26
13092
3b4aad065f27 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 12767
diff changeset
    27
# Allow $(FIX_EMPTY_SEC_HDR_FLAGS) to be called from any directory.
3b4aad065f27 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 12767
diff changeset
    28
# We don't set or use the GENERATED macro to avoid affecting
3b4aad065f27 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 12767
diff changeset
    29
# other HotSpot Makefiles.
3b4aad065f27 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 12767
diff changeset
    30
TOPDIR                          = $(shell echo `pwd`)
3b4aad065f27 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 12767
diff changeset
    31
FIX_EMPTY_SEC_HDR_FLAGS         = $(TOPDIR)/../generated/fix_empty_sec_hdr_flags
12767
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    32
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    33
FIX_EMPTY_SEC_HDR_FLAGS_DIR     = $(GAMMADIR)/src/os/solaris/fix_empty_sec_hdr_flags
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    34
FIX_EMPTY_SEC_HDR_FLAGS_SRC     = $(FIX_EMPTY_SEC_HDR_FLAGS_DIR)/fix_empty_sec_hdr_flags.c
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    35
FIX_EMPTY_SEC_HDR_FLAGS_FLAGS   = 
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    36
LIBS_FIX_EMPTY_SEC_HDR_FLAGS   += -lelf
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    37
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    38
ifeq ("${Platform_compiler}", "sparcWorks")
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    39
# Enable the following FIX_EMPTY_SEC_HDR_FLAGS_FLAGS addition if you need to
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    40
# compare the built ELF objects.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    41
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    42
# The -g option makes static data global and the "-W0,-noglobal"
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    43
# option tells the compiler to not globalize static data using a unique
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    44
# globalization prefix. Instead force the use of a static globalization
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    45
# prefix based on the source filepath so the objects from two identical
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    46
# compilations are the same.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    47
#
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    48
# Note: The blog says to use "-W0,-xglobalstatic", but that doesn't
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    49
#       seem to work. I got "-W0,-noglobal" from Kelly and that works.
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    50
#FIX_EMPTY_SEC_HDR_FLAGS_FLAGS += -W0,-noglobal
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    51
endif # Platform_compiler == sparcWorks
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    52
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    53
$(FIX_EMPTY_SEC_HDR_FLAGS): $(FIX_EMPTY_SEC_HDR_FLAGS_SRC)
c9cd24c9142d 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
    54
	$(CC) -g -o $@ $< $(FIX_EMPTY_SEC_HDR_FLAGS_FLAGS) $(LIBS_FIX_EMPTY_SEC_HDR_FLAGS)