loader: Remove usage of USE_ELF_TLS in loader.c
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213>
This commit is contained in:
parent
62a68481fa
commit
a055f285f5
|
@ -627,11 +627,9 @@ loader_open_driver_lib(const char *driver_name,
|
||||||
next = end;
|
next = end;
|
||||||
|
|
||||||
len = next - p;
|
len = next - p;
|
||||||
#if USE_ELF_TLS
|
|
||||||
snprintf(path, sizeof(path), "%.*s/tls/%s%s.so", len,
|
snprintf(path, sizeof(path), "%.*s/tls/%s%s.so", len,
|
||||||
p, driver_name, lib_suffix);
|
p, driver_name, lib_suffix);
|
||||||
driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
|
driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
|
||||||
#endif
|
|
||||||
if (driver == NULL) {
|
if (driver == NULL) {
|
||||||
snprintf(path, sizeof(path), "%.*s/%s%s.so", len,
|
snprintf(path, sizeof(path), "%.*s/%s%s.so", len,
|
||||||
p, driver_name, lib_suffix);
|
p, driver_name, lib_suffix);
|
||||||
|
|
Loading…
Reference in New Issue