We change the search procedure so it detects NixOS from /etc/os-release and uses "libnuma.so" when calling dlopen, instead of harcoding a full path to /usr. The full patch of libnuma is stored in the runpath, so dlopen can find it. Reviewed-by: Aleix Boné <abonerib@bsc.es> Tested-by: Vincent Arcila <vincent.arcila@bsc.es>
11 lines
322 B
Plaintext
11 lines
322 B
Plaintext
# Patch arguments to call sym std::string::find(char const*, unsigned long, unsigned long)
|
|
# so it matches NixOS:
|
|
#
|
|
# Change OS name to NixOS
|
|
wz NixOS @ 0x00550a43
|
|
# And set the length to 5 characters
|
|
wa mov ecx, 5 @0x00517930
|
|
#
|
|
# Then change the argument to dlopen() so it only uses libnuma.so
|
|
wz libnuma.so @ 0x00562940
|