Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 1 | #include <libelf.h> |
Ingo Molnar | 20c99e8 | 2013-10-07 13:27:23 +0200 | [diff] [blame] | 2 | |
Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 3 | int main(void) |
4 | { | ||||
5 | size_t dst; | ||||
Ingo Molnar | 20c99e8 | 2013-10-07 13:27:23 +0200 | [diff] [blame] | 6 | |
Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 7 | return elf_getphdrnum(0, &dst); |
8 | } |