mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
LibELF/DynamicLinker: Evaluate symbols in library insertion order (#8802)
When loading libraries, it is required that each library uses the same instance of each symbol, and that they use the one from the executable if any. This is barely noticeable if done incorrectly; except that it completely breaks RTTI on Clang. This switches the hash map to be ordered; tested to work for Clang by @Bertaland
This commit is contained in:
parent
5f3e6085a2
commit
ca9c53c1a8
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ namespace ELF {
|
|||
|
||||
static HashMap<String, NonnullRefPtr<ELF::DynamicLoader>> s_loaders;
|
||||
static String s_main_program_name;
|
||||
static HashMap<String, NonnullRefPtr<ELF::DynamicObject>> s_global_objects;
|
||||
static OrderedHashMap<String, NonnullRefPtr<ELF::DynamicObject>> s_global_objects;
|
||||
|
||||
using EntryPointFunction = int (*)(int, char**, char**);
|
||||
using LibCExitFunction = void (*)(int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue