[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28264] New: ld.bfd crashes on linking efivar with LTO
From: |
kloczko.tomasz at gmail dot com |
Subject: |
[Bug ld/28264] New: ld.bfd crashes on linking efivar with LTO |
Date: |
Wed, 25 Aug 2021 11:07:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28264
Bug ID: 28264
Summary: ld.bfd crashes on linking efivar with LTO
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: kloczko.tomasz at gmail dot com
Target Milestone: ---
binutils-2.37-9.fc36.x86_64 from rawhide
efivar from master https://github.com/rhboot/efivar/
When LTO is used gcc crashes
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/efivar-37/src'
/usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os
-std=gnu11 -funsigned-char -fvisibility=hidden
-specs=/home/tkloczko/rpmbuild/BUILD/efivar-37/src/include/gcc.specs
-fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections
-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto
-flto-partition=none -fuse-linker-plugin -Wl,--add-needed -Wl,--build-id
-Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now
-Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=37
-D_GNU_SOURCE -I/home/tkloczko/rpmbuild/BUILD/efivar-37/src/include/ -shared
-Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \
-o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o
efivarfs.o error.o export.o guid.o guids.o guid-symbols.o lib.o vars.o -ldl
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.
make[1]: *** [/home/tkloczko/rpmbuild/BUILD/efivar-37/src/include/rules.mk:32:
libefivar.so] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/efivar-37/src'
make: *** [Makefile:14: all] Error 2
[tkloczko@barrel SPECS]$ coredumpctl gdb 2906717
PID: 2906717 (ld)
UID: 1000 (tkloczko)
GID: 1000 (tkloczko)
Signal: 11 (SEGV)
Timestamp: Wed 2021-08-25 11:57:46 BST (9min ago)
Command Line: /usr/bin/ld -plugin
/usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccoyzJjy.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id
--no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -shared
--fatal-warnings --no-undefined-version --no-allow-shlib-undefined --add-needed
-z now --build-id -z relro -o libefivar.so
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o -L.
-L/usr/lib/gcc/x86_64-redhat-linux/11
-L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -z relro
--as-needed --gc-sections -z now --add-needed --build-id
--no-allow-shlib-undefined --no-undefined-version -z now -z muldefs -z relro
--fatal-warnings -soname libefivar.so.1 --version-script=libefivar.map crc32.o
dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o
guid.o guids.o guid-symbols.o lib.o vars.o -ldl -lgcc --push-state --as-needed
-lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state
/usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o
Executable: /usr/bin/ld.bfd
Control Group: /user.slice/user-1000.slice/session-2408.scope
Unit: session-2408.scope
Slice: user-1000.slice
Session: 2408
Owner UID: 1000 (tkloczko)
Boot ID: dacb7fefc2824304bb9d4576770821a4
Machine ID: d033f66b249a4ec09acfa81ac205554f
Hostname: barrel
Storage:
/var/lib/systemd/coredump/core.ld.1000.dacb7fefc2824304bb9d4576770821a4.2906717.1629889066000000.zst
Message: Process 2906717 (ld) of user 1000 dumped core.
Stack trace of thread 2906717:
#0 0x00007fc7a04cdd42 __strcmp_avx2_rtm (libc.so.6 + 0x18bd42)
#1 0x00007fc7a05ea706 _bfd_generic_link_add_one_symbol
(libbfd-2.37-9.fc36.so + 0x52706)
#2 0x00007fc7a0626f55 bfd_elf_link_add_symbols
(libbfd-2.37-9.fc36.so + 0x8ef55)
#3 0x000000000041aacc load_symbols.part.0 (ld.bfd + 0x1aacc)
#4 0x00000000004129b9 open_input_bfds.lto_priv.0 (ld.bfd +
0x129b9)
#5 0x0000000000419f54 lang_process (ld.bfd + 0x19f54)
#6 0x0000000000408289 main (ld.bfd + 0x8289)
#7 0x00007fc7a036f560 __libc_start_call_main (libc.so.6 +
0x2d560)
#8 0x00007fc7a036f60c __libc_start_main@@GLIBC_2.34 (libc.so.6
+ 0x2d60c)
#9 0x0000000000409985 _start (ld.bfd + 0x9985)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/28264] New: ld.bfd crashes on linking efivar with LTO,
kloczko.tomasz at gmail dot com <=
- [Bug ld/28264] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, amodra at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, amodra at gmail dot com, 2021/08/25
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, hjl.tools at gmail dot com, 2021/08/26
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, cvs-commit at gcc dot gnu.org, 2021/08/27
- [Bug ld/28264] [2.37 Regression] ld.bfd crashes on linking efivar with LTO, cvs-commit at gcc dot gnu.org, 2021/08/27