home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mips / 894 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.sys.mips
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!usc!orion.oac.uci.edu!gordius!gordius!dan
  3. From: dan@gordian.com (Dan Lambright)
  4. Subject: weird compiling on a RISC 5.0
  5. Message-ID: <1992Aug21.001007.24697@gordian.com>
  6. Keywords: mips 5.0 , compiling
  7. Sender: news@gordian.com
  8. Organization: Gordian; Costa Mesa, CA
  9. Date: Fri, 21 Aug 1992 00:10:07 GMT
  10. Lines: 28
  11.  
  12.  
  13.        cc -g -N -T 0 -EL test.c -c
  14.        ld -g -N -m -EL -T 00000000 test.o -o test.mon
  15.  
  16. I am not able to use utilities such as "dbx" and "nm" when compiling
  17. a one line program using the above options on the new RISC 5.0 machines.  
  18. I have not had that problem when I compile using a 4.52.  I've traced
  19. the problem to the symbol tables.
  20.  
  21. I compared the "test.mon" generated by the 5.0 compiler with
  22. the one compiled on 4.52.  There was a difference in the 
  23. file header.  The f_nscns element from struct filehdr was 5 on our
  24. 5.0 machine, and 4 when compiled on the 4.52 machine.  
  25.  
  26. Dissasembling the symbol tables, I found that for both the 4.52
  27. and 5.0 compilers generated .text, .sdata, .sbss, and .bss sections,
  28. in that order.  The 5.0 compiler, however,  produced a 5th
  29. section: ".comment".   Say what?!?  
  30.  
  31. My question is: why does the 5.0 compiler create a 5th section called
  32. .comment?  .comment is undoccumented in our manuals.  What is it?
  33.  
  34. .comment is not produced when I compile in big endian.  
  35.  
  36.  
  37. Dan
  38.  
  39. dan@gordian.com
  40.