author | simonis |
Fri, 06 Sep 2013 20:08:29 +0200 | |
changeset 22830 | df1bb606b2ca |
permissions | -rw-r--r-- |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
1 |
#!/bin/sh |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
2 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
3 |
# If we're cross compiling use that path for nm |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
4 |
if [ "$CROSS_COMPILE_ARCH" != "" ]; then |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
5 |
NM=$ALT_COMPILER_PATH/nm |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
6 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
7 |
# On AIX we have to prevent that we pick up the 'nm' version from the GNU binutils |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
8 |
# which may be installed under /opt/freeware/bin. So better use an absolute path here! |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
9 |
NM=/usr/bin/nm |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
10 |
fi |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
11 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
12 |
$NM -X64 -B -C $* \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
13 |
| awk '{ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
14 |
if (($2="d" || $2="D") && ($3 ~ /^__vft/ || $3 ~ /^gHotSpotVM/)) print "\t" $3 ";" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
15 |
if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
16 |
if ($3 ~ /^SharedArchivePath__9Arguments$/) print "\t" $3 ";" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
17 |
}' \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
18 |
| sort -u |