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.