diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2010-08-26 13:04:16 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2010-08-26 13:04:16 +0000 |
commit | ed5d0307885dc431a8f394bb00e5a468d7e93a59 (patch) | |
tree | 3943f86bb608f0a480fbc3186adc9164eaab85df /contrib/gcc | |
parent | 30ca19f436bae80643110d874f81347befef57cc (diff) | |
download | src-test2-ed5d0307885dc431a8f394bb00e5a468d7e93a59.tar.gz src-test2-ed5d0307885dc431a8f394bb00e5a468d7e93a59.zip |
Notes
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/crtstuff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/gcc/crtstuff.c b/contrib/gcc/crtstuff.c index be41d96dc152..d4f54b91a606 100644 --- a/contrib/gcc/crtstuff.c +++ b/contrib/gcc/crtstuff.c @@ -191,11 +191,11 @@ DTOR_LIST_BEGIN; #elif defined(DTORS_SECTION_ASM_OP) asm (DTORS_SECTION_ASM_OP); STATIC func_ptr __DTOR_LIST__[1] - __attribute__ ((aligned(sizeof(func_ptr)))) + __attribute__ ((used, aligned(sizeof(func_ptr)))) = { (func_ptr) (-1) }; #else STATIC func_ptr __DTOR_LIST__[1] - __attribute__((section(".dtors"), aligned(sizeof(func_ptr)))) + __attribute__((used, section(".dtors"), aligned(sizeof(func_ptr)))) = { (func_ptr) (-1) }; #endif /* __DTOR_LIST__ alternatives */ @@ -203,7 +203,7 @@ STATIC func_ptr __DTOR_LIST__[1] /* Stick a label at the beginning of the frame unwind info so we can register and deregister it with the exception handling library code. */ STATIC EH_FRAME_SECTION_CONST char __EH_FRAME_BEGIN__[] - __attribute__((section(EH_FRAME_SECTION_NAME), aligned(4))) + __attribute__((used, section(EH_FRAME_SECTION_NAME), aligned(4))) = { }; #endif /* USE_EH_FRAME_REGISTRY */ @@ -459,11 +459,11 @@ CTOR_LIST_END; static func_ptr force_to_data[1] __attribute__ ((__used__)) = { }; asm (CTORS_SECTION_ASM_OP); STATIC func_ptr __CTOR_END__[1] - __attribute__((aligned(sizeof(func_ptr)))) + __attribute__((used, aligned(sizeof(func_ptr)))) = { (func_ptr) 0 }; #else STATIC func_ptr __CTOR_END__[1] - __attribute__((section(".ctors"), aligned(sizeof(func_ptr)))) + __attribute__((used, section(".ctors"), aligned(sizeof(func_ptr)))) = { (func_ptr) 0 }; #endif |