Question about .bolt.org.text section

BOLT optimized program has this section, will the instructions in this section be executed? Does removing it affect the program if it won’t be executed

1 Like

In general, yes, but it depends on how you invoke llvm-bolt. You can try --use-old-text --lite=0 --no-huge-pages to emit new code into the original .text section.

1 Like