Re: PIE/PIC issue ...w.r.t linker variable

2016-02-12 Thread Kyrill Tkachov
On 12/02/16 09:58, Umesh Kalappa wrote: Hi Kyrill , Thank you for the info ,before i file a bug ,need to confirm its a bug or not . I'm not familiar with linker scripts and the details of -fpie, so unfortunately I can't judge. Do file a bug report. If it is not a bug, it will be closed as suc

Re: PIE/PIC issue ...w.r.t linker variable

2016-02-12 Thread Umesh Kalappa
Hi Kyrill , Thank you for the info ,before i file a bug ,need to confirm its a bug or not . Thank you ~Umesh On Fri, Feb 12, 2016 at 3:00 PM, Kyrill Tkachov wrote: > Hi, > > > On 12/02/16 09:19, Umesh Kalappa wrote: >> >> Hi Guys , >> >> we do have a issue with below code ,When we enabled the p

Re: PIE/PIC issue ...w.r.t linker variable

2016-02-12 Thread Kyrill Tkachov
Hi, On 12/02/16 09:19, Umesh Kalappa wrote: Hi Guys , we do have a issue with below code ,When we enabled the pie (-fpie/pie) option i.e main.c extern int *my_ptr ; int main() { return *my_ptr; } foo.s .syntax unified .cpu cortex-m0 .fpu softvfp .thumb .global my_ptr

PIE/PIC issue ...w.r.t linker variable

2016-02-12 Thread Umesh Kalappa
Hi Guys , we do have a issue with below code ,When we enabled the pie (-fpie/pie) option i.e main.c extern int *my_ptr ; int main() { return *my_ptr; } foo.s .syntax unified .cpu cortex-m0 .fpu softvfp .thumb .global my_ptr .global my_var .data .align 2 .type my_pt