-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rv_histogram: Make it more verbose #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain why ELF section headers are necessary for static analysis in the git commit message.
tools/rv_histogram.c
Outdated
if (!hdr->e_shnum) { | ||
(void) fprintf(stderr, "no section headers are found in %s\n", | ||
elf_prog); | ||
return 1; |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
tools/rv_histogram.c
Outdated
fprintf(stderr, "elf_open failed\n"); | ||
return 1; | ||
(void) fprintf(stderr, "Failed to open %s\n", elf_prog); | ||
return 1; |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
Section headers must be present for static analysis since the tool uses the SHT_PROGBITS type and SHF_EXECINSTR flag, which are defined in section headers, to determine the executable machine instructions of the target program Closed sysprog21#272
Thank @ChinYikMing for contributing! |
Section headers must be present for static analysis since the tool uses the
SHT_PROGBITS
type andSHF_EXECINSTR
flag, which are defined in section headers, to determine the executable machine instructions of the target programClosed #272