Re: Reserving a bit in ELF segment flags for huge page mappings

2012-07-25 Thread Sriraman Tallam
On Tue, Jul 24, 2012 at 1:40 PM, Cary Coutant wrote: >> To do this, I would like to reserve a bit in the segment flags to >> indicate that this segment is to be mapped to huge pages if possible. >> Can I reserve something like a PF_LARGE_PAGE bit? > > HP-UX has a PF_HP_PAGE_SIZE (0x0010) bit

Re: Reserving a bit in ELF segment flags for huge page mappings

2012-07-24 Thread Cary Coutant
> To do this, I would like to reserve a bit in the segment flags to > indicate that this segment is to be mapped to huge pages if possible. > Can I reserve something like a PF_LARGE_PAGE bit? HP-UX has a PF_HP_PAGE_SIZE (0x0010) bit that says "Segment should be mapped with page size specifie

Reserving a bit in ELF segment flags for huge page mappings

2012-07-24 Thread Sriraman Tallam
Hi, I am working on a patch to allow subsets of text sections to be mapped to different ELF segments : http://sourceware.org/ml/binutils/2012-07/msg00153.html using linker plugins. This will allow splitting hot and cold functions into separate segments so that only the hot segment can be