You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create-diff-object: Fix ordering of __patchable_function_entries
Old linkers don't support mixing ordered and unordered sections. This
was fixed in binutils, see discussion in [1]. But without this fix,
kpatch-build fails with an error like:
| ld.bfd: __patchable_function_entries has both ordered
| [`__patchable_function_entries' in /builddir/.kpatch/tmp/patch/output.o]
| and unordered [`__patchable_function_entries' in
| /builddir/.kpatch/tmp/patch/patch-hook.o] sections
| ld.bfd: final link failed: bad value
Fix this by only setting SHF_LINK_ORDER in the output object if the
patched object also has this flag set.
Signed-off-by: Puranjay Mohan <pjy@amazon.com>
0 commit comments