Re: Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-26 Thread David Edelsohn
On Fri, Oct 26, 2018 at 10:27 AM Umesh Kalappa wrote: > > Thank you David for the information. > >>Are you asking about semantics or syntax? Which source code do you > not want to change? > My bad was not clear in the first go and the questions was why on PE > format the relocation is

Re: Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-26 Thread Umesh Kalappa
Thank you David for the information. >>Are you asking about semantics or syntax? Which source code do you not want to change? My bad was not clear in the first go and the questions was why on PE format the relocation is R_PPC64_TOC16 is generated for global access and on ELF why its

Re: Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-26 Thread Segher Boessenkool
Hi Umesh, On Fri, Oct 26, 2018 at 12:22:37PM +0530, Umesh Kalappa wrote: > Cced maintainer like David Edelsohn and Segher Boessenkool . I did see the mail, even started writing a reply, but I got lost in it. > Any suggestions/comments for the below query ? No, I have no idea what it means

Re: Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-26 Thread David Edelsohn
On Thu, Oct 25, 2018 at 11:53 AM Umesh Kalappa wrote: > > Hi All, > > For the below code (test.c) > > int foo() > { > printf("Hello World"); > } > > On linux : > ccpc -mcpu=e6500 -mno-altivec -mabi=no-altivec -D_WRS_HARDWARE_FP > -mabi=elfv2 -mcmodel=med -mhard-float -S test.c > > linux asm : >

Re: Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-26 Thread Umesh Kalappa
Cced maintainer like David Edelsohn and Segher Boessenkool . Any suggestions/comments for the below query ? Thank you ~Umesh On Thu, Oct 25, 2018 at 9:23 PM Umesh Kalappa wrote: > > Hi All, > > For the below code (test.c) > > int foo() > { > printf("Hello World"); > } > > On linux : > ccpc

Power 64 ELFv2 w.r.t toc(cmodel=medium) on windows.

2018-10-25 Thread Umesh Kalappa
Hi All, For the below code (test.c) int foo() { printf("Hello World"); } On linux : ccpc -mcpu=e6500 -mno-altivec -mabi=no-altivec -D_WRS_HARDWARE_FP -mabi=elfv2 -mcmodel=med -mhard-float -S test.c linux asm : the constant string fetched like addis 3,2,.LC0@toc@ha addi 3,3,.LC0@toc@l