Mercurial > hg > truffle
annotate make/aix/makefiles/build_vm_def.sh @ 18610:6a6291c31657
Add LocationMarker.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 03 Dec 2014 20:40:30 +0100 |
parents | b83f7d608548 |
children |
rev | line source |
---|---|
14414
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
1 #!/bin/sh |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
2 |
b83f7d608548
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 |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
4 if [ "$CROSS_COMPILE_ARCH" != "" ]; then |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
5 NM=$ALT_COMPILER_PATH/nm |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
6 else |
b83f7d608548
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 |
b83f7d608548
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! |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
9 NM=/usr/bin/nm |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
10 fi |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
11 |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
12 $NM -X64 -B -C $* \ |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
13 | awk '{ |
b83f7d608548
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 ";" |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
15 if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";" |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
16 if ($3 ~ /^SharedArchivePath__9Arguments$/) print "\t" $3 ";" |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
17 }' \ |
b83f7d608548
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
18 | sort -u |