I am working on improving performance of my user space application in Linux. The frequently executed code is distributed across lots of files. I would like to mark certain portion of code in all files to be together without modifying or moving the code physically. In otherwords, I want all the CPU instructions of frequently executed path to be together. Is there a  way to mark the code for a specific ELF section. Later once it is done, I may chose to lock the code present in this section on the CPU cache.