* [PATCH][OBVIOUS] Fix genversion linker error.
@ 2021-05-10 9:37 Martin Liška
2021-05-10 9:40 ` Martin Liška
0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2021-05-10 9:37 UTC (permalink / raw)
To: debugedit
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] 2+ messages in thread
* Re: [PATCH][OBVIOUS] Fix genversion linker error.
2021-05-10 9:37 [PATCH][OBVIOUS] Fix genversion linker error Martin Liška
@ 2021-05-10 9:40 ` Martin Liška
0 siblings, 0 replies; 2+ messages in thread
From: Martin Liška @ 2021-05-10 9:40 UTC (permalink / raw)
To: debugedit
Sorry, wrong mailing list.
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-10 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 9:37 [PATCH][OBVIOUS] Fix genversion linker error Martin Liška
2021-05-10 9:40 ` 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).