[lld] [X86][LLD] Handle R_X86_64_CODE_6_GOTTPOFF relocation type (PR #117675)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 19:57:51 PST 2024


================
@@ -44,4 +44,132 @@ Symbols:
     Value:    0x12345
     Size:     4
     Binding:  STB_GLOBAL
- 
+
+
+# RUN: yaml2obj --docnum=2 %s -o %t2.o
----------------
MaskRay wrote:

Thanks for adding negative tests but YAML is not very readable. You can use assembly tests with `.reloc ., R_...`. See x86-64-reloc-32.s

https://github.com/llvm/llvm-project/pull/117675


More information about the llvm-commits mailing list