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

    <tr>
        <th>Summary</th>
        <td>
            A warning/error would be helpful if `PHDRS` is specified with partial links
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          parth-07
      </td>
    </tr>
</table>

<pre>
    It would be helpful if the linker reports a warning/error diagnostic if the linker script contains `PHDRS` for partial links. `PHDRS` are not relevant for partial links and are completely ignored when doing a partial link.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxskcGOnDAQRL_GXFqD7AbMcvBhohVKblHyBQYa6MRjI9vMaP8-Aq2UTHZPPlSVXX5lU-LFExnRfBHNa2H3vIZoNhvzepFtMYTpzXzL8Ai7m2AgWMlt8-6AZ8grgWP_myJE2kLMCSw8bPTsF4E9xRgiTGwXH1Lm8b9IGiNvGcbgs2WfQGj5_evrj59CS5hDhKMCW3faU_kk20jgQ4ZIju7W549-sH46bWO4bY4yuTfgxYdIEzxW8jAF9gvYp1Qp5LWYTDV1VWcLMqqtO6UqRF2sRkvVzMrWHVZDO70MWrdtTYo04ShrZQs2KLGRWjbypW6lLmulhgZJDlJ32HSVqCXdLLvSufutDHEpOKWdjKqxQ104O5BL5w6Inh5wqgLxmCWaI3QZ9iWJWjpOOf29JnN2ZK4f0H-22b8YOUHaaOSZDyqc12eGxR6dWXPekqiuAnuB_cJ53YdyDDeB_fH--3HZYvhFYxbYn62TwP79W3eDfwIAAP__o4rJ4w">