File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ cmake_dependent_option(COMPILER_RT_BUILD_CRT "Build crtbegin.o/crtend.o" ON "COM
917
917
if (COMPILER_RT_BUILD_CRT)
918
918
add_compiler_rt_component(crt)
919
919
920
- option (COMPILER_RT_CRT_USE_EH_FRAME_REGISTRY "Use eh_frame in crtbegin.o/crtend.o" OFF )
920
+ option (COMPILER_RT_CRT_USE_EH_FRAME_REGISTRY "Use eh_frame in crtbegin.o/crtend.o" ON )
921
921
922
922
include (CheckSectionExists)
923
923
check_section_exists(".init_array" COMPILER_RT_HAS_INITFINI_ARRAY
Original file line number Diff line number Diff line change 9
9
10
10
// Ensure the various startup functions are called in the proper order.
11
11
12
+ // CHECK: __register_frame_info()
12
13
/// ctor() is here if ld.so/libc supports DT_INIT/DT_FINI
13
14
// CHECK: main()
14
15
/// dtor() is here if ld.so/libc supports DT_INIT/DT_FINI
16
+ // CHECK: __deregister_frame_info()
15
17
16
18
struct object ;
17
19
static int counter ;
18
20
21
+ void __register_frame_info (const void * fi , struct object * obj ) {
22
+ printf ("__register_frame_info()\n" );
23
+ }
24
+
25
+ void __deregister_frame_info (const void * fi ) {
26
+ printf ("__deregister_frame_info()\n" );
27
+ }
28
+
19
29
void __attribute__((constructor )) ctor () {
20
30
printf ("ctor()\n" );
21
31
++ counter ;
You can’t perform that action at this time.
0 commit comments