freebsd-dev/lib/clang
Jessica Clarke 48397f6c7d libllvmminimal: Add missing Support/ABIBreak.cpp
When building natively on RISC-V, linking the bootstrap clang-tblgen
fails with:

  ld: error: undefined symbol: llvm::EnableABIBreakingChecks
  >>> referenced by PrettyStackTrace.cpp
  >>>               PrettyStackTrace.o:(.sdata+0x0) in archive
  /usr/obj/usr/src/freebsd-src/riscv.riscv64/tmp/obj-tools/lib/clang/libllvmminimal/libllvmminimal.a
  >>> referenced by Signals.cpp
  >>>               Signals.o:(.sdata+0x8) in archive
  /usr/obj/usr/src/freebsd-src/riscv.riscv64/tmp/obj-tools/lib/clang/libllvmminimal/libllvmminimal.a
  >>> referenced by Timer.cpp
  >>>               Timer.o:(.sdata+0x28) in archive
  /usr/obj/usr/src/freebsd-src/riscv.riscv64/tmp/obj-tools/lib/clang/libllvmminimal/libllvmminimal.a

This is likely due to Error.h's inclusion of abi-breaking.h. It's
unclear why this only affects RISC-V, but perhaps relates to its more
eager use of .sdata due to the ABI's support for linker relaxations.
Regardless, this is theoretically an issue for all architectures.

Reported by:	Dennis Clarke <dclarke@blastwave.org>
Reviewed by:	dim
Tested by:	mhorne
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D28367
2021-01-27 19:19:00 +00:00
..
headers Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2021-01-03 13:54:24 +01:00
include fix incorrect LLD_VERSION_STRING from previous commit 2021-01-21 19:49:30 -05:00
libclang Put clang/lib/Tooling/Core/Replacement.cpp under SRCS_MIN, since it is 2020-08-06 20:55:18 +00:00
liblldb Update Makefiles under lib/clang and usr.bin/clang for 11.0.0 builds, 2020-08-06 19:30:00 +00:00
libllvm Add a few more files to libllvm, which are required when doing sanitized 2020-09-03 18:27:13 +00:00
libllvmminimal libllvmminimal: Add missing Support/ABIBreak.cpp 2021-01-27 19:19:00 +00:00
clang.build.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
clang.pre.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
freebsd_cc_version.h Bump CURRENT to 14.0 2021-01-21 19:10:07 -05:00
lldb.pre.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
llvm.build.mk Bump CURRENT to 14.0 2021-01-21 19:10:07 -05:00
llvm.pre.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
Makefile
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00