https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98971
--- Comment #3 from Gabriel F. T. Gomes <gagomes at suse dot de> --- (In reply to Martin Liška from comment #2) > > @Gabriel: Is it intended behavior? That's what I expected, yes! Thank you. The only difference now is that the intermediate object doesn't have a __patchable_function_entries section, but that's OK as far as I can tell. With: $ gcc libtesta.c -fPIC -fpatchable-function-entry=4,2 -flto -c -o libtesta.o $ gcc libtesta.o -flto -shared -o libtesta.so now I get: $ readelf --sections libtesta.o | grep __patchable $ readelf --sections libtesta.so | grep __patchable [22] __patchable_[...] PROGBITS 0000000000004020 00003020 Cheers!