<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54194>54194</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLD with --orphan-handling=warn and custom linker script complains about ELF debug sections
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
royger
</td>
</tr>
</table>
<pre>
Hello,
It seems like LLD when used with a linker scripts complains about .symtab, .shstrtab and .strtab not explicitly handled in the script:
```
ld: warning: <internal>:(.symtab) is being placed in '.symtab'
ld: warning: <internal>:(.shstrtab) is being placed in '.shstrtab'
ld: warning: <internal>:(.strtab) is being placed in '.strtab'
```
GNU ld doesn't complain about such sections not being placed, and it's unknown which effect adding those sections to the linker script will have. Is it intended for LLD to complain about such sections not being explicitly handled in linker scripts?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUsFu2zAM_Rr5QiRwbCepDz5sTbMVCHbbB0gWbWtRpECUm-XvRytZugbFtgKGQ4Z8j49-VF6fm69orRfFo8g3Iv90eT9HIMQDgTV7hN1uA6cBHYyEGk4mDiC54vYYgNpgjpGg9YejlcYRSOXHCHM6H6JUzMvhQDFwAtJpzi6x8xHw59Ga1kR7hoFrltmNgzjglVaUVz1ilV-flFrNFTjJ4Izrp1CUj8ZFDE5aUT5NsOLhpqAGQ6CQW4EltpcholjfGtYfYr0u8zfeW8vHmP_J-5b17qN8-fYdrAbtkRz3xJslV0dobAd2tY3Gs0vT5_9zxmTUZI-JjCUY3d75k2PbDaOw6xgHUusJEAdP-MoUfXLszT3wkVjLnr7gHJ6JSWFa12nepfMhHRTD_lPg-1fy9v5Euc10U-q6rGUWuRebdLXTrc5mPhwZOUvo5MBm8iLt244U_eFO_f0xP-22oFGN_U1eNgbbDDEeKZm35afnWaOaM5YTa19-_8yOwf9gGKeGaETiYFkt6iobmrJb1uphrcuqbtdaL2TeKbVeydVy1aquUpmVCi01YvlZFIXDEyQKjsVyk5mmyIsiL_MqrxflIp-XSnWLqq0rXdT8P4oqx4M0dj7pmPvQZ6FJkngV4qI1FOm1KIlM7xDTOOaXI1sdmuDPPYYsTW6S8l8wp2Vr">