[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/8] libelf: loop safety: Pass `elf' to elf_xen_parse_features
Not used yet, so no functional change. We will need this in a moment. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- xen/common/libelf/libelf-dominfo.c | 5 +++-- xen/include/xen/libelf.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index a52900c..7f4a6a0 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -32,7 +32,8 @@ static const char *const elf_xen_feature_names[] = { static const unsigned elf_xen_features = sizeof(elf_xen_feature_names) / sizeof(elf_xen_feature_names[0]); -elf_errorstatus elf_xen_parse_features(const char *features, +elf_errorstatus elf_xen_parse_features(struct elf_binary *elf, + const char *features, uint32_t *supported, uint32_t *required) { @@ -202,7 +203,7 @@ elf_errorstatus elf_xen_parse_note(struct elf_binary *elf, break; case XEN_ELFNOTE_FEATURES: - if ( elf_xen_parse_features(str, parms->f_supported, + if ( elf_xen_parse_features(elf, str, parms->f_supported, parms->f_required) ) return -1; break; diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h index 294231a..6436bd7 100644 --- a/xen/include/xen/libelf.h +++ b/xen/include/xen/libelf.h @@ -452,7 +452,8 @@ static inline int elf_xen_feature_get(int nr, uint32_t * addr) return !!(addr[nr >> 5] & (1 << (nr & 31))); } -int elf_xen_parse_features(const char *features, +int elf_xen_parse_features(struct elf_binary *elf, + const char *features, uint32_t *supported, uint32_t *required); int elf_xen_parse_note(struct elf_binary *elf, -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |