f26e5a6eea
Using @ doesn't work on ARM32 Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
45 lines
1.1 KiB
ArmAsm
45 lines
1.1 KiB
ArmAsm
/*
|
|
* Try to define the minimal empty init/ctor/dtor/fini_arrays so building with
|
|
* older or out-of-tree linker scripts will still work.
|
|
*/
|
|
/*
|
|
* Note that these aren't the using the GNU "CONSTRUCTOR" output section
|
|
* command, so they don't start with a size. Because of p2align and the
|
|
* end/END definitions, and the fact that they're mergeable, they can also
|
|
* have NULLs which aren't guaranteed to be at the end.
|
|
*/
|
|
.section .init_array,"aw",%init_array
|
|
.p2align 3, 0
|
|
.globl __init_array_start
|
|
__init_array_start:
|
|
.p2align 3, 0
|
|
.globl __init_array_end
|
|
__init_array_end:
|
|
.section .ctors,"aw",%progbits
|
|
.p2align 3, 0
|
|
.globl __CTOR_LIST__
|
|
__CTOR_LIST__:
|
|
.p2align 3, 0
|
|
.globl __CTOR_END__
|
|
__CTOR_END__:
|
|
.section .dtors,"aw",%progbits
|
|
.p2align 3, 0
|
|
.globl __DTOR_LIST__
|
|
__DTOR_LIST__:
|
|
.p2align 3, 0
|
|
.globl __DTOR_END__
|
|
__DTOR_END__:
|
|
.section .fini_array,"aw",%fini_array
|
|
.p2align 3, 0
|
|
.globl __fini_array_start
|
|
__fini_array_start:
|
|
.p2align 3, 0
|
|
.globl __fini_array_end
|
|
__fini_array_end:
|
|
.p2align 3, 0
|
|
|
|
#if defined(__ELF__) && defined(__linux__)
|
|
.section .note.GNU-stack,"",%progbits
|
|
#endif
|
|
|