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

    <tr>
        <th>Summary</th>
        <td>
            [arm32] using lld, the names of functions in plt are replaced by $*
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lld
      </td>
    </tr>

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

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

<pre>
     Using lld, the names of functions in plt are replaced by $* in arm32, 

code:
`#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int func()
{
        char c = 'b';
        char str1[8];
        memset(str1, c, 8);
        return 0;
}
int main()
{
        func();
        return 0;
}`
clang demo.c -o demo32.o -fuse-ld=lld   -fstack-protector


objdump -d demo32.o
Disassembly of section .plt:

000106e0 <$a>: <<<<----- There is the question
   106e0: e52de004      str     lr, [sp, #-4]!
   106e4: e28fe600      add     lr, pc, #0, #12
   106e8: e28eea20      add     lr, lr, #32, #20
   106ec: e5bef1a4      ldr     pc, [lr, #420]!

000106f0 <$d>:           <<<<----- There is the question
   106f0: d4 d4 d4 d4   .word   0xd4d4d4d4
   106f4: d4 d4 d4 d4   .word   0xd4d4d4d4
   106f8: d4 d4 d4 d4   .word   0xd4d4d4d4
 106fc: d4 d4 d4 d4   .word   0xd4d4d4d4

00010700 <$a>: <<<<----- There is the question
   10700: e28fc600      add     r12, pc, #0, #12
   10704: e28cca20      add     r12, r12, #32, #20
   10708: e5bcf18c      ldr     pc, [r12, #396]!

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVdGWpCYQ_Rp84ejBQlt98GF6Ov0FyUveEMqWDWoHMMn8fQ7ITDs7u5vdLO0BPFV14VbdtoRz-rYg9qQ-k_qSic1Pq-1_n3CZxHIroeTZsKqXnv7m9HKjxigCz9RPSBcxo6PrSMdtkV6vi6N6oXfjqbBILd6NkKjo8EIJVASeglXYmUMAIOxC2NM-y1Uh4emFnBgBrhdpNoWU8GfnlV6LifBfksPnVqOHb5itXm4Hs158vC-BlkCXQprzvqFpyElYKinhF0qgGQg0hH_JxXlbkvrckvrywWHG2aEn0EYneKYyTPHQz10t-s0ulL0ZSHN53HYWevnmbQ90vgv5xFLajVhuVOG8FpLma9xxKFaaj5vD3CjCL8YoSmk-Oi_kH_ndrh6lX-2xevu8Dp_UNt9prt5wdsNFO-EczoN5CVpxGKVCi7vxj5rHmTFWshOyUDcClQg140_x7fXJw6C_TmiRahdV-OeGLiC-EY8YIRBrUMhYtafCeRtXY6P86rO7xw3wvAr1g_IdQhURoB3xxNiOIJQ6INxlCmdpLeEdQJsAEAV8ESBdBHj6QwAH9g5B7iQGHEuRSBi1k0iH1-c3kArYkcUxo-NrRlXK6GP8j9yOMbeqejyUFn-vNlBj_6hq_72LqH44ov2BiOAvv9__kJmG_bzWGsZelSI_KMWW8N9Sadir1qT8IJWEkJaviqVhbRKLHMtWfkUsB5TudFRLpnquOt6JDPuyYW3dclaxbOqR13WFYyk72alSDuWpGlvF6pPiI0LTZboHBhUDAHYCXneFrMdyqEtRq0qWHBmpGM5Cm8KYv-ZitbdMO7dh30LddpkRAxoXew9AbC0QmpDtg3c-bDdHKma08-4R77U3sV3tvaS-0O1nO1O2WdNP3t9d-CTBlcD1pv20DYVcZwLXcHZawjfwE0pP4BqJOALXyOXfAAAA__9j8urz">