annotate make/solaris/makefiles/fix_empty_sec_hdr_flags.make @ 14658:d72cee0607a3

8036122: Fix warning 'format not a string literal' Reviewed-by: mduigou, kvn
author goetz
date Mon, 03 Mar 2014 11:54:35 +0100
parents d1b0644d6acf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6095
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
1 #
9c1709c4c80c 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.
9c1709c4c80c 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.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
4 #
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
7 # published by the Free Software Foundation.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
8 #
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
13 # accompanied this code).
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
14 #
9c1709c4c80c 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
9c1709c4c80c 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,
9c1709c4c80c 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.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
18 #
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
21 # questions.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
22 #
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
23 #
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
24
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
26
6167
d1b0644d6acf 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 6095
diff changeset
27 # Allow $(FIX_EMPTY_SEC_HDR_FLAGS) to be called from any directory.
d1b0644d6acf 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 6095
diff changeset
28 # We don't set or use the GENERATED macro to avoid affecting
d1b0644d6acf 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 6095
diff changeset
29 # other HotSpot Makefiles.
d1b0644d6acf 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 6095
diff changeset
30 TOPDIR = $(shell echo `pwd`)
d1b0644d6acf 7175255: symlinks are wrong, which caused jdk8-promote-2 to fail (client/64/64 directories in debuginfo zips)
dcubed
parents: 6095
diff changeset
31 FIX_EMPTY_SEC_HDR_FLAGS = $(TOPDIR)/../generated/fix_empty_sec_hdr_flags
6095
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
32
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
35 FIX_EMPTY_SEC_HDR_FLAGS_FLAGS =
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
36 LIBS_FIX_EMPTY_SEC_HDR_FLAGS += -lelf
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
37
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
38 ifeq ("${Platform_compiler}", "sparcWorks")
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
40 # compare the built ELF objects.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
41 #
9c1709c4c80c 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"
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 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
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
46 # compilations are the same.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
47 #
9c1709c4c80c 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
9c1709c4c80c 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.
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
50 #FIX_EMPTY_SEC_HDR_FLAGS_FLAGS += -W0,-noglobal
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
51 endif # Platform_compiler == sparcWorks
9c1709c4c80c 7165598: enable FDS on Solaris X64 when 7165593 is fixed
dcubed
parents:
diff changeset
52
9c1709c4c80c 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)
9c1709c4c80c 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)