[PATCH 0/6] PE/COFF linking adjustments

Jan Beulich jbeulich@suse.com
Tue Mar 2 09:46:12 GMT 2021

As reported in [1] and [2] the 2.36 release has caused issues with
(at least) Xen Project's linking of EFI binaries from ELF object
files. This series, while consisting of largely independent changes,
tries to address aspects of these issues as well as further ones
(see e.g. [3]) found in the course of making things work (again and,
for some aspects, actually in the first place).

In particular the last two patches adding diagnostics will want to
be considered partly RFC, as I haven't checked them yet for fallout
on a sufficiently large set of targets. But before doing so I first
wanted to see whether the changes are deemed generally acceptable
at all.

Of course I'll happily take suggestions for all of these changes as
to addressing the issues at had in a better way.

1: ld: don't generate base relocations in PE output for absolute symbols
2: bfd: prune COFF/PE section flags setting
3: bfd: refine handling of relocations between debugging sections
4: ld: adjust ld-scripts/map-address.*
5: bfd: don't silently wrap or truncate PE image section RVAs
6: bfd: strip symbols not representable in COFF/PE symbol table


[1] https://sourceware.org/pipermail/binutils/2021-February/115220.html
[2] https://sourceware.org/pipermail/binutils/2021-February/115430.html
[3] https://sourceware.org/pipermail/binutils/2021-February/115433.html

More information about the Binutils mailing list