home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9842 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.5 KB

  1. From: shoe@hpcuhe.cup.hp.com (Jim Schumacher)
  2. Date: Sat, 29 Aug 1992 03:01:02 GMT
  3. Subject: Re: What is the 7xx series compatible with ?
  4. Message-ID: <31480234@hpcuhe.cup.hp.com>
  5. Organization: Hewlett Packard, Cupertino
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hpcuhb!hpcuhe!shoe
  7. Newsgroups: comp.sys.hp
  8. References: <BtLKwt.HG5@news.cso.uiuc.edu>
  9. Lines: 41
  10.  
  11. / hpcuhe:comp.sys.hp / jhd@irfu.se (Jan D.) /  3:59 pm  Aug 26, 1992 /
  12.  
  13.  
  14. >You can't see if an archive library is PA1.1 or 1.0 with file, at least
  15. >not the file I got on 8.07:
  16.  
  17. >Script started on Thu Aug 27 00:52:38 1992
  18. >jhd@kernow> cat > foo.c
  19. >foo() {}
  20. >^D
  21. >jhd@kernow> make foo.o
  22. >    cc -O -c foo.c
  23. >jhd@kernow> ar cvr libfoo.a foo.o
  24. >a - foo.o
  25. >jhd@kernow> file foo.o libfoo.a
  26. >foo.o:        PA-RISC1.1 relocatable object
  27. >libfoo.a:    archive file -s800 relocatable library
  28. >jhd@kernow> ^D
  29. >
  30. >script done on Thu Aug 27 00:53:29 1992
  31. >
  32. >BTW, what's your sample-of-two test?
  33. >
  34. >    Jan D.
  35. >----------
  36.  
  37. Well, there is a (unsupported) tool available in the contrib fileset:
  38.  
  39. hpcll32 297 $ ar cvr libfoo.a foo.o it.o
  40. r - foo.o
  41. a - it.o
  42. hpcll32 298 $ /usr/contrib/bin/odump -head libfoo.a | egrep "Header|RISC"
  43. Header record for : libfoo.a[foo.o]
  44. system id:        0210 (PA-RISC 1.1)    magic number:   0106
  45. Header record for : libfoo.a[it.o]
  46. system id:        0210 (PA-RISC 1.1)    magic number:   0106
  47.  
  48. Granted, you may have to play with the output to get a nice report, but
  49. odump does look at each object of an archive in turn. 
  50.  
  51. jim shoe
  52.