Explorar o código

fix(linker): old 'ctors' won't be called

greatbridf %!s(int64=3) %!d(string=hai) anos
pai
achega
896023acbf
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      ldscript.ld

+ 2 - 0
ldscript.ld

@@ -48,6 +48,8 @@ SECTIONS
         start_ctors = .;
         KEEP(*(.init_array));
         KEEP(*(SORT_BY_INIT_PRIORITY(.init_array*)));
+        KEEP(*(.ctors));
+        KEEP(*(SORT_BY_INIT_PRIORITY(.ctors*)));
         end_ctors = .;
 
         *(.data)