[arm][objdump] Why doesn't objdump generate plt symbos for arm?
Why doesn't objdump generate plt symbos for arm, however objdump generates those symbols for aarch64 and X86.
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 llvm-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]!
@llvm/issue-subscribers-tools-llvm-objdump
Author: None (Zhenhang1213)
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 llvm-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]!
cc @Bigcheese