<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69019>69019</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AIX][llvm-ar] llvma-r doesn't align shared object members correctly for the loader
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm-tools,
platform:aix
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
daltenty
</td>
</tr>
</table>
<pre>
Shared objects in archives generated by llvm-ar fail to load:
```
Could not load program c-arcmt-test:
Dependent module /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/libclang.a(libclang.so.17git) could not be loaded.
The alignment of the .text section does not
satisfy its required alignment.
```
Shared libraries on AIX are generally archives, so the members have some additional alignment requirements for the loader.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk0GPqzgMxz9NuFhFYEopBw6dqZDmvHuY28oEA1kFwiamO_32T6RVZ_T0JBTFku387f8PCsGMC3OjyjdVXhPaZHK-6ckKL3JPOtffm78m8tyD6_5lLQHMAuT1ZG4cYOSFPQn30N3B2tt8IA8DGQviwDrqVXFR2VVlF3XKnl8M391me1icxCxYvRs9zaAP5PUsB-Eg36VZfeWVl54Xgdn1m2VQ2AbtSfSksF3d_-z313_e_-HlprAl83VYV306Kmy1pWV8RAcyXwrbbjO2V9ha0z3OmJKSwvMrCC7Nq9GIwhr0S3bHUTn36Uvk3xMDWTMu8y7UDSATQyr8JRBYi3EL9I7DXv6qgUBiwnAHIwE8_7eZfdWvLukfl_c4n7ZY03nyhgO4BS4fn0Cen75Ye39ZpfAdgouSZp479gEmujEENzNQ35tdH9kfAzzV7PcAg_OxNs7s06Rvir4uakq4yU91hZgXxyqZmoqziquqLPWAdOroVNSc62OF56zqyk4npsEMizzLi_yMiFV65OxcDboeTjXWx1KrY8YzGZvuJqbOj4kJYePmVGd5nVjq2IaIK2IETpyzQSEqfFeIqyUZnJ9VcYkO4061b2Jmt41BHTNrgoTv7mLERv4vH5-qvKry7cmxKq8RaTr46NuisJLHfiD8_CVeC9XOe9Zi77-tK9m8bSaRNexMY6uwHY1MW5dqtzP7RDe-u3q391TYxrGDwjZO_isAAP__fIs05A">