diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-24 14:54:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-24 14:54:26 +0100 |
commit | 7db8ccc0e47e09e6c5d015a042c374b43cdd43ed (patch) | |
tree | f0b2b90b9346c5e7a0c248e74002f620e9fded67 /Userland/Libraries/LibELF/DynamicLoader.cpp | |
parent | 069fd583817cd6cf801db0193a04cb873c2a2990 (diff) | |
download | serenity-7db8ccc0e47e09e6c5d015a042c374b43cdd43ed.zip |
LibC+DynamicLoader: Move "transactional memory" GCC stubs to LibC
Instead of having a special case in the dynamic loader where we ignore
TM-related GCC symbols, just stub them out in LibC like we already do
for various other things we don't support.
Diffstat (limited to 'Userland/Libraries/LibELF/DynamicLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibELF/DynamicLoader.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLoader.cpp b/Userland/Libraries/LibELF/DynamicLoader.cpp index 81adbab1de..880bdd420d 100644 --- a/Userland/Libraries/LibELF/DynamicLoader.cpp +++ b/Userland/Libraries/LibELF/DynamicLoader.cpp @@ -427,12 +427,6 @@ DynamicLoader::RelocationResult DynamicLoader::do_relocation(size_t total_tls_si auto symbol = relocation.symbol(); auto res = lookup_symbol(symbol); if (!res.has_value()) { - // We do not support these - // TODO: Can we tell gcc not to generate the piece of code that uses these? - // (--disable-tm-clone-registry flag in gcc configuration?) - if (symbol.name().is_one_of("__deregister_frame_info"sv, "_ITM_registerTMCloneTable"sv, "_ITM_deregisterTMCloneTable"sv, "__register_frame_info"sv)) - break; - if (symbol.bind() == STB_WEAK) return RelocationResult::ResolveLater; |