RE: [patch] [arm] New option for PIC offset unfixed

2013-11-14 Thread Joey Ye
> -Original Message- > From: Richard Earnshaw > Sent: Thursday, November 14, 2013 18:00 > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [patch] [arm] New option for PIC offset unfixed > > On 14/11/13 08:23, Joey Ye wrote: > >> -Origina

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-14 Thread Richard Earnshaw
On 14/11/13 08:23, Joey Ye wrote: >> -Original Message- >> From: Richard Earnshaw >> Sent: Thursday, November 14, 2013 0:57 >> To: Joey Ye >> Cc: gcc-patches@gcc.gnu.org >> Subject: Re: [patch] [arm] New option for PIC offset unfixed >>

RE: [patch] [arm] New option for PIC offset unfixed

2013-11-14 Thread Joey Ye
> -Original Message- > From: Richard Earnshaw > Sent: Thursday, November 14, 2013 0:57 > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [patch] [arm] New option for PIC offset unfixed > > > So you are suggesting change like th

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Richard Earnshaw
On 13/11/13 15:57, Joey Ye wrote: > > >> -Original Message- >> From: Richard Earnshaw >> Sent: Wednesday, November 13, 2013 19:17 >> To: Joey Ye >> Cc: gcc-patches@gcc.gnu.org >> Subject: Re: [patch] [arm] New option for PIC offset unfi

RE: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Joey Ye
This patch address all comments. Thanks, Joey > -Original Message- > From: Richard Earnshaw > Sent: Wednesday, November 13, 2013 19:07 > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [patch] [arm] New option for PIC offset unfixed > > On 13/11

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Richard Earnshaw
On 13/11/13 10:20, Joey Ye wrote: >>> + if (TARGET_VXWORKS_RTP) >>> > > +arm_pic_data_is_text_relative = 0; >> > >> > Why is this needed? Surely, even a VxWorks user should have the right to >> > force the compiler to behave differently. You've set things up through > the >> > default, now

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Richard Earnshaw
On 13/11/13 10:20, Joey Ye wrote: >>> +@item -mpic-data-is-text-relative >>> > > +@opindex mpic-data-is-text-relative >>> > > +Assume that each data segments are relative to text segment at load > time. >> > >>> > > +Therefore, prevent PC relative and GOTOFF style relocations to >>> > > +reference

RE: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Joey Ye
> -Original Message- > From: Richard Earnshaw > Sent: Wednesday, November 13, 2013 17:49 > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [patch] [arm] New option for PIC offset unfixed > > On 13/11/13 06:18, Joey Ye wrote: > >> -Origina

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-13 Thread Richard Earnshaw
On 13/11/13 06:18, Joey Ye wrote: >> -Original Message- >> From: Richard Earnshaw >> Sent: Tuesday, November 12, 2013 18:49 >> To: Joey Ye >> Cc: gcc-patches@gcc.gnu.org >> Subject: Re: [patch] [arm] New option for PIC offset unfixed >> >&

RE: [patch] [arm] New option for PIC offset unfixed

2013-11-12 Thread Joey Ye
> -Original Message- > From: Richard Earnshaw > Sent: Tuesday, November 12, 2013 18:49 > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [patch] [arm] New option for PIC offset unfixed > > The name of the option and the documentation highlights that t

Re: [patch] [arm] New option for PIC offset unfixed

2013-11-12 Thread Richard Earnshaw
On 12/11/13 06:59, Joey Ye wrote: > For RTOS who need to relocate executable, PC relative and GOTOFF cannot be > used as the offset between any sections won't be fixed. Only GOT can be > used, just as VxWorks RTP does. > > This patch introduces a new option enable user to choose between fixed > of

[patch] [arm] New option for PIC offset unfixed

2013-11-11 Thread Joey Ye
For RTOS who need to relocate executable, PC relative and GOTOFF cannot be used as the offset between any sections won't be fixed. Only GOT can be used, just as VxWorks RTP does. This patch introduces a new option enable user to choose between fixed offset or not. Enabled for VxWorks RTP to keep i