Fix linking in static ctors
* It seems we also need to call them in the .init_array section.
This commit is contained in:
@@ -11,7 +11,7 @@ SECTIONS
|
||||
|
||||
. = ALIGN(0x4);
|
||||
__ctor_list = .;
|
||||
.ctors : { *(.ctors) }
|
||||
.ctors : { *(.ctors) *(.init_array) }
|
||||
__ctor_end = .;
|
||||
|
||||
.rodata : { *(.rodata .rodata.*) }
|
||||
|
||||
Reference in New Issue
Block a user