FS#42540 - [binutils] Feature request: --enable-targets=x86_64-pep

Attached to Project: Arch Linux
Opened by Zir Blazer (zir_blazer) - Saturday, 25 October 2014, 01:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 27 December 2014, 06:48 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

In order for Xen to act as an Hypervisor, it must be loaded before the Linux Kernel. On a regular install using BIOS Boot, this is easy because the Xen packages provided in the AUR already take care of building and copying the Xen GZ image to /boot, so you just have to edit the Boot Loader config file to make use of it. However, if you want to do UEFI Boot with Xen, you need to use an EFI executable instead of the GZ image. Xen can already build the EFI executable, but as a prerequisite, binutils must include --enable-targets=x86_64-pep. As the default binutils does not include it, currently in order to get a Xen EFI executable, you have to install ABS (Arch Build System), download the core/binutils PKGBUILD, edit it to include --enable-targets=x86_64-pep, build it, and install it with pacman -U. Having this included in the default binutils would simplify this, and possibily could allow for improvements of the Xen AUR packages for UEFI-related stuff if they can rely on binutils being ready.
So far, the only thing which I know that uses --enable-targets=x86_64-pep is just Xen, and only for that purpose. Googled around a lot and x86_64-pep doesn't seem to have any other use at all. I also don't know if it could conflict with anything else or is safe to add, but should the second case be confirmed, I see absolutely no reason why this can't be added to the default binutils config.


This request has already been made last year, but was close cause it was for another version of the binutils package: https://bugs.archlinux.org/task/36713
Build guide for Xen EFI executable for Arch Linux: https://bbs.archlinux.org/viewtopic.php?id=174226
Xen Documentation for UEFI Boot stating the requeriment: http://xenbits.xen.org/docs/4.2-testing/misc/efi.html
Debian already decided to include this option in their binutils package: http://metadata.ftp-master.debian.org/changelogs//main/b/binutils/binutils_2.22-8_changelog

This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 27 December 2014, 06:48 GMT
Reason for closing:  Won't implement
Comment by Zir Blazer (zir_blazer) - Friday, 07 November 2014, 09:29 GMT
Any news regarding if this can be implemented or not? On the previous request that someone else made last year about this, the request was pretty much ignored for half a year with no response. I don't want mine to be forgotten into oblivion like the previous one. A straight no answer would still be useful because I can assume that I would need to always provide instructions for a custom binutils build if going for UEFI Boot with Xen.
Comment by Allan McRae (Allan) - Friday, 07 November 2014, 09:46 GMT
I am undecided. I said no last time, and will likely say no again. I need to figure out if there is a reason upstream do not enable it by default.

Loading...