The rela groups in the *.fixup sections vary in size. That makes it
more complex to handle in the livepatch_strip_undefined_elements().
It is also unnecessary as the .fixup sections are unlikely to have
any STN_UNDEF symbols anyway.
Signed-off-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
if (!is_rela_section(sec))
continue;
+ /* The rela groups in the .fixup sections vary in size.
+ * Ignore them as they are unlikely to have any STN_UNDEF
+ * symbols anyway.
+ */
+ if (strstr(sec->name, ".fixup"))
+ continue;
+
/* only known, fixed-size entries can be stripped */
entry_size = get_section_entry_size(sec->base, kelf);
if (entry_size == 0)