Repository navigation
Commit c47b7c0
committed
[CMake] Pack relative relocations when supported
https://bugs.webkit.org/show_bug.cgi?id=327969
Reviewed by Adrian Perez de Castro.
Most of the dynamic relocations of the WebKit libraries are relative ones, and
every process reads all of them when it starts. Link with
-z pack-relative-relocs, which stores them in the much smaller DT_RELR format,
when the toolchain and the C library support it.
On WPE, the relocations of libWPEWebKit go from 8.1 MB to 2 MB, the library is
6 MB smaller, and the total PSS of the UI, Web and Network processes is about
7.5 MB lower.
* Source/cmake/OptionsCommon.cmake:
Canonical link: https://commits.webkit.org/324642@main1 parent 5c707db commit c47b7c0
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
155 | 160 | | |
156 | 161 | | |
157 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| |||
0 commit comments