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

    <tr>
        <th>Summary</th>
        <td>
            Can't build crtbegin.c on s390x for wasm32
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            build-problem
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    Recent regression on s390x:

```
cd /build/source/build-wasm/compiler-rt-wasm32 && /build/source/build-llvm/tools/clang/stage2-bins/bin/clang -O2 -DNDEBUG -g1 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 --target=wasm32-unknown-unknown -fno-lto -std=c11 -DEH_USE_FRAME_REGISTRY -fPIC -Wno-pedantic --target=wasm32-unknown-unknown -o /build/source/build-wasm/compiler-rt-wasm32/lib/wasi/clang_rt.crtbegin-wasm32.o -c /build/source/compiler-rt/lib/builtins/crtbegin.c
/build/source/compiler-rt/lib/builtins/crtbegin.c:77:2: error: "crtbegin without .init_fini array unimplemented for this architecture"
   77 | #error "crtbegin without .init_fini array unimplemented for this architecture"
      | ^
/build/source/compiler-rt/lib/builtins/crtbegin.c:134:2: error: "crtbegin without .init_fini array unimplemented for this architecture"
 134 | #error "crtbegin without .init_fini array unimplemented for this architecture"
      |  ^
2 errors generated.
```

Log:
https://llvm-jenkins.debian.net/job/llvm-toolchain-bionic-binaries/architecture=s390x,distribution=bionic,label=s390x/1153/console

Seems to be caused by:
https://reviews.llvm.org/D153989

@petrhosek rings a bell?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VV1vozgU_TXm5coI7BCSBx4yIcxW2t2u0qmqeYpsc0PcGjuyTbv99ysgaafS7Gq1HyNFRJj7ce45l4MIQXcWsSLFJ1LUiRjiyfkqvJpnDNFjIl37Wu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