-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is not sufficient to determine whether Elf is ET_DYN or not to be a dynamic library in bcc_elf_is_shared_obj() function, because the executable Elf of the PIE type is also ET_DYN. For example, on Fedora 41, /usr/bin/bash is PIE: $ readelf -h /usr/bin/bash ELF Header: ... Type: DYN (Position-Independent Executable file) ... bcc_elf_is_shared_obj() should not return 'true' for /usr/bin/bash. This commit add function bcc_elf_is_pie() and export it in bcc_elf.h. At the same time, fix test py_test_usdt3. Signed-off-by: Rong Tao <[email protected]> Signed-off-by: Jiang Guirong <[email protected]>
- Loading branch information
1 parent
d36ab45
commit 0b5be9b
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters