Clang option for reordering sections in .text

Hi ,

I would like to know if there is any way to reorder functions in the object file in order to improve code locality by implementing subsections .text.hot.
GCC controls this behavior with ‘-f(no)-reorder-functions’ flag, is there any way to do so in clang?

Regards,
Priyanka

Hi,

Any suggestions on this if there is any such flag available with clang.

Regards
Priyanka

Source order has no real meaning. You can tag functions to go into a
specific section with the attributes.

Joerg