On Tue, May 12, 2020 at 3:11 PM Andrew Cooper <andrew.coop...@citrix.com> wrote:
>
> Linkers may put orphaned sections ahead of .text, which breaks the calling
> requirements.  A concrete example is Ubuntu's GCC-9 default of enabling
> -fcf-protection which causes us to try and execute .note.gnu.properties during
> Xen's boot.
>
> Put .got.plt in its own section as it specifically needs preserving from the
> linkers point of view, and discard everything else.  This will hopefully be
> more robust to other unexpected toolchain properties.
>
> Fixes boot from an Ubuntu build of Xen.
>
> Reported-by: Jason Andryuk <jandr...@gmail.com>
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Tested-by: Jason Andryuk <jandr...@gmail.com>

Thanks

Reply via email to