Merge "Linker script support for constructor priorities."

This commit is contained in:
Elliott Hughes 2012-02-14 08:31:20 -08:00 committed by Android (Google) Code Review
commit aeaf48812d
2 changed files with 16 additions and 4 deletions

View File

@ -93,10 +93,16 @@ SECTIONS
.preinit_array : { KEEP (*(.preinit_array)) }
PROVIDE (__preinit_array_end = .);
PROVIDE (__init_array_start = .);
.init_array : { KEEP (*(.init_array)) }
.init_array : {
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
}
PROVIDE (__init_array_end = .);
PROVIDE (__fini_array_start = .);
.fini_array : { KEEP (*(.fini_array)) }
.fini_array : {
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
}
PROVIDE (__fini_array_end = .);
.ctors :
{

View File

@ -59,10 +59,16 @@ SECTIONS
.preinit_array : { KEEP (*(.preinit_array)) }
PROVIDE (__preinit_array_end = .);
PROVIDE (__init_array_start = .);
.init_array : { KEEP (*(.init_array)) }
.init_array : {
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
}
PROVIDE (__init_array_end = .);
PROVIDE (__fini_array_start = .);
.fini_array : { KEEP (*(.fini_array)) }
.fini_array : {
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
}
PROVIDE (__fini_array_end = .);
.ctors :
{