Re: Loading plugins with arm-none-eabi-gcc

2020-07-23 Thread Shuai Wang via Gcc
Sorry I am a newbie to cross compilation, but overall, as far as I can see, the following two options both won't work: 1. If I compile instrument_cov.so with gcc as a x86-64bit ELF executable, then it throws the above error (mentioned in my first email) when being loaded by arm-none-eabi

Re: Loading plugins with arm-none-eabi-gcc

2020-07-22 Thread Shuai Wang via Gcc
Dear Andrew, Thanks a lot. Let me make sure I understand the entire picture here. So basically on my Ubuntu 18.04 x86 machine, I use: 1. gcc (version 10.0; x86) to compile arm-none-eabi-gcc. 2. And also use gcc (version 10.0; x86) to compile the plugin; I tested a number of x86 applications and

Re: Loading plugins with arm-none-eabi-gcc

2020-07-22 Thread Andrew Pinski via Gcc
On Wed, Jul 22, 2020 at 12:45 AM Shuai Wang wrote: > > Hey Andrew, > > Thanks a lot for getting back to me. No I am not. Let me clarify the context > here: > > 1. On my Ubuntu (x86-64 version), I use x86 gcc (version 10.0) to compile > this plugin, and test this plugin on various programs' GIMPL

Re: Loading plugins with arm-none-eabi-gcc

2020-07-22 Thread Shuai Wang via Gcc
Hey Andrew, Thanks a lot for getting back to me. No I am not. Let me clarify the context here: 1. On my Ubuntu (x86-64 version), I use x86 gcc (version 10.0) to compile this plugin, and test this plugin on various programs' GIMPLE code during its compilation with x86 gcc (version 10.0). 2. Then,

Re: Loading plugins with arm-none-eabi-gcc

2020-07-22 Thread Andrew Pinski via Gcc
On Tue, Jul 21, 2020 at 11:25 PM Shuai Wang via Gcc wrote: > > Hello, > > I am currently trying to migrate a gcc plugin that has been well developed > for x86 code to ARM platform (for arm-none-eabi-gcc). > > Currently I did the following steps: > > 1. write a hello world program t.c > > 2. compil