public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gprofng/testsuite: adjust linking of synprog
@ 2022-12-19  8:24 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-12-19  8:24 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb

commit ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Dec 19 09:23:34 2022 +0100

    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.

Diff:
---
 gprofng/testsuite/gprofng.display/synprog/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gprofng/testsuite/gprofng.display/synprog/Makefile b/gprofng/testsuite/gprofng.display/synprog/Makefile
index 7c50ea2e629..4c1face7ace 100644
--- a/gprofng/testsuite/gprofng.display/synprog/Makefile
+++ b/gprofng/testsuite/gprofng.display/synprog/Makefile
@@ -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: $@ -----"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-19  8:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19  8:24 [binutils-gdb] gprofng/testsuite: adjust linking of synprog Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).