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