Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 2 | #include <libelf.h> |
Ingo Molnar | 20c99e8 | 2013-10-07 13:27:23 +0200 | [diff] [blame] | 3 | |
Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 4 | int main(void) |
5 | { | ||||
6 | size_t dst; | ||||
Ingo Molnar | 20c99e8 | 2013-10-07 13:27:23 +0200 | [diff] [blame] | 7 | |
Ingo Molnar | b7bcef6 | 2013-09-30 14:35:27 +0200 | [diff] [blame] | 8 | return elf_getphdrnum(0, &dst); |
9 | } |