
Debug info refering to a TLS variable via DW_OP_GNU_push_tls_address needs to use a R_390_TLS_LDO64 relocation instead of R_390_64. Fixed by adding a SystemZELFTargetObjectFile override class and proving a getDebugThreadLocalSymbol implementation.
28 lines
905 B
C++
28 lines
905 B
C++
//===-- SystemZTargetObjectFile.h - SystemZ Object Info ---------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETOBJECTFILE_H
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETOBJECTFILE_H
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
namespace llvm {
|
|
|
|
/// This implementation is used for SystemZ ELF targets.
|
|
class SystemZELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
public:
|
|
SystemZELFTargetObjectFile() {}
|
|
|
|
/// Describe a TLS variable address within debug info.
|
|
const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|