[lld] [lld][ELF] Allow explicit address expressions on .tbss output sections (PR #196447)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 09:50:19 PDT 2026
================
@@ -0,0 +1,30 @@
+# REQUIRES: x86
+## Test that an explicit address expression on a .tbss section is respected.
+
+# RUN: rm -rf %t && split-file %s %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t/a.s -o %t/a.o
+
+# RUN: ld.lld -T %t/explicit.t %t/a.o -o %t/explicit
+# RUN: llvm-readelf -S %t/explicit | FileCheck %s --check-prefix=EXPLICIT
+
----------------
smithp35 wrote:
Can we also check the PT_TLS program header `llvm-readelf --segments`
https://github.com/llvm/llvm-project/pull/196447
More information about the llvm-commits
mailing list