Problem with GNU linker

Alexandre Oliva aoliva@redhat.com
Mon Apr 9 02:41:00 GMT 2001


You got the wrong mailing list.  This one is about GCC; the GNU linker
is part of GNU binutils, a separate project.

On Apr  9, 2001, Debabrata Sengupta <debabrata@macmetit.com> wrote:

> .org 0x2000, 0x5000 and 0x8000 respectively

AFAIK, `.org' sets offsets from the beginning of the containing
sections, not absolute addresses.  You'll probably be better off using
separate sections for each absolute address you want, then using a
linker script to set the absolute address of each section.

> using "objdump" we find that the program starts from location 0x2020,

Probably because there's some initialization code that takes up a few
bytes.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list