[google][4.7] Allow function reordering linker plugin to separate hot and cold code into different ELF segments

Sriraman Tallam tmsriram@google.com
Mon Dec 17 19:14:00 GMT 2012


I have committed this patch.

Thanks,
-Sri.

On Fri, Dec 14, 2012 at 4:16 PM, Rong Xu <xur@google.com> wrote:
> Looks good to me for google/gcc-4_7 branch.
>
> Thanks,
>
> -Rong
>
>
> On Fri, Dec 14, 2012 at 3:42 PM, Sriraman Tallam <tmsriram@google.com>
> wrote:
>>
>> Hi Rong,
>>
>>     Please review this code. This code allows the function reordering
>> plugin to separate hot and cold code into different ELF segments.
>> This would allow optimizations like mapping the hot code alone to huge
>> pages.
>>
>>     With this patch, by default, the plugin maps .text.unlikely
>> sections into a separate ELF segment.  This can be turned off with
>> plugin option "--segment=none".
>>
>>     The include/plugin-api.h changes are a backport from trunk.
>>
>> Thanks,
>> -Sri.
>
>



More information about the Gcc-patches mailing list