facebookarchive / BOLT

Binary Optimization and Layout Tool - A linux command-line utility used for optimizing performance of binaries
2.51k stars 176 forks source link

Is .Deb files supported #249

Closed Sambhrama754 closed 2 years ago

Sambhrama754 commented 2 years ago

?? Tq

Sambhrama754 commented 2 years ago

@rafaelauler help Can we out put binaries as .Deb files

aaupov commented 2 years ago

What exactly do you mean by deb binaries? Generally BOLT would support binaries compiled on Debian using the workflow outlined in the wiki. Speaking of binaries shipped in .deb packages, I expect a number of issues optimizing them:

  1. They're compiled with GCC with function splitting by default (-freorder-blocks-and-partition), which is discouraged.
  2. They are stripped of symbol table preventing the proper identification of cold function fragments.
  3. They're linked without relocations preserved in the binary, which restricts function reference identification.
Sambhrama754 commented 2 years ago

@aaupov oh I think we can patch it