On Thu, 6 May 2021 at 18:44, 陈云星 via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > From llvm community: https://reviews.llvm.org/rG1a33c0f2422c97dbfdbf11e561bb7823d71e3145 <https://reviews.llvm.org/rG1a33c0f2422c97dbfdbf11e561bb7823d71e3145> > > 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 ? The GNU linker is not part of GCC, it is part of the Binutils project. That is a separate project with its own mailing lists.