home *** CD-ROM | disk | FTP | other *** search
- From: shoe@hpcuhe.cup.hp.com (Jim Schumacher)
- Date: Sat, 29 Aug 1992 03:01:02 GMT
- Subject: Re: What is the 7xx series compatible with ?
- Message-ID: <31480234@hpcuhe.cup.hp.com>
- Organization: Hewlett Packard, Cupertino
- Path: sparky!uunet!usc!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hpcuhb!hpcuhe!shoe
- Newsgroups: comp.sys.hp
- References: <BtLKwt.HG5@news.cso.uiuc.edu>
- Lines: 41
-
- / hpcuhe:comp.sys.hp / jhd@irfu.se (Jan D.) / 3:59 pm Aug 26, 1992 /
-
-
- >You can't see if an archive library is PA1.1 or 1.0 with file, at least
- >not the file I got on 8.07:
-
- >Script started on Thu Aug 27 00:52:38 1992
- >jhd@kernow> cat > foo.c
- >foo() {}
- >^D
- >jhd@kernow> make foo.o
- > cc -O -c foo.c
- >jhd@kernow> ar cvr libfoo.a foo.o
- >a - foo.o
- >jhd@kernow> file foo.o libfoo.a
- >foo.o: PA-RISC1.1 relocatable object
- >libfoo.a: archive file -s800 relocatable library
- >jhd@kernow> ^D
- >
- >script done on Thu Aug 27 00:53:29 1992
- >
- >BTW, what's your sample-of-two test?
- >
- > Jan D.
- >----------
-
- Well, there is a (unsupported) tool available in the contrib fileset:
-
- hpcll32 297 $ ar cvr libfoo.a foo.o it.o
- r - foo.o
- a - it.o
- hpcll32 298 $ /usr/contrib/bin/odump -head libfoo.a | egrep "Header|RISC"
- Header record for : libfoo.a[foo.o]
- system id: 0210 (PA-RISC 1.1) magic number: 0106
- Header record for : libfoo.a[it.o]
- system id: 0210 (PA-RISC 1.1) magic number: 0106
-
- Granted, you may have to play with the output to get a nice report, but
- odump does look at each object of an archive in turn.
-
- jim shoe
-