Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied.

2018-02-20 Thread Peter Jones
On Tue, Feb 20, 2018 at 03:48:44PM +0100, Daniel Kiper wrote: > On Wed, Jan 31, 2018 at 11:26:59AM -0500, Peter Jones wrote: > > +static int > > +SUFFIX (is_kept_section) (Elf_Shdr *s, const struct > > grub_install_image_target_desc *image_target); > > +static int > > +SUFFIX (is_kept_reloc_sectio

Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied.

2018-02-20 Thread Daniel Kiper
On Wed, Jan 31, 2018 at 11:26:59AM -0500, Peter Jones wrote: > Some versions of gcc include a plugin called "annobin", and in some > build systems this is enabled by default. This plugin creates special > ELF note sections to track which ABI-breaking features are used by a > binary, as well as a s

Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied.

2018-02-15 Thread Vladimir 'phcoder' Serbinenko
Patch looks good. I'm sick right now. I'll commit in few days when I feel better unless someone commits it before Le mer. 31 janv. 2018 à 17:28, Peter Jones a écrit : > Some versions of gcc include a plugin called "annobin", and in some > build systems this is enabled by default. This plugin cr

Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied.

2018-02-15 Thread Peter Jones
Anyone want to have a look at this patchset to make gcc > 7.2.1 (with optional plugins enabled) work? On Wed, Jan 31, 2018 at 11:26:59AM -0500, Peter Jones wrote: > Some versions of gcc include a plugin called "annobin", and in some > build systems this is enabled by default. This plugin creates

[PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied.

2018-01-31 Thread Peter Jones
Some versions of gcc include a plugin called "annobin", and in some build systems this is enabled by default. This plugin creates special ELF note sections to track which ABI-breaking features are used by a binary, as well as a series of relocations to annotate where. If grub is compiled with thi