BFD linker supports option '--sort-section=name', which allows sections like .text.hot0001, .text.hot0002 etc to be placed in target executable in alphabetical order. This option has been used by Intel compiler to make function code layout more deterministic. This feature is important for generated code performance.
Created attachment 6821 [details] Test case
Created attachment 6841 [details] Test case This test case represents another section naming, code sections have names as '.text.hot.NNNNN'.
Created attachment 6842 [details] Test case (data sections) A test case for data section ordering.
This is fixed with: http://sourceware.org/ml/binutils/2013-05/msg00335.html