Closed nvinson closed 1 year ago
Hi, just to confirm that with this PR i'm able to compile efivar with LLVM/clang-15.0.3. One thing i did not verified is does efivar without that PR is the culprit of segfault of sytemd-boot on my aarch64. Will drop a line here after upate to systemd-252 with efivar+PR234
description
When building with clang-15, the generated libefivar.so library is broken. The broken library causes applications to link to it to segfault on start.
steps to reproduce
CFLAGS="-march=native -O2 -pipe -ggdb" CXXFLAGS="-march=native -O2 -pipe -ggdb" CC=clang LD=ld.lld LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind" make
clang -Wl,-rpath,$PWD/src -Lsrc/ test.c -o test -lefivar
Expected results
the test binary returns the libefivar version number.
Actual results
the test binary segfaults.
Additional notes
test.c:
clang -v
ld.lld -v