<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70546>70546</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lld] -zcommon-page-size=2097152, -zmax-page-size=2097152, cannot apply additional memory protection after relocation: Cannot allocate memory
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wingrez
</td>
</tr>
</table>
<pre>
### Error Report
`./test: error while loading shared libraries: cannot apply additional memory protection after relocation: Cannot allocate memory`
### Reproduction
test.c
```
int main() {return 0;}
```
```
clang -fuse-ld=lld -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 -o test test.c
./test
```
I wonder why there's such an error.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0Us2OozwQfJrmYoGctvnJgcPM5Iv0XeeyZ4M74JWxkW12NvP0K5Mou4fM3lZqgeiuQtXVpWI0kyPqoX6F-lSoLc0-9B_GTYE-i8Hraw8obsX-C8EH9k6rDwn4CfgLNLwCPCeKCcQLox3wMRtLzHqljZtYnFUgzawZggqGYsaNyjmfmFpXe2VKa5OMd8qyhRYfrmwNPtGYe0xdEgUWyPpR5UZmv93Zdm_SnQUNv2u6PR-q32kNXm_7_26zLLcaHxvca_80LrFFGQfYAR4ZtK-B0hYc4yBeoT09JT1tjla5iZWXLVJpNYiTtZqV3yzgW_k5-mXxrlzVRGU0nwTihPzYHmp8QBb18_ncs6yf_bnE4wZfq_uffXinKV_nytJMgQDbyOI2zky52-WqG7TQvdBHcVQF9Yfm2MlOcCGLuR84XSTWgmMnWhw7wmG4NJd25K1oj1IUpkeO4sCx413NhazaA1ckpRxk02rZtCA5LcrYytofS-XDVJgYN-pbXsumsGogG_csIlqrATGHMvQZXQ7bFEFya2KKv_nJJLvHN-PrE_ubt4Bv7Etj8_Bf5LLYgu3nlNacfMAz4Hkyad6GavQL4Dlvcn-Va_DfaUyA592WCHjenfkVAAD__3sUH4E">