[x86] Change EH pointer encodings to PC relative on Windows

2021-07-01 Thread Eric Botcazou
Hi, a big difference between ELF and PE-COFF is that, with the latter, you can build position-independent executables or DLLs without generating PIC; as a matter of fact, flag_pic has historically been forced to 0 for 32-bit: /* Don't allow flag_pic to propagate since gas may produce invalid co

Re: [x86] Change EH pointer encodings to PC relative on Windows

2021-07-02 Thread Richard Biener via Gcc-patches
On Thu, Jul 1, 2021 at 6:44 PM Eric Botcazou wrote: > > Hi, > > a big difference between ELF and PE-COFF is that, with the latter, you can > build position-independent executables or DLLs without generating PIC; as a > matter of fact, flag_pic has historically been forced to 0 for 32-bit: > > /* D