About linkcmds

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


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

   Does anyone know how to assign a function address to  a variable in the
   linkcmds script ? Is it ok if I use " startAddr = &start ; "?  Thanks.

That won't work.

In the linker script language, symbols represent an address in virtual
memory.  Assigning to a symbol means setting it to an address in
virtual memory.  So `startAddr = start;' is more likely to be correct.

What are you trying to do?

Ian



More information about the users mailing list