Re: Potential bug in GCC when compiling C to a flat binary

2020-12-27 Thread Rhys Rustad-Elliott
On Sun, Dec 27, 2020 at 12:23:48PM +0300, Alexander Monakov wrote: > On Sat, 26 Dec 2020, Andrew Pinski via Gcc wrote: > > > Two things, this should really be on the binutils mailing list rather > > than the GCC mailing list. Second you can't generate a flat binary > > which has a GOT as it requi

Re: Potential bug in GCC when compiling C to a flat binary

2020-12-27 Thread Alexander Monakov via Gcc
On Sat, 26 Dec 2020, Andrew Pinski via Gcc wrote: > Two things, this should really be on the binutils mailing list rather > than the GCC mailing list. Second you can't generate a flat binary > which has a GOT as it requires relocations and there is no way to > represent relocations in flat binary

Re: Potential bug in GCC when compiling C to a flat binary

2020-12-26 Thread Andrew Pinski via Gcc
On Sat, Dec 26, 2020 at 5:41 PM Rhys Rustad-Elliott wrote: > > Hi all, > > I've encountered a strange issue when compiling C to a flat binary with GCC. > It's questionably a bug, but I hesitate to strongly say that due to my lack of > familiarity with the GCC codebase and the rather obscure nature