This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[vxworks] allow setting test address
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Fri, 01 May 2009 16:23:09 +0100
- Subject: [vxworks] allow setting test address
I've committed this patch to update the vxworks linker scripts. New vxworkses
allow setting an rtp's text address during static link time. A sort of manual
prelinking.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
* emulparams/vxworks.sh (TEXT_START_ADDR): Override.
Index: emulparams/vxworks.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/vxworks.sh,v
retrieving revision 1.7
diff -c -3 -p -r1.7 vxworks.sh
*** emulparams/vxworks.sh 7 Nov 2007 12:10:33 -0000 1.7
--- emulparams/vxworks.sh 1 May 2009 15:20:14 -0000
*************** OTHER_READWRITE_SECTIONS=".tls_vars ${RE
*** 40,45 ****
--- 40,46 ----
__wrs_rtp_tls_vars_size = SIZEOF(.tls_vars);
___wrs_rtp_tls_vars_size = SIZEOF(.tls_vars);}"
+ TEXT_START_ADDR="(DEFINED (__wrs_rtp_base) ? __wrs_rtp_base : 0)"
ETEXT_NAME=etext_unrelocated
OTHER_END_SYMBOLS="PROVIDE (${SYMPREFIX}_ehdr = ${TEXT_START_ADDR});"
DATA_END_SYMBOLS=".edata : { PROVIDE (${SYMPREFIX}_edata = .); }"