diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-11-07 12:10:33 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2007-11-07 12:10:33 +0000 |
commit | abbda6d05d1dfded890bf0a05dda61e55cf22223 (patch) | |
tree | 1ba1e6e306caf2d37052fb62f29f31b868f46d35 /ld/emulparams | |
parent | fff279a794cac522ce91ab446f352079f898d438 (diff) | |
download | gdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.zip gdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.tar.gz gdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.tar.bz2 |
ld/
* emulparams/vxworks.sh (OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS): Add TLS sections.
ld/testsuite/
* ld-vxworks/tls-1.d: New.
* ld-vxworks/tls-1.s: New.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/vxworks.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/emulparams/vxworks.sh b/ld/emulparams/vxworks.sh index 6e399ea..74a11ac 100644 --- a/ld/emulparams/vxworks.sh +++ b/ld/emulparams/vxworks.sh @@ -22,6 +22,24 @@ FINI_START='_fini = .; FINI_END="KEEP (*(.fini\$99)); PROVIDE (${SYMPREFIX}_etext = .);" +OTHER_READONLY_SECTIONS=".tls_data ${RELOCATING-0} : {${RELOCATING+ + __wrs_rtp_tls_data_start = .; + ___wrs_rtp_tls_data_start = .;} + *(.tls_data${RELOCATING+ .tls_data.*}) + }${RELOCATING+ + __wrs_rtp_tls_data_size = . - __wrs_rtp_tls_data_start; + ___wrs_rtp_tls_data_size = . - __wrs_rtp_tls_data_start; + __wrs_rtp_tls_data_align = ALIGNOF(.tls_data); + ___wrs_rtp_tls_data_align = ALIGNOF(.tls_data);}" + +OTHER_READWRITE_SECTIONS=".tls_vars ${RELOCATING-0} : {${RELOCATING+ + __wrs_rtp_tls_vars_start = .; + ___wrs_rtp_tls_vars_start = .;} + *(.tls_vars${RELOCATING+ .tls_vars.*}) + }${RELOCATING+ + __wrs_rtp_tls_vars_size = SIZEOF(.tls_vars); + ___wrs_rtp_tls_vars_size = SIZEOF(.tls_vars);}" + ETEXT_NAME=etext_unrelocated OTHER_END_SYMBOLS="PROVIDE (${SYMPREFIX}_ehdr = ${TEXT_START_ADDR});" DATA_END_SYMBOLS=".edata : { PROVIDE (${SYMPREFIX}_edata = .); }" |