This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problems with __attribute__((constructor ())) and gc-sections
- From: Ãyvind Harboe <oyvind dot harboe at zylin dot com>
- To: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 11 Aug 2010 22:16:57 +0200
- Subject: [ECOS] Re: Problems with __attribute__((constructor ())) and gc-sections
- References: <AANLkTikncQSO1fcHhbcxoBqzbZj29N-oAQ2+-8fECb2x@mail.gmail.com>
Hmmm.... I see cortexm stm32 spi is using C global
constructors.
Does this fail too or did I miss something on how to avoid
these fn's from being --gc-sections garbage collected?
static void CYGBLD_ATTRIB_C_INIT_PRI(CYG_INIT_BUS_SPI)
stm32_spi_init(void)
--
Ãyvind Harboe
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss