mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
gprofng/testsuite: adjust linking of synprog
In order for so_syn.so and so_syx.so to be able to access the main program's "testtime" variable, that variable needs exposing in the dynamic symbol table. Since this is a test program only, do it the brute force way and simply expose all global symbols.
This commit is contained in:
@ -50,7 +50,7 @@ HDRS= \
|
||||
|
||||
$(TARGET): $(SRCS) $(HDRS) so_syx.so so_syn.so
|
||||
@echo " ---- Build: $@ -----"
|
||||
$(CC) $(CFLAGS) -o $@ $(SRCS) -ldl -lc -lrt
|
||||
$(CC) $(CFLAGS) -Wl,-E -o $@ $(SRCS) -ldl -lc -lrt
|
||||
|
||||
so_syx.so: $(srcdir)/so_syx.c
|
||||
@echo " ---- Build: $@ -----"
|
||||
|
Reference in New Issue
Block a user