fix(expected): dynamic bins

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh
2024-11-26 19:51:06 +11:00
parent cdb4843164
commit e8e6b8cbc5
5 changed files with 15 additions and 8 deletions
+6 -5
View File
@@ -214,11 +214,11 @@ EXPECT_INPUT_NAMES=\
unistd/getpass
BINS=$(patsubst %,$(BUILD)/bins_static/%,$(NAMES))
BINS+=$(patsubst %,bins_dynamic/%,$(NAMES))
BINS+=$(patsubst %,bins_dynamic/%,$(DYNAMIC_ONLY_NAMES))
BINS+=$(patsubst %,$(BUILD)/bins_dynamic/%,$(NAMES))
BINS+=$(patsubst %,$(BUILD)/bins_dynamic/%,$(DYNAMIC_ONLY_NAMES))
EXPECT_BINS=$(patsubst %,$(BUILD)/bins_static/%,$(EXPECT_NAMES))
EXPECT_BINS+=$(patsubst %,bins_dynamic/%,$(EXPECT_NAMES))
EXPECT_BINS+=$(patsubst %,bins_dynamic/%,$(DYNAMIC_ONLY_NAMES))
EXPECT_BINS+=$(patsubst %,$(BUILD)/bins_dynamic/%,$(EXPECT_NAMES))
EXPECT_BINS+=$(patsubst %,$(BUILD)/bins_dynamic/%,$(DYNAMIC_ONLY_NAMES))
EXPECT_INPUT_BINS=$(patsubst %,$(BUILD)/bins_expect_input/%,$(EXPECT_INPUT_NAMES))
CARGO_TEST?=cargo
@@ -299,7 +299,8 @@ DYNAMIC_FLAGS+=\
-Wl,-dynamic-linker=$(SYSROOT_LIB)/ld64.so.1 \
-Wl,-rpath=$(SYSROOT_LIB):\$$ORIGIN \
-L $(SYSROOT_LIB) \
-lc
-lc \
-fpic
DEPS=../sysroot
else
+1 -1
View File
@@ -1 +1 @@
./bins_static/args test args
./bins_dynamic/args test args
+6
View File
@@ -0,0 +1,6 @@
add(22, 33) = 55
puts from dlopened libc
sharedlib: global_var == 42
sharedlib: tls_var == 21
main: global_var == 42
main: tls_var == 21
+2 -2
View File
@@ -130,8 +130,8 @@ EUSERS macro available
EWOULDBLOCK macro available
EXDEV macro available
EXFULL macro available
./bins_static/errno
./bins_static/errno
./bins_dynamic/errno
./bins_dynamic/errno
errno
changed to argv[0]
changed to program_invocation_name