This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]