delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/23/19:40:11

From: "Chris Burgess" <jazz AT uknet DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ld (that comes with djgpp) major problems
Date: Thu, 24 Dec 1998 00:34:21 -0000
Message-ID: <914459923.14054.0.nnrp-05.c1ed260d@news.demon.co.uk>
References: <914404117 DOT 2848 DOT 0 DOT nnrp-09 DOT c1ed260d AT news DOT demon DOT co DOT uk> <199812231437 DOT JAA27935 AT envy DOT delorie DOT com> <914439857 DOT 10644 DOT 0 DOT nnrp-12 DOT c1ed260d AT news DOT demon DOT co DOT uk> <199812231944 DOT OAA19298 AT envy DOT delorie DOT com>
NNTP-Posting-Host: uknet.demon.co.uk
X-NNTP-Posting-Host: uknet.demon.co.uk:193.237.38.13
X-Trace: news.demon.co.uk 914459923 nnrp-05:14054 NO-IDENT uknet.demon.co.uk:193.237.38.13
X-Complaints-To: abuse AT demon DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Yeah I get what you mean now, the problem I have is still there, but not
what I thought it was.
I understand now that the "rubbish" in my object file just fills up space
and doesn't effect the file - I just thought it was what was causing my
"start" symbol not being moved to the start of my binary image.
You see if you look at my kernel.ld, I made the entry point to be the symbol
"start".
When I have the kernel.o file I want to objcopy it to another format -
binary format for obvious reasons.
What does the entry point in binary mean? Shouldn't the start of the binary
file become the entry point. ie the coff file containing the "start" symbol
be moved to the beginning of the binary image.
ok put another way what exactly does the "entry point" mean in general -
what enters at that point?

Hope you can help.

Thanks

Chris

PS another Q. in compiled C code what is the difference between the .data
sections and the .bss sections, or more specifically what are each used for
in C.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019