Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563364 - sys-boot/syslinux-6.03 built with ld.gold fails
Summary: sys-boot/syslinux-6.03 built with ld.gold fails
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2015-10-18 00:19 UTC by quilosaq
Modified: 2019-02-17 21:52 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
syslinux-6.03-ebuild.patch (syslinux-6.03-ebuild.patch,291 bytes, patch)
2015-11-29 02:10 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description quilosaq 2015-10-18 00:19:39 UTC
When syslinux 6.03 is constructed using the linker ld.gold no error is obtained in this process. Installing syslinux on a disk does not show any error, but booting with the disk fails.

When syslinux 6.03 is constructed with linker ld.bfd everything works fine.
Comment 1 Matt Whitlock 2015-11-29 02:10:34 UTC
Created attachment 418096 [details, diff]
syslinux-6.03-ebuild.patch

Confirmed. Extlinux 6.03, built using the Gold linker from sys-devel/binutils-2.25.1-r1 on ~amd64, hangs on boot immediately after the "EXTLINUX" version line. No error message is displayed. After rebuilding sys-boot/syslinux-6.03 using the BFD linker and reinstalling Extlinux on the boot file system, boot proceeds correctly.

This bug should have CRITICAL priority because it could cause a remotely administrated server to fail to boot after an upgrade. (I'm lucky that I have physical access to the machine that I broke by upgrading to this version of Extlinux.)

At the very least, the ebuild should be made to error out if the default linker is Gold. A better solution would be for the ebuild to call tc-ld-disable-gold. The attached ebuild patch makes this change and solves the problem.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-24 20:12:36 UTC
syslinux-6.03 and 6.04_pre1 now include a ld.gold check (can be overridden with I_KNOW_WHAT_I_AM_DOING=1).
Leaving this bug open until the underlying issue is fixed.

Please also report this upstream.