Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Andrew Cooper
On 12/05/2020 17:17, Jason Andryuk wrote: > On Tue, May 12, 2020 at 11:58 AM Andrew Cooper > wrote: >> On 12/05/2020 16:32, Jan Beulich wrote: >>> On 12.05.2020 05:39, Jason Andryuk wrote: reloc.S and cmdline.S as arrays of executable bytes for inclusion in head.S generated from compile

Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Jason Andryuk
On Tue, May 12, 2020 at 11:58 AM Andrew Cooper wrote: > > On 12/05/2020 16:32, Jan Beulich wrote: > > [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments > > unless you have verified the sender and know the content is safe. > > > > On 12.05.2020 05:39, Jason Andryuk wrote: >

Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Andrew Cooper
On 12/05/2020 17:11, Jan Beulich wrote: > [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments > unless you have verified the sender and know the content is safe. > > On 12.05.2020 17:58, Andrew Cooper wrote: >> On 12/05/2020 16:32, Jan Beulich wrote: >>> On 12.05.2020 05:39,

Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Jan Beulich
On 12.05.2020 17:58, Andrew Cooper wrote: > On 12/05/2020 16:32, Jan Beulich wrote: >> On 12.05.2020 05:39, Jason Andryuk wrote: >>> Discard the .note.gnu.property section when linking to avoid the extra >>> bytes. >> If we go this route (and if, as per above, I'm misremembering, >> meaning we didn

Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Andrew Cooper
On 12/05/2020 16:32, Jan Beulich wrote: > [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments > unless you have verified the sender and know the content is safe. > > On 12.05.2020 05:39, Jason Andryuk wrote: >> reloc.S and cmdline.S as arrays of executable bytes for inclusion

Re: [PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-12 Thread Jan Beulich
On 12.05.2020 05:39, Jason Andryuk wrote: > reloc.S and cmdline.S as arrays of executable bytes for inclusion in > head.S generated from compiled object files. Object files generated by > an -fcf-protection toolchain include a .note.gnu.property section. The > way reloc.S and cmdline.S are genera

[PATCH 2/2] x86/boot: Drop .note.gnu.properties in build32.lds

2020-05-11 Thread Jason Andryuk
reloc.S and cmdline.S as arrays of executable bytes for inclusion in head.S generated from compiled object files. Object files generated by an -fcf-protection toolchain include a .note.gnu.property section. The way reloc.S and cmdline.S are generated, the bytes of .note.gnu.property become the st