# This tests verifies that TLS variables have correct offsets # when variables the TLS variables are not defined in the program RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/externtls.x86-64 -static \ RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=CHECKGOT # Currently x86_64 relocation pass handles the R_X86_64_GOTTPOFF by # creatng R_X86_64_TPOFF64 dynamic ones. For output yaml, this is # not changed. - name: __got_tls_extern_tls CHECKGOT: alignment: 4 CHECKGOT: section-name: .text CHECKGOT: references: CHECKGOT: - kind: R_X86_64_GOTTPOFF CHECKGOT: offset: 7 CHECKGOT: target: extern_tls CHECKGOT: addend: -4