# This tests verifies that TLS variables have correct offsets # when variables the TLS variables are not defined in the program RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/externtls.x86-64 -static \ RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=CHECKGOT - name: __got_tls_extern_tls CHECKGOT: type: got CHECKGOT: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] CHECKGOT: alignment: 2^3 CHECKGOT: section-choice: custom-required CHECKGOT: section-name: .got CHECKGOT: permissions: rw- CHECKGOT: references: CHECKGOT: - kind: R_X86_64_TPOFF64 CHECKGOT: offset: 0 CHECKGOT: target: extern_tls