Blame kpatch-build/kpatch-intermediate.h

Packit Service ac8aad
/*
Packit Service ac8aad
 * kpatch-intermediate.h
Packit Service ac8aad
 *
Packit Service ac8aad
 * Structures for intermediate .kpatch.* sections
Packit Service ac8aad
 *
Packit Service ac8aad
 * This program is free software; you can redistribute it and/or
Packit Service ac8aad
 * modify it under the terms of the GNU General Public License
Packit Service ac8aad
 * as published by the Free Software Foundation; either version 2
Packit Service ac8aad
 * of the License, or (at your option) any later version.
Packit Service ac8aad
 *
Packit Service ac8aad
 * This program is distributed in the hope that it will be useful,
Packit Service ac8aad
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service ac8aad
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service ac8aad
 * GNU General Public License for more details.
Packit Service ac8aad
 *
Packit Service ac8aad
 * You should have received a copy of the GNU General Public License
Packit Service ac8aad
 * along with this program; if not, write to the Free Software
Packit Service ac8aad
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA,
Packit Service ac8aad
 * 02110-1301, USA.
Packit Service ac8aad
 */
Packit Service ac8aad
Packit Service ac8aad
#ifndef _KPATCH_INTERMEDIATE_H_
Packit Service ac8aad
#define _KPATCH_INTERMEDIATE_H_
Packit Service ac8aad
Packit Service ac8aad
/* For .kpatch.{symbols,relocations,arch} sections */
Packit Service ac8aad
Packit Service ac8aad
struct kpatch_symbol {
Packit Service ac8aad
	unsigned long src;
Packit Service ac8aad
	unsigned long pos;
Packit Service ac8aad
	unsigned char bind, type;
Packit Service ac8aad
	char *name;
Packit Service ac8aad
	char *objname; /* object to which this sym belongs */
Packit Service ac8aad
};
Packit Service ac8aad
Packit Service ac8aad
struct kpatch_relocation {
Packit Service ac8aad
	unsigned long dest;
Packit Service ac8aad
	unsigned int type;
Packit Service ac8aad
	int addend;
Packit Service ac8aad
	int external;
Packit Service ac8aad
	char *objname; /* object to which this rela applies to */
Packit Service ac8aad
	struct kpatch_symbol *ksym;
Packit Service ac8aad
};
Packit Service ac8aad
Packit Service ac8aad
struct kpatch_arch {
Packit Service ac8aad
        unsigned long sec;
Packit Service ac8aad
        char *objname;
Packit Service ac8aad
};
Packit Service ac8aad
#endif /* _KPATCH_INTERMEDIATE_H_ */