[2/4] libgcc: vxcrtstuff.c: remove ctor/dtor declarations

Message ID 20211101093456.2003236-3-rasmus.villemoes@prevas.dk
State Committed
Commit 8b2885dee57e6e91b6265248f1de88fd53d61ce4
Headers
Series some vxworks crtstuff |

Commit Message

Rasmus Villemoes Nov. 1, 2021, 9:34 a.m. UTC
  These declarations prevent the priority given in the
constructor/destructor attributes from taking effect, thus emitting
the function pointers in the ordinary (lowest-priority)
.init_array/.fini_array sections.

libgcc/
	* config/vxcrtstuff.c: Remove constructor/destructor
	declarations.
---
 libgcc/config/vxcrtstuff.c | 3 ---
 1 file changed, 3 deletions(-)
  

Comments

Olivier Hainque Dec. 10, 2021, 3:12 p.m. UTC | #1
> On 1 Nov 2021, at 10:34, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
> 
> These declarations prevent the priority given in the
> constructor/destructor attributes from taking effect, thus emitting
> the function pointers in the ordinary (lowest-priority)
> .init_array/.fini_array sections.
> 
> libgcc/
> 	* config/vxcrtstuff.c: Remove constructor/destructor
> 	declarations.

Ok, thanks.

Olivier
  

Patch

diff --git a/libgcc/config/vxcrtstuff.c b/libgcc/config/vxcrtstuff.c
index 87fadda9ac5..c146e1be3be 100644
--- a/libgcc/config/vxcrtstuff.c
+++ b/libgcc/config/vxcrtstuff.c
@@ -88,9 +88,6 @@  __attribute__((section(__LIBGCC_EH_FRAME_SECTION_NAME__), aligned(4)))
 
 #endif /* USE_INITFINI_ARRAY  */
 
-void EH_CTOR_NAME (void);
-void EH_DTOR_NAME (void);
-
 EH_CTOR_ATTRIBUTE void EH_CTOR_NAME (void)
 {
   static struct object object;