public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix genversion linker error.
@ 2021-05-10  9:40 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2021-05-10  9:40 UTC (permalink / raw)
  To: gcc-patches

When renaming gcov-iov to genversion I forgot one hunk that led

to the following linker error:



ld: error: build/genversion.o: requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC



It's a copy&paste error and I'm going to push it.



Martin

gcc/ChangeLog:

	* Makefile.in: Add missing genversion rule.
---
  gcc/Makefile.in | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 8091057a8a3..487db220d8c 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3032,6 +3032,10 @@ CFLAGS-build/genversion.o += -DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
  
  build/genversion.o: genversion.c $(BCONFIG_H) $(SYSTEM_H)
  
+build/genversion$(build_exeext): build/genversion.o
+	+$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) \
+		build/genversion.o -o $@
+
  version.h: s-version; @true
  s-version: build/genversion$(build_exeext)
  	build/genversion$(build_exeext) > tmp-version.h
-- 
2.31.1


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

only message in thread, other threads:[~2021-05-10  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  9:40 [PATCH] Fix genversion linker error Martin Liška

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).