Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913129 - sys-boot/syslinux-6.04_pre1-r5: fails to build with >=sys-devel/binutils-2.41[hardened] (read-only segment has dynamic relocations)
Summary: sys-boot/syslinux-6.04_pre1-r5: fails to build with >=sys-devel/binutils-2.41...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: binutils-2.41
  Show dependency tree
 
Reported: 2023-08-28 06:16 UTC by Miroslav Šulc
Modified: 2023-10-18 10:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2023-08-28 06:16:47 UTC
nasm -f elf -Ox  -g -F dwarf -DDATE_STR="'20160302'" \
	-DHEXDATE="0x01339f2e" \
	-Di386 \
	-I/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/core/ \
	-l ldlinux.lsr -o ldlinux.o -MP -MD ./.ldlinux.o.d /var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/core/ldlinux.asm
x86_64-pc-linux-gnu-ld -m elf_i386  -pie -Bsymbolic \
	-T /var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/core/i386/syslinux.ld \
	--unresolved-symbols=report-all \
	-E --hash-style=gnu -M -o ldlinux.elf ldlinux.o \
	--start-group libcom32.a --whole-archive /var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/bios/com32/lib/libcom32core.a libldlinux.a --end-group \
	> ldlinux.map
x86_64-pc-linux-gnu-ld: ldlinux.o: warning: relocation in read-only section `.text'
x86_64-pc-linux-gnu-ld: warning: ldlinux.elf has a LOAD segment with RWX permissions
x86_64-pc-linux-gnu-ld: warning: ldlinux.elf has a LOAD segment with RWX permissions
x86_64-pc-linux-gnu-ld: read-only segment has dynamic relocations
make[3]: *** [/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/core/Makefile:159: ldlinux.elf] Error 1
rm ldlinux.o
make[3]: Leaving directory '/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/bios/core'
make[2]: *** [/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/Makefile:288: core] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/bios'
make[1]: *** [/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1/Makefile:257: bios] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-boot/syslinux-6.04_pre1-r5/work/syslinux-6.04-pre1'
make: *** [Makefile:102: bios] Error 2


# emerge --info '=sys-boot/syslinux-6.04_pre1-r5::gentoo'
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/hardened, gcc-13, glibc-2.38-r1, 6.4.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-10875H_CPU_@_2.30GHz-with-glibc2.38
KiB Mem:    32645908 total,  18999484 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 28 Aug 2023 06:00:01 +0000
Head commit of repository gentoo: a27e3622679fcf1a577693b27fe394f0c8bd3ef5
Timestamp of repository brave-overlay: Wed, 23 Aug 2023 19:01:31 +0000
Head commit of repository brave-overlay: 993f218243bed0036bfb1db028a35fc1d036b651

Timestamp of repository flavour: Sat, 19 Aug 2023 18:32:06 +0000
Head commit of repository flavour: 0f3957d4ace0476602da7d0b76cb5c6bea3b141c

Timestamp of repository fordfrog: Wed, 23 Aug 2023 07:46:39 +0000
Head commit of repository fordfrog: 05af6a8835718e8035ef782b0e23dfde3066689e

Head commit of repository librewolf: 9fd9f4571ae3b188dc1e994d587467ce43ed1f13

Timestamp of repository pf4public: Sun, 27 Aug 2023 22:02:23 +0000
Head commit of repository pf4public: c5c350f46e01f5b0285a6df9107efcc55e640f68

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
ccache version 4.8.2 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo, 3.12.0_rc1_p6::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.27.4::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.0_pre20230722::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.0_pre20230722::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.0_pre20230722::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
    masters: gentoo
    volatile: False

flavour
    location: /var/db/repos/flavour
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/flavour.git
    masters: gentoo
    volatile: False

fordfrog
    location: /var/db/repos/fordfrog
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/fordfrog.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA android NVIDIA-SDK PUEL-11"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/db/repos/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j17"
PKGDIR="/var/db/repos/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacplus acl alsa amd64 aubio bluetooth bzip2 cdda cddb cdr cet cli color-management colord crypt cuda cups dbus dia dri dssi dvb dvd elogind exif ffmpeg flac fortran gdbm gegl gif gphoto2 gsm gtk gtk3 hardened hddtemp http2 iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg keyring kwallet ladspa lastfm latex lcms libass libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lto lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl nvme ocr ogg openexr opengl openmp optix opus osc pam pcre pdf pie pipewire png policykit pulseaudio qt5 qt6 raw readline rubberband samba scanner screencast seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib test-rust theora tiff timidity tk tray truetype udev unicode usb vaapi vamp vdpau verify-sig visio vorbis vpx vst vulkan wavpack webp widevine wmf x264 x265 xattr xfce xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2021" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="luajit lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_9 python3_10 python3_11" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="genesys" VIDEO_CARDS="intel i915 i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-boot/syslinux-6.04_pre1-r5::gentoo was built with the following:
USE="bios efi userland_GNU" ABI_X86="32 (64)"
CFLAGS=""
LDFLAGS=""


# emerge -pqv '=sys-boot/syslinux-6.04_pre1-r5::gentoo'
[ebuild   R   ] sys-boot/syslinux-6.04_pre1-r5  USE="bios efi -secureboot%" ABI_X86="32 (64)"
Comment 1 Larry the Git Cow gentoo-dev 2023-08-28 19:10:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad4c7d1977e6bf97a8d17c445ff6a7a4f9e806c

commit aad4c7d1977e6bf97a8d17c445ff6a7a4f9e806c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-08-28 18:18:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-28 19:09:51 +0000

    sys-boot/syslinux: fix build w/ binutils-2.41[hardened]
    
    Closes: https://bugs.gentoo.org/913129
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/syslinux-6.04-binutils-2.41.patch        | 74 ++++++++++++++++++++++
 sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild     |  1 +
 sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild     |  1 +
 3 files changed, 76 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-10-18 10:13:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0f0e1c28a7c48434188ca0f60ab21eafa8ba167

commit e0f0e1c28a7c48434188ca0f60ab21eafa8ba167
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-18 10:12:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-18 10:12:08 +0000

    sys-boot/syslinux: tweak binutils patch to support <2.39
    
    This makes the upgrade path a bit easier and the option just suppresses
    a warning, not an error.
    
    Bug: https://bugs.gentoo.org/913129
    Closes: https://bugs.gentoo.org/915663
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-boot/syslinux/files/syslinux-6.04-binutils-2.41.patch | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)