Issue |
80385
|
Summary |
[tool][objdump] llvm-objdump in arrch32 disassembly without __stack_chk_fail while applying -fstack-protector
|
Labels |
new issue
|
Assignees |
|
Reporter |
Zhenhang1213
|
`#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int func()
{
char c = 'b';
char str1[8];
//set
memset(str1, c, 8);
str1[7] = '\0';
//get
printf("str1=%s\n", str1);
return 0;
}
int main()
{
func();
return 0;
}
`
On a 32-bit architecture, when I compile this code into an object file and disassemble it using the objdump tool, the generated assembly instructions do not have the __stack_chk_fail function call, however arrch64 not.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs