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

  1. From: shoe@hpcuhe.cup.hp.com (Jim Schumacher)
  2. Date: Sat, 29 Aug 1992 03:29:31 GMT
  3. Subject: Re: that HPUX ld linker again...
  4. Message-ID: <31480236@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: <3280@tivoli.UUCP>
  9. Lines: 29
  10.  
  11.  
  12. >/ hpcuhe:comp.sys.hp / stuart@TIVOLI.COM (Stuart Jarriel) / 11:57 am  Aug 26, 1992 /
  13. >Also, Im finding that the linker is issuing the error
  14. >
  15. >
  16. >ld: R_DATA_ONE_SYMBOL fixup in file ds_common.o for code unsat symbol "stupid_test" - use P' fixup
  17. >
  18. >where stupid_test is the first function in the first .o file that I pass
  19. >to the linker with a -b option (trying to build a shared-lib).
  20. >
  21. >Has anyone seen the R_DATA_ONE_SYMBOL before, or know what at P' fixup
  22. >is?  It looks like a nice loader diagnostic.
  23. >----------
  24.  
  25. I agree, the loader/linker is not always the kindest of beasts when it 
  26. wants to beller. Actually, it is a very detailed message but does not
  27. map linker talk to english very well. You need to use the P' 
  28. selector when taking the address of a code symbol in assembly.
  29.  
  30.     .ALIGN  8
  31.     .WORD   P'some_symbol
  32.  
  33. Or, if this came from c code, you need to use +z/+Z when you compile. 
  34.  
  35. jim shoe
  36.  
  37.  
  38.  
  39.  
  40.