From: "Martin Liška" <mliska@suse.cz>
To: debugedit@sourceware.org
Subject: [PATCH][OBVIOUS] Fix genversion linker error.
Date: Mon, 10 May 2021 11:37:43 +0200 [thread overview]
Message-ID: <09d67160-9446-0a30-bb50-cd3bc75436c6@suse.cz> (raw)
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
next reply other threads:[~2021-05-10 9:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 9:37 Martin Liška [this message]
2021-05-10 9:40 ` Martin Liška
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09d67160-9446-0a30-bb50-cd3bc75436c6@suse.cz \
--to=mliska@suse.cz \
--cc=debugedit@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).