/[cmucl]/src/tools/load-foreign.csh
ViewVC logotype

Contents of /src/tools/load-foreign.csh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations)
Sat Mar 23 18:51:22 2002 UTC (12 years ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18d
Changes since 1.1: +19 -3 lines
File MIME type: application/x-csh
Mega commit to bring RELENG_18 branch in sync with HEAD in preparation
for release tagging 18d.
1 #!/bin/csh -fx
2
3 # script run by load-foreign to do OS-specific symbol-table extraction.
4
5 switch ( `uname` )
6
7 case HP-UX:
8 ld -a archive -N -A $argv[1] -R $argv[2] -o $argv[3] $argv[5-] /lib/dyncall.o
9 if ($status != 0) exit 1
10
11 /bin/nm -xp $argv[3] | sed -e '/ [tdb] /d' -e 's/^0x//' -e 's/ / /' > $argv[4]
12 if ($status != 0) exit 2
13 breaksw
14
15 case FreeBSD:
16 case NetBSD:
17
18 ld -N -R $argv[1] -Ttext $argv[2] -o $argv[3] $argv[5-]
19 if ($status != 0) exit 1
20
21 nm -gp $argv[3] > $argv[4]
22 if ($status != 0) exit 2
23 breaksw
24
25 default:
26 ld -N -A $argv[1] -T $argv[2] -o $argv[3] $argv[5-]
27 if ($status != 0) exit 1
28
29 nm -gp $argv[3] > $argv[4]
30 if ($status != 0) exit 2
31 breaksw
32
33 endsw
34
35 exit 0

  ViewVC Help
Powered by ViewVC 1.1.5