<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJzNVk1v2zgQ_TXyZWBBouzIPvjgOvHCQLMoNtnu3gpKGstMKNIlKSf59zskHX8lRdvdHtYwJGpmOHwz74lUpZuXWcIK-sNKrbXpuBNaJdl1ks3h9u7zAnZorDcVc8inKZumRZYX5T5iIblqz0KKNIu-_TXmvnO4teA0_IFbo5u-xtOgPIXkKuu4UGlNA_CJvEUoB96asEnCppCUH5LymuxxFguzagnDGg5zo6sILimboRTqMXp19QAJW97Of18tb-7uT8fL1ccbWpPi044rsUbrDqlGMdXPpKHYt3lO27Fvytl60U3R8R8fi0VSLJ87eezwdcJYTi1mDKzjquFSK4zmF7R0pQlJcXOYz63FrpIvQFmUjYG98VTZeoMdt8NO1EZbvXbDWndk57ZLd7nPFCk-_F6hfn6L5bAi0VYsnOmt82o6MQeHxbo3wr2c2YPH4NeeUmPzyYidkNhSLedBF3E3z5TLS_Uj7lCC9NeAqOR2pXb6EQ2NoRfzukYbCy_XXFqkO3H2FgIZv4ciRr1TRXS8rTvaXzk4mi9ofkcaZxr6cW2UgY8SUNW6EaqNxj_vl8OJN19IpgySKb8vmfLHJFO-q5E9pm9o5CeFWZyr7RfI6pepCv7HsoKF7jpUzkbjKgikVw4NNuA2woKwtrcITxtUsAI_XNzyR_R7dtUL2QAHK7qtRKANvDW8Azot4C-hGv1k4e9P6T6elt_ZL16_X_AZ_W5O7JEsGp_TBmGj8Vn35wCtjtDgmvfSHeQDa2FI92zhvQqoTIIpHNCBoMmnuAQMVPFKYnpa7i3VQbr3MP6FsAitr-ooTiLFywFqTuibgPW4MPQq3AiT6RVQ2Gk77n2sMZSuI6nwFqnF7_J079vPt1sp6nD4woZbWHMSSuNT0ztrHFQYIAQEp7G1VmvR9iY-eR6JWGMIdkpnrVA0W0rfkMuJHX-hTj5H8veUphf44LSzg2ZWNNNiyge8dxttZpuezv6vQj0INeiNnG2c21K_5_41YMtWuE1fpb7DbCnl7vU2pLUeCB49esn5DWg5ZuU0H2xmeTWdFJOMjfJsko9KhlWW5dPxiF1lV_XkajqQvEJpZ8n4A7Gl8CmoFj1z4-vBf0cgZixjec7ySU4IWJaW62zCm6KpxgQKG56MMlKQkKnPk2rTDswspKz61pJTCuvs0UlvqGgVYgBMCJ1wMjy8fpmQEX5DhUQfkX1Qf7cXcVDwtxSpuy03USLhO83nG4SCZqGafwBNlgDA>52791</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lld-link] Generated manifest missing xmlns for trustInfo section compared to MSVC link
        </td>
    </tr>

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

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

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

<pre>
    ## Information
 MSVC version: 19.29.30137
 Clang version: 13.0

## Steps to Reproduce

1. `main.c` :  `int main() {}`
2. `cl -c main.c`
3. `lld-link main.obj /MANIFEST /MANIFESTFILE:lld.manifest`
4. `link main.obj /MANIFEST /MANIFESTFILE:link.manifest`

#### lld.manifest
```
<?xml version="1.0" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
          manifestVersion="1.0">
  <trustInfo>
    <security>
      <requestedPrivileges>
         <requestedExecutionLevel level='asInvoker' uiAccess='false'/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>
```

#### link.manifest
```
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level='asInvoker' uiAccess='false' />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>
```

## Comments
I encountered this issuse when I use CMake to build a simple program for Windows XP. CMake `vs_link_exe` command uses linker to produce the default manifest first, then embed it into final executable.

Missing `xmlns="urn:schemas-microsoft-com:asm.v3"` for trustInfo section caused the executable unable to run on Windows XP. The error message is
```
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this program.
``` 


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVk1v2zgQ_TXyZWBBouzIPvjg2vHCQLMoNml3bwUljmwmFOWSlJP8-x2SjmM7KdoueljD0MfMcPhm3iOpqhPPs4QV9Ie1bjrTcic7nWTLJJvDze2XBezRWG8q5pBPUzZNiywvykPEQnG9OQsp0iz6DteY-9bhzoLr4C_cmU70NZ4G5SkkV1nLpU5regCfyFukduCtCZskbApJ-SEpl2SPo1gYVSsY1nAcG11FcCklhkrqh-jtqntI2Opm_ud6dX17d_q8Wn-8pjkpPm25lg1ad0w1iql-JQ3Fvs1z2o5DU87mi26Kjv_4WiySYvXUqtcOLxPGcmoxY2Ad14KrTmM0P6OlKw1IiuvjeG4ttpV6BsqibQzsjafK1ltsuR22sjad7Ro3rLuW7Ny26T73mSLFx98L1C9vsRxnJNqKhTO9dV5NJ-bgsFj3RrrnM3vwGPzWU2oUn4zcS4UbquU86CLu-olyeal-xD0qUP4aEJXcrvW-e0BDz9DLeV2jjYWXDVcW6U6cvYVAxh-hiFHvVBEdb-uO9hcOXs0XNL8jjTMN_bw2ysBHCajrTki9icbPd6vhxJsvJFMGyZQ_lkz5c5Ip39XIAdN3NPKLwizO1fYbZPXbVAX_Y1nBomtb1M5G4zoIpNcODQpwW2lBWttbhMctaliDf1zc8Af0e3bVSyWAg5XtTiHQBr4xvAU6LeBvqUX3aOGfT-khnqbf269ev1_xCf1uTuyRLITPaYOw0fish3OAZkcQ2PBeuaN8oJGGdM8W3quByiSY0gEdCB35NFeAgSpeKUxPy72hOkj3HsZ_EBah9VW9ipNI8XKAmhN6EbC-Tgy9DjfCZHoNFHbajjsfawyla0kqfIPU4nd5uvPt57udknU4fGHLLTSchCJ8alqzxkGFAUJAcBpbd7qRm97EN88jEWsMwU7prJWaRivlG3I5sOXP1MmnSP6B0vQCH5x2diBmhZgWUz5w0imcJeMPLwdsMl7CH6iRUBDmI4ntgYtAxPca27U7bmKl4XPD5xv0Rs22zu2IvrlfVWy1kW7bV6knjK2U2r_chgT9nnLRq1ew389WY1ZO88F2JsbllbiaTlldVw3LrppJNimaUTnCKyHqUT5QvEJlfSVEvsbHsAjQC2G8HMgZy1ies3yS59mEZWnZZBMuClGNMzZCwZNRRnKSKvU40s5sBmYWIFX9xpJTSevsq5OWq9xoDI3z-Xnvtp2ZbXv6gvom9b3UgzD9LMD_Fymk7M8">