<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54713>54713</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            ELF TLS only supported in small memory model or in local exec TLS model
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Polaris-Jhb
      </td>
    </tr>
</table>

<pre>
    When I was compiling **llvm-test-suite(release/12.x)** with `-DCMAKE_C_FLAGS="-mtls-size=48 -mcmodel=large" -DCMAKE_CXX_FLAGS="-mtls-size=48 -mcmodel=large"`, I ran into a error.

![image](https://user-images.githubusercontent.com/33863061/161357791-82bc3c97-2c28-4cd9-a8f8-3831c4a9cf0f.png)

---

The error occurred when compiling the following file.
`clang++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -DNDEBUG -I/home/jianghaibo/llvm-test-suite/MicroBenchmarks/libs/benchmark-1.3.0/include -I/home/jianghaibo/llvm-test-suite/MicroBenchmarks/libs/benchmark-1.3.0/src -I/home/jianghaibo/llvm-test-suite/MicroBenchmarks/libs/benchmark-1.3.0/src/../include -mtls-size=48 -mcmodel=large -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wshorten-64-to-32 -Wfloat-equal -fstrict-aliasing -Wzero-as-null-pointer-constant -Wstrict-aliasing -Wthread-safety -O0 -w -Werror=date-time -std=gnu++11 -o sysinfo.cc.o -c /home/jianghaibo/llvm-test-suite/MicroBenchmarks/libs/benchmark-1.3.0/src/sysinfo.cc`

**Is there any plan to support more scenarios?**

Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VElz2zYU_jXUBQMON1HkgQdZi-PGqTOxW7snDQg-ikhAgAXAysqvzwMVRXZyyPTgGQzIt314e62bY_XYgSI35MAs4bofhBRqT4JkiUfK_3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