Skip to content

Conversation

@cpackham-atlnz
Copy link
Contributor

This is a series that brings in upstream fixes for various issues highlighted by newer versions of GCC. These are mostly cherry-picks of upstream changes. I've noted where the patches are sourced from and when they differ due to back porting.

These should all be fine with the existing toolchain (I've been testing with kvm_x86_64) but unlock the ability to update to a newer GCC.

With newer versions of binutils we can end up with completely empty
object files. This upsets objtool which expects to find a valid symbol
table resulting in the following error

  arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table

Bring in an upstream change that allows these and continues.

Signed-off-by: Chris Packham <[email protected]>
GCC 15 will switch to C23 by default which causes some old style
function definitions to generate errors because they are interpreted
differently. Add the missing return type and arguments to cmd_usage() in
sys_eeprom.c to comply with C23.

Signed-off-by: Chris Packham <[email protected]>
These patches have been unused since commit f1d5ec1 ("kexec-tools -
upgrade from 2.0.9 to 2.0.22"). Drop them from the repository.

Signed-off-by: Chris Packham <[email protected]>
Bring in an upstream patch that fixes a build issue when using binutils
2.41 or newer.

Signed-off-by: Chris Packham <[email protected]>
Newer versions of GCC produce new sections that need to be stripped from
the grub decompressor. There are also some new errors issues by GCC 15
for some existing code. Bring in some upstream patches that resolve
these issues.

uild-Fix-Werror-array-bounds-array-subscript-0-is-o.patch had some
merge conflicts when applying to 2.04 which were resolved.
use-stdbool.patch is a simplified version of the upstream patch.

Signed-off-by: Chris Packham <[email protected]>
Add a patch to fix a build issue with newer versions of GCC. This is
based on upstream commit 16343bd ("bug#74444: [PATCH] parted: fix
do_version declaration") but is not identical because there are other
changes that stop the upstream patch from applying cleanly to
parted-3.1.

Signed-off-by: Chris Packham <[email protected]>
Add an upstream patch to resolve build issues with GCC 15.

Signed-off-by: Chris Packham <[email protected]>
Add a patch to fix a build error with GCC 15. This is based on changes
in upstream commit 7dd42c5 ("Unify version string printing").

Signed-off-by: Chris Packham <[email protected]>
Ensure we are pointing to the dev-sysroot otherwise we end up picking up
libraries that are present on the build machine.

Signed-off-by: Chris Packham <[email protected]>
Bring in two upstream patches that resolve address-of-packed-member
errors. Ensure we pass the correct CFLAGS when building efivars.

Signed-off-by: Chris Packham <[email protected]>
Drop the patches for mokutil that are not used.

Signed-off-by: Chris Packham <[email protected]>
Bring in two patches from upstream to resolve build issues with newer
compilers.

Signed-off-by: Chris Packham <[email protected]>
Bring in 3 patches that resolve build issues with newer versions of GCC.

Signed-off-by: Chris Packham <[email protected]>
Add a patch to resolve a build issue with GCC 15. The build error
actually looks like a false positive or maybe a miss-optimization
however it does highlight some dead code.

Signed-off-by: Chris Packham <[email protected]>
Bring in an upstream patch that allows GRUB's build process to detect
the correct python interpreter. Remove the forced setting of PYTHON and
let the auto detection decide which interpreter to use.

Signed-off-by: Chris Packham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant