About linkcmds

Ian Lance Taylor ian at zembu.com
Fri Apr 21 22:32:32 UTC 2000


   Date: Fri, 21 Apr 2000 15:33:02 +0100
   From: Aaron Xinhuan Liu <xliu at csr.UVic.CA>

   I'd like to place the RTEMS entry point to the second long word of the image I
   use.

I would do this by simply using an assembler file, and linking it
first in the list.

If you want to do in the linker script, put something like this in
your first input section:
    LONG (0);
    LONG (entry_symbol);

Since symbols in the linker script are addresses, this will put the
address of entry_symbol in the image.

Ian



More information about the users mailing list