C++ constructors work with ELF load now

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5273 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-10-29 19:32:05 +00:00
parent 71fad980c5
commit 5681b615ec
28 changed files with 1282 additions and 394 deletions
@@ -51,8 +51,8 @@ SECTIONS
*/
*(.gnu.linkonce.t.*)
*(.init)
*(.fini)
*(.init) /* Old ABI */
*(.fini) /* Old ABI */
_etext = . ;
}
@@ -86,15 +86,17 @@ SECTIONS
.ctors :
{
_sctros = . ;
*(.ctors)
_sctors = . ;
*(.ctors) /* Old ABI: Unallocated */
*(.init_array) /* New ABI: Allocated */
_edtors = . ;
}
.ctors :
.dtors :
{
_sdtors = . ;
*(.dtors)
*(.dtors) /* Old ABI: Unallocated */
*(.fini_array) /* New ABI: Allocated */
_edtors = . ;
}