mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibC: Remove text relocation
Tweak the PLT trampoline to avoid generating textrels in LibC. This allows us to share all the LibC mappings, reducing per-process memory consumption by ~200 KB. :^) Patch originally by @nico.
This commit is contained in:
parent
713b3b36be
commit
1e6d04c746
Notes:
sideshowbarker
2024-07-18 22:09:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1e6d04c7462
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ _plt_trampoline: # (obj, reloff)
|
|||
|
||||
pushl 20(%esp) # Copy of reloff
|
||||
pushl 20(%esp) # Copy of obj
|
||||
call _fixup_plt_entry # Call the binder
|
||||
call _fixup_plt_entry@PLT # Call the binder
|
||||
addl $8,%esp # pop binder args
|
||||
movl %eax,20(%esp) # Store function to be called in obj
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue