https://sourceware.org/bugzilla/show_bug.cgi?id=34057

            Bug ID: 34057
           Summary: Add GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE
           Product: binutils
           Version: 2.47 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
            Blocks: 34056
  Target Milestone: ---

There are kernel ELF loader patch:

https://patchew.org/linux/[email protected]/

and glibc patches:

https://patchwork.sourceware.org/project/glibc/list/?series=59524

to load PT_LOAD segment with THP.  But there is no per-application
control for kernel ELF loader.  For glibc, we can use

$ GLIBC_TUNABLES=glibc.elf.thp=1 application

to enable THP on application.  But it requires setting GLIBC_TUNABLES
at run-time.

Add GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE:

/* Set if the object file should be loaded with transparent huge pages
   if possible.  */
#define GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE (1U << 1)

to GNU_PROPERTY_1_NEEDED.  Update kernel and glibc loaders to check for
GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE.  If it is set, load PT_LOAD
segments with THP if possible.


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=34056
[Bug 34056] Add GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE
-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to