elf_generic.h (3ebc124838799d79bb81993028066939255edfbf) elf_generic.h (757686b11510174fffffec96b816204c8d659fba)
1/*-
2 * Copyright (c) 1998 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 46 unchanged lines hidden (view full) ---

55#define __ELFN(x) __CONCAT(__CONCAT(__CONCAT(ELF,__ELF_WORD_SIZE),_),x)
56#define __ElfType(x) typedef __ElfN(x) __CONCAT(Elf_,x)
57
58__ElfType(Addr);
59__ElfType(Half);
60__ElfType(Off);
61__ElfType(Sword);
62__ElfType(Word);
1/*-
2 * Copyright (c) 1998 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 46 unchanged lines hidden (view full) ---

55#define __ELFN(x) __CONCAT(__CONCAT(__CONCAT(ELF,__ELF_WORD_SIZE),_),x)
56#define __ElfType(x) typedef __ElfN(x) __CONCAT(Elf_,x)
57
58__ElfType(Addr);
59__ElfType(Half);
60__ElfType(Off);
61__ElfType(Sword);
62__ElfType(Word);
63__ElfType(Size);
64__ElfType(Hashelt);
65__ElfType(Ehdr);
66__ElfType(Shdr);
67__ElfType(Phdr);
68__ElfType(Dyn);
69__ElfType(Rel);
70__ElfType(Rela);
71__ElfType(Sym);
72
63__ElfType(Ehdr);
64__ElfType(Shdr);
65__ElfType(Phdr);
66__ElfType(Dyn);
67__ElfType(Rel);
68__ElfType(Rela);
69__ElfType(Sym);
70
71/* Non-standard ELF types. */
72__ElfType(Hashelt);
73__ElfType(Size);
74__ElfType(Ssize);
75
73#define ELF_R_SYM __ELFN(R_SYM)
74#define ELF_R_TYPE __ELFN(R_TYPE)
75#define ELF_R_INFO __ELFN(R_INFO)
76#define ELF_ST_BIND __ELFN(ST_BIND)
77#define ELF_ST_TYPE __ELFN(ST_TYPE)
78#define ELF_ST_INFO __ELFN(ST_INFO)
79
80#endif /* !_SYS_ELF_GENERIC_H_ */
76#define ELF_R_SYM __ELFN(R_SYM)
77#define ELF_R_TYPE __ELFN(R_TYPE)
78#define ELF_R_INFO __ELFN(R_INFO)
79#define ELF_ST_BIND __ELFN(ST_BIND)
80#define ELF_ST_TYPE __ELFN(ST_TYPE)
81#define ELF_ST_INFO __ELFN(ST_INFO)
82
83#endif /* !_SYS_ELF_GENERIC_H_ */