https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88345
--- Comment #21 from Michael Matz <matz at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #20) > > > > Live patching (user-space) doesn't depend on any particular alignment of > > functions, on x86-64 at least. (The plan for other architectures wouldn't > > need > > any specific alignment either). Note that the above complaints about > > missing > > alignment is for kernel (!) ftrace/livepatching on arm64 (!), not on x86_64. > > I had impression that x86-64 also needs forced alignment so the patching > can be always done atomically. But it is not a big practical difference > if we go with a flag specifying minimal function alignment. Not for userspace live patching (it's done while the process is stopped). kernel live patching may or may not need it. Point being that alignment shouldn't be implied by the live patching options as its orthogonal.