summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a878014)
name can be (and will be) smaller than section_name_start. Both name and
section_name_start are NULL-terminated so we can use strcmp.
Change-Id: Iec414810109f9267de20c25c0fe601df35daf89e
Signed-off-by: Benoît Ganne <bganne@cisco.com>
clib_elf_section_bounds_t *b;
/* Section name must begin with CLIB_ELF_SECTION key. */
clib_elf_section_bounds_t *b;
/* Section name must begin with CLIB_ELF_SECTION key. */
- if (memcmp (name, section_name_start, section_name_start_len))
+ if (strcmp ((char *) name, section_name_start))
continue;
name += section_name_start_len;
continue;
name += section_name_start_len;