Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-13 Thread Gao, Liming
Ard: If we have no other solution to disable this error, we have to roll back the change in GCC49 tool chain. Thanks Liming > -Original Message- > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > Sent: Wednesday, June 13, 2018 6:19 PM > To: Gao, Liming > Cc: edk2-devel@lists.

Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-13 Thread Ard Biesheuvel
On 13 June 2018 at 12:16, Gao, Liming wrote: > Ard: > This patch causes GCC49 IA32 build failure with GCC compiler 4.9.2 in link > phase. " gcc: error: unrecognized command line option -no-pie" > Do you know any option to disable this error? > Sorry about that. I guess the assumption that t

Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-13 Thread Gao, Liming
Ard: This patch causes GCC49 IA32 build failure with GCC compiler 4.9.2 in link phase. " gcc: error: unrecognized command line option -no-pie" Do you know any option to disable this error? Thanks Liming >-Original Message- >From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] >Sent

Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-11 Thread Ard Biesheuvel
On 12 June 2018 at 03:40, Gao, Liming wrote: > Reviewed-by: Liming Gao > Thanks Pushed as c25d3905523a >> -Original Message- >> From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] >> Sent: Tuesday, June 12, 2018 12:29 AM >> To: edk2-devel@lists.01.org >> Cc: ler...@redhat.com; Gao,

Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-11 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > Sent: Tuesday, June 12, 2018 12:29 AM > To: edk2-devel@lists.01.org > Cc: ler...@redhat.com; Gao, Liming ; Zhu, Yonghong > ; Ard Biesheuvel > > Subject: [PATCH v2] BaseTools/tools_de

Re: [edk2] [PATCH v2] BaseTools/tools_def IA32: disable PIE code generation explicitly

2018-06-11 Thread Laszlo Ersek
On 06/11/18 18:29, Ard Biesheuvel wrote: > As a security measure, some distros now build their GCC toolchains with > PIE code generation enabled by default, because it is a prerequisite > for ASLR to be enabled when running the executable. > > This typically results in slightly larger code, but it