Skip to content

Commit f47ab8f

Browse files
src: fix fully-static & large-pages combination
Fixes: #23906 Refs: #22079 This change to ld.implicit.script moves libc static code to .lpstub area and avoids the issue detailed in 23906 Quick performance comparision on web-tooling shows 3% improvement for the combination over fully-static cycles 376,235,487,455 390,007,877,315 instructions 700,341,146,973 714,773,201,182 itlb_misses_walk_completed 20,654,246 28,908,381 itlb_misses_walk_completed_4k 19,884,666 28,865,118 itlb_misses_walk_completed_2m_4m 769,391 43,251 Score 9.13 8.86
1 parent 2cab511 commit f47ab8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/large_pages/ld.implicit.script

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
SECTIONS {
2-
.lpstub : { *(.lpstub) }
2+
.lpstub : {
3+
*libc.a:*(.text .text.*)
4+
*(.lpstub)
5+
}
36
}
47
PROVIDE (__nodetext = .);
58
PROVIDE (_nodetext = .);
69
PROVIDE (nodetext = .);
710
INSERT BEFORE .text;
8-

0 commit comments

Comments
 (0)