Merge branch 'tlssym' into 'master'

Fix dlsym of TLS variables

See merge request redox-os/relibc!327
This commit is contained in:
Jeremy Soller
2021-01-05 23:03:10 +00:00
7 changed files with 145 additions and 22 deletions
+11
View File
@@ -227,12 +227,23 @@ DYNAMIC_FLAGS+=\
-lc
DEPS=../sysroot
else
DYNAMIC_FLAGS+=\
-Wl,-rpath=\$$ORIGIN
endif
bins_static/%: %.c $(DEPS)
mkdir -p "$$(dirname "$@")"
$(CC) "$<" -o "$@" $(FLAGS) $(STATIC_FLAGS)
bins_dynamic/%.so: %.c $(DEPS)
mkdir -p "$$(dirname "$@")"
$(CC) "$<" -o "$@" -shared -fpic $(FLAGS) $(DYNAMIC_FLAGS)
bins_dynamic/dlfcn: dlfcn.c bins_dynamic/sharedlib.so $(DEPS)
mkdir -p "$$(dirname "$@")"
$(CC) "$<" -o "$@" $(FLAGS) $(DYNAMIC_FLAGS)
bins_dynamic/%: %.c $(DEPS)
mkdir -p "$$(dirname "$@")"
$(CC) "$<" -o "$@" $(FLAGS) $(DYNAMIC_FLAGS)