This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 = .); }"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]