|
@@ -50,16 +50,20 @@ SECTIONS
|
|
|
*/
|
|
|
. = ALIGN(16);
|
|
|
_init_array = .;
|
|
|
- *(SORT_BY_NAME(.init_array))
|
|
|
+ *(SORT(.init_array.*))
|
|
|
+ *(.init_array)
|
|
|
_init_array_end = .;
|
|
|
__CTOR_LIST__ = .;
|
|
|
- *(SORT_BY_NAME(.ctors))
|
|
|
+ *(SORT(.ctors.*))
|
|
|
+ *(.ctors)
|
|
|
__CTOR_END__ = .;
|
|
|
__DTOR_LIST__ = .;
|
|
|
- *(SORT_BY_NAME(.dtors))
|
|
|
+ *(SORT(.dtors.*))
|
|
|
+ *(.dtors)
|
|
|
__DTOR_END__ = .;
|
|
|
_fini_array = .;
|
|
|
- *(SORT_BY_NAME(.fini_array))
|
|
|
+ *(SORT(.fini_array.*))
|
|
|
+ *(.fini_array)
|
|
|
_fini_array_end = .;
|
|
|
|
|
|
/* the EFI loader doesn't seem to like a .bss section, so we stick
|
|
@@ -82,10 +86,10 @@ SECTIONS
|
|
|
*(.rela.dyn)
|
|
|
*(.rela.gnu.linkonce.d*)
|
|
|
*(.rela.stab)
|
|
|
- *(.rela.init_array)
|
|
|
- *(.rela.fini_array)
|
|
|
- *(.rela.ctors)
|
|
|
- *(.rela.dtors)
|
|
|
+ *(.rela.init_array*)
|
|
|
+ *(.rela.fini_array*)
|
|
|
+ *(.rela.ctors*)
|
|
|
+ *(.rela.dtors*)
|
|
|
}
|
|
|
. = ALIGN(4096);
|
|
|
.rela.plt : { *(.rela.plt) }
|