summaryrefslogtreecommitdiff
path: root/AK/IDAllocator.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-03-13 08:49:28 +0100
committerAndreas Kling <kling@serenityos.org>2022-05-01 12:42:01 +0200
commit08c459e495608b4be6b9a032cc62ca65f4cef975 (patch)
tree48d96d5e493a0efa6632a96983fe2825743ab4ba /AK/IDAllocator.h
parent4d5965bd2c07bd88c91c5977a5a7e7a546a09917 (diff)
downloadserenity-08c459e495608b4be6b9a032cc62ca65f4cef975.zip
LibELF: Add support for IFUNCs
IFUNC is a GNU extension to the ELF standard that allows a function to have multiple implementations. A resolver function has to be called at load time to choose the right one to use. The PLT will contain the entry to the resolved function, so branching and more indirect jumps can be avoided at run-time. This mechanism is usually used when a routine can be made faster using CPU features that are available in only some models, and a fallback implementation has to exist for others. We will use this feature to have two separate memset implementations for CPUs with and without ERMS (Enhanced REP MOVSB/STOSB) support.
Diffstat (limited to 'AK/IDAllocator.h')
0 files changed, 0 insertions, 0 deletions