This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH, ARM/libgloss]fix compilation error in linux-crt0.c when '-ffunction-sections' is specified
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 17 Jan 2012 11:04:06 +0100
- Subject: Re: [PATCH, ARM/libgloss]fix compilation error in linux-crt0.c when '-ffunction-sections' is specified
- References: <004001ccd41b$557de020$0079a060$@cheng@arm.com> <20120116104935.GA9149@e103070-lin.arm.com> <004401ccd4cb$83a12f10$8ae38d30$@cheng@arm.com> <004801ccd4dd$25864840$7092d8c0$@cheng@arm.com>
- Reply-to: newlib at sourceware dot org
On Jan 17 13:59, Bin Cheng wrote:
> Sorry, this is the patch, and please ignore the previous.
> [...]
> Index: libgloss/arm/linux-crt0.c
> ===================================================================
> RCS file: /cvs/src/src/libgloss/arm/linux-crt0.c,v
> retrieving revision 1.3
> diff -u -a -r1.3 linux-crt0.c
> --- libgloss/arm/linux-crt0.c 13 Jul 2011 15:06:21 -0000 1.3
> +++ libgloss/arm/linux-crt0.c 17 Jan 2012 05:56:07 -0000
> @@ -18,8 +18,10 @@
> ".global _start\n"
> ".type _start, %function\n"
> "_start:\n"
> - "\tadr r0, _start_thumb+1\n"
> + "\tldr r0, .LC0\n"
> "\tbx r0\n"
> + ".LC0:\n"
> + "\t.word _start_thumb\n"
> ".size _start, .-_start\n");
>
> __attribute__((naked, used))
Thanks, applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat