selecting the right target...

Phil Blundell pb@nexus.co.uk
Wed Dec 19 07:58:00 GMT 2001


> - arm-uclinux gcc-3.0.2, global_[cd]tors handling in crtbegin/crtend
>	1k flat binary. Ok, this is reasonable. But it generates .init 	and
>.fini sections, I'm not sure how to handle these. trash them
>	or append them to .text?

Put them in with .text.

>	Also: is it safe to swap crtbegin with crt0?

I think so, yes.

> - arm-uclinux gcc-3.0.2 with #undef (INIT|FINI)_SECTION_ASM_OP
>	14k flat binary. __do_global_[cd]tors are not big, true, but
>	cause quite a few functions from libgcc to be included in the 	binary.

You mean libgcc1 type stuff, __divsi3 and so on?

p.



More information about the Gcc mailing list