[PATCH, ARM/libgloss]fix compilation error in linux-crt0.c when '-ffunction-sections' is specified

Corinna Vinschen vinschen@redhat.com
Tue Jan 17 10:05:00 GMT 2012


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



More information about the Newlib mailing list