summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-11-06 21:48:02 -0500
committerRich Felker <dalias@aerifal.cx>2023-11-06 21:48:02 -0500
commit039d3c34f2e3578a8b7ada42f89213b844aa7a4e (patch)
treeca5f6460bc374a8fc27c70d6f8ea473e7d741da2 /src
parent7b6a6516e133a4154022de4d15b3d5bc800ab3ad (diff)
downloadmusl-039d3c34f2e3578a8b7ada42f89213b844aa7a4e.tar.gz
ldso: convert TLSDESC_BACKWARDS from "#ifdef" to "if" logic
this style is preferred because it allows the code to be compile-checked even on archs where it is not used.
Diffstat (limited to 'src')
-rw-r--r--src/internal/dynlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/dynlink.h b/src/internal/dynlink.h
index 06f41d09..40c743e2 100644
--- a/src/internal/dynlink.h
+++ b/src/internal/dynlink.h
@@ -73,6 +73,10 @@ struct fdpic_dummy_loadmap {
#define DL_NOMMU_SUPPORT 0
#endif
+#ifndef TLSDESC_BACKWARDS
+#define TLSDESC_BACKWARDS 0
+#endif
+
#if !DL_FDPIC
#define IS_RELATIVE(x,s) ( \
(R_TYPE(x) == REL_RELATIVE) || \