From 269caa8ae18eb33e1286e4c21d434ea07228a619 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 10 Apr 2024 19:37:02 +0000 Subject: deploy: ae498864bb638e597b589c52ff27237835625281 --- development/ld.so.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'development/ld.so.html') diff --git a/development/ld.so.html b/development/ld.so.html index c0d088b..6c0e2f0 100644 --- a/development/ld.so.html +++ b/development/ld.so.html @@ -352,6 +352,9 @@ symbol=default_main; lookup in file=/usr/lib/libc.so.6 [0] symbol=default_main; lookup in file=/lib64/ld-linux-x86-64.so.2 [0] ./main: error: symbol lookup error: undefined symbol: default_main (fatal) +

Load lib with same name from different locations

+

The sources in ldso/samename show some experiments, loading the +libs with the same name but potentially from different locations (paths).

Dynamic Linking (x86_64)

Dynamic linking basically works via one indirect jump. It uses a combination of function trampolines (.plt section) and a function pointer table (.got.plt -- cgit v1.2.3