On Fri, Apr 23, 2021 at 01:04:10PM +0200, Jan Beulich wrote: > ... provided the linker supports it (which it does as of commit > 2dfa8341e079 ["ELF DWARF in PE output"]). > > Without mentioning debugging sections, the linker would put them at > VA 0, thus making them unreachable by 32-bit (relative or absolute) > relocations. If relocations were resolvable (or absent) the resulting > binary would have invalid section RVAs (0 - __image_base__, truncated to > 32 bits). Mentioning debugging sections without specifying an address > will result in the linker putting them all on the same RVA. A loader is, > afaict, free to reject loading such an image, as sections shouldn't > overlap. (The above describes GNU ld 2.36 behavior, which - if deemed > buggy - could change.) > > Make sure our up-to-16Mb padding doesn't unnecessarily further extend > the image. > > Take the opportunity and also switch to using $(call ld-option,...). > > Requested-by: Andrew Cooper <andrew.coop...@citrix.com> > Signed-off-by: Jan Beulich <jbeul...@suse.com>
Acked-by: Roger Pau Monné <roger....@citrix.com> Thanks, Roger.