bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28399] New: Flag to order functions in a specific order based on


From: hiraditya at msn dot com
Subject: [Bug ld/28399] New: Flag to order functions in a specific order based on order file
Date: Thu, 30 Sep 2021 14:35:44 +0000

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

            Bug ID: 28399
           Summary: Flag to order functions in a specific order based on
                    order file
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hiraditya at msn dot com
  Target Milestone: ---

The BSD linker has this option `--symbol-ordering-file=file <order file>` that
lays out functions (and possibly other symbols) in the order specified in order
file. I can't find similar flag in gnu ld. Using order file to generate binary
gives performance boost of ~5-10% in large binaries. It helps a lot with
program startup time as page faults during cold starts are reduced.

Reference to bsd linker: https://www.freebsd.org/cgi/man.cgi?ld(1)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]