Support of link time symbols reorder to improve performance

Thu May 6 16:06:34 GMT 2021

From llvm community: <>

LLD linker has an option :  --symbol-ordering-file

Which support direct linker to sort symbol in result object by a user supplied file;

This improve performance by reduce instruction cache miss.

The hottest function will cluster and code cache hit rate will be high.

Does gnu linker can support this ?

More information about the Gcc-help mailing list