Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef RELOCS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define RELOCS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <stdio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <stdarg.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <stdlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <stdint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <inttypes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <errno.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <elf.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <byteswap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define USE_BSD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <endian.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <regex.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <tools/le_byteshift.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void die(char *fmt, ...) __attribute__((noreturn));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) enum symtype {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	S_ABS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	S_REL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	S_SEG,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	S_LIN,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	S_NSYMTYPES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) void process_32(FILE *fp, int use_real_mode, int as_text,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		int show_absolute_syms, int show_absolute_relocs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		int show_reloc_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) void process_64(FILE *fp, int use_real_mode, int as_text,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		int show_absolute_syms, int show_absolute_relocs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 		int show_reloc_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif /* RELOCS_H */