home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / minix / 3755 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.2 KB  |  45 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!milo!grebyn!escom!al
  3. From: al@escom.com (Al Donaldson)
  4. Subject: assembly code problems
  5. Message-ID: <1992Jul23.050222.4509@escom.com>
  6. Organization: ESCOM Corporation
  7. Date: Thu, 23 Jul 1992 05:02:22 GMT
  8. Lines: 35
  9.  
  10. I'm trying to build some standalone boot code with bcc ld, but I 
  11. keep getting a loader error "no start symbol".  I don't have bcc 
  12. sources yet, and haven't gotten gcc running yet, so I'd really 
  13. appreciate any help if someone has done this before.
  14.  
  15. Here's how I invoke as and ld:
  16.   /usr/lib/as -0 -a -o bootsec.o bootsec.s
  17.   /usr/lib/ld -0 -s -o bootsec bootsec.o
  18.  
  19. Here's how the existing ASLD assembly code program is laid out:
  20.   .globl begtext, begdata, begbss, endtext, enddata, endbss
  21.   .text
  22.   begtext:
  23.   .data
  24.   begdata:
  25.   .bss
  26.   begbss:
  27.   .text
  28.   <assembly code program>
  29.   <initialized data buffers>
  30.   .text
  31.   endtext:
  32.   .data
  33.   enddata:
  34.   .bss
  35.   endbss:
  36.  
  37. This worked nicely using ASLD, and I was simple-minded enough 
  38. to think that I could change the initial "globl" to "define",
  39. shove it through as and ld, and live happily every after.
  40. Any ideas?  I've studied Bruce's mods to kernel/start.x and
  41. tools/menu1.x, but I just don't get it.  Are there any references
  42. anwhere I should read?
  43.  
  44. Al
  45.