https://sourceware.org/bugzilla/show_bug.cgi?id=29797
Bug ID: 29797
Summary: error while loading shared libraries: unexpected PLT
reloc type 0x00
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: euloanty at live dot com
Target Milestone: ---
#include<cstdio>
[[__gnu__::__target__("avx2")]]
inline void foo()
{
puts("avx2\n");
}
[[__gnu__::__target__("default")]]
inline void foo()
{
puts("default\n");
}
int main()
{
foo();
}
$ g++ -o a a.cc -Ofast -std=c++23 -s -flto
$ ./a
./a: error while loading shared libraries: unexpected PLT reloc type 0x00
$ g++ -o a a.cc -Ofast -std=c++23 -s -flto -fuse-ld=gold
$ ./a
avx2
--
You are receiving this mail because:
You are on the CC list for the bug.