home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!milo!grebyn!escom!al
- From: al@escom.com (Al Donaldson)
- Subject: assembly code problems
- Message-ID: <1992Jul23.050222.4509@escom.com>
- Organization: ESCOM Corporation
- Date: Thu, 23 Jul 1992 05:02:22 GMT
- Lines: 35
-
- I'm trying to build some standalone boot code with bcc ld, but I
- keep getting a loader error "no start symbol". I don't have bcc
- sources yet, and haven't gotten gcc running yet, so I'd really
- appreciate any help if someone has done this before.
-
- Here's how I invoke as and ld:
- /usr/lib/as -0 -a -o bootsec.o bootsec.s
- /usr/lib/ld -0 -s -o bootsec bootsec.o
-
- Here's how the existing ASLD assembly code program is laid out:
- .globl begtext, begdata, begbss, endtext, enddata, endbss
- .text
- begtext:
- .data
- begdata:
- .bss
- begbss:
- .text
- <assembly code program>
- <initialized data buffers>
- .text
- endtext:
- .data
- enddata:
- .bss
- endbss:
-
- This worked nicely using ASLD, and I was simple-minded enough
- to think that I could change the initial "globl" to "define",
- shove it through as and ld, and live happily every after.
- Any ideas? I've studied Bruce's mods to kernel/start.x and
- tools/menu1.x, but I just don't get it. Are there any references
- anwhere I should read?
-
- Al
-