diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2015-10-08 04:23:00 -0500 |
---|---|---|
committer | Gregory S. Still <stillgs@us.ibm.com> | 2015-10-15 21:15:23 -0500 |
commit | 43aaa85b59ba06dce6e0f7063234235384e31135 (patch) | |
tree | 7bce534bface7892fda3a0a504e985a1f1d6597c /sbe/image | |
parent | 4d0a0ca7b6375ad21614ecc4538da9fdf5ea8b7a (diff) | |
download | talos-sbe-43aaa85b59ba06dce6e0f7063234235384e31135.tar.gz talos-sbe-43aaa85b59ba06dce6e0f7063234235384e31135.zip |
Global constructor support
Change-Id: I3073787372f8405adc2b8d11f41413e3b61688ce
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21036
Tested-by: Jenkins Server
Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'sbe/image')
-rw-r--r-- | sbe/image/linksbe.cmd | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sbe/image/linksbe.cmd b/sbe/image/linksbe.cmd index 0f7435db..cea69a2b 100644 --- a/sbe/image/linksbe.cmd +++ b/sbe/image/linksbe.cmd @@ -30,15 +30,18 @@ SECTIONS // SDA2 constant sections .sdata2 and .sbss2 must be adjacent to each // other. Our SDATA sections are small so we'll use strictly positive - // offsets. + // offsets. _SDA2_BASE_ = .; .sdata2 . : { *(.sdata2) } > sram .sbss2 . : { *(.sbss2) } > sram - // Other read-only data. - - .rodata . : { *(.rodata*) *(.got2) } > sram + // Other read-only data. + + .rodata . : { ctor_start_address = .; + *(.ctors) *(.ctors.*) + ctor_end_address = .; + *(rodata*) *(.got2) } > sram _RODATA_SECTION_SIZE = . - _RODATA_SECTION_BASE; |