Is there any specification on the symbol ordering file

Dear LLVM developers,

I see ld.lld support symbol-ordering-file option to support custom symbol layout. Unfortunately, there seems to be no accompanied documents on this feature. I do not know what kind of format I should use to customize the layout.

P.S. I was to use my own runtime profiling tool is generate the function placement. The code is compiled with -ffunction-sections and I wanted to reorder the function symbols in the final binary output.


Yifan ZHU