summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-20 22:35:11 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-21 00:02:21 +0100
commit46c3ff2acfd30645c751ea9bfb2c801a4c77d11c (patch)
treef6631c0b682fbb11818e4c9f004bb7a54e9715f7 /Userland/Libraries
parentba1eea9898b7c4bb4b0daac9da4a027df174c033 (diff)
downloadserenity-46c3ff2acfd30645c751ea9bfb2c801a4c77d11c.zip
LibELF: Remove "always bind now" global flag
This looked like someone's forgotten debug mechanism.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibELF/DynamicLoader.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLoader.cpp b/Userland/Libraries/LibELF/DynamicLoader.cpp
index 7bf1f110d8..4a1080006d 100644
--- a/Userland/Libraries/LibELF/DynamicLoader.cpp
+++ b/Userland/Libraries/LibELF/DynamicLoader.cpp
@@ -49,8 +49,6 @@ static void* mmap_with_name(void* addr, size_t length, int prot, int flags, int
namespace ELF {
-static bool s_always_bind_now = false;
-
RefPtr<DynamicLoader> DynamicLoader::try_create(int fd, String filename)
{
struct stat stat;
@@ -497,7 +495,7 @@ DynamicLoader::RelocationResult DynamicLoader::do_relocation(size_t total_tls_si
}
case R_386_JMP_SLOT: {
// FIXME: Or BIND_NOW flag passed in?
- if (m_dynamic_object->must_bind_now() || s_always_bind_now) {
+ if (m_dynamic_object->must_bind_now()) {
// Eagerly BIND_NOW the PLT entries, doing all the symbol looking goodness
// The patch method returns the address for the LAZY fixup path, but we don't need it here
dbgln_if(DYNAMIC_LOAD_DEBUG, "patching plt reloaction: {:p}", relocation.offset_in_section());