Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: FW: GNUARM C++ Constructors

2004-05-21 by embeddedjanitor

This is a general gcc/binutils question that you might find better 
answers to elsewhere. I hunch very few people are using C++ on the 
LPC2x devices.

-- CHarles

--- In lpc2000@yahoogroups.com, "James Dabbs" <jdabbs@t...> wrote:
> 
> The following linker script snippet does not seem to account for the
> constructors of all my initialized data objects:
> 
> 		__CTOR_LIST__ = .;
> 		LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
> 		*(SORT(.ctors))
> 		LONG(0)
> 		__CTOR_END__ = . ;
> 		
> 		__DTOR_LIST__ = .;
> 		LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
> 		*(SORT(.dtors))
> 		LONG(0)
> 		__DTOR_END__ = . ;
> 
> Am I missing something?  Do constructor calls wind up elsewhere 
under
> certain circumstances?
> 
> Thanks,
> 
> James Dabbs, TGA
> 
> PS.  Is there a better list/group for questions like this?  Sorry 
for
> any OT posting..

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.