Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 800203 Details for
Bug 855902
sys-devel/gcc-10.4.0[d]: relocation R_X86_64_32 against symbol `main' can not be used when making a PIE object; recompile with -fPIE
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix relocation R_X86_64_32
gcc-10-d.patch (text/plain), 2.35 KB, created by
Magnus Granberg
on 2022-08-19 22:01:54 UTC
(
hide
)
Description:
Fix relocation R_X86_64_32
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2022-08-19 22:01:54 UTC
Size:
2.35 KB
patch
obsolete
>From d3ae0f515d0c675d42f4f18fc267e8e75f6b6f26 Mon Sep 17 00:00:00 2001 >From: Iain Buclaw <ibuclaw@gdcproject.org> >Date: Sun, 16 Jun 2019 18:12:47 +0200 >Subject: [PATCH] d: Use COMPILER_FOR_BUILD to build all D front-end generator > programs > >This means the correct config headers are included when building the >D front-end in a Canadian cross configuration. > >gcc/d/ChangeLog: > > * Make-lang.in (DMDGEN_COMPILE): Remove. > (d/%.dmdgen.o): Use COMPILER_FOR_BUILD and BUILD_COMPILERFLAGS to > build all D generator programs. > (D_SYSTEM_H): New macro. > (d/idgen.dmdgen.o): Add dependencies to build. > (d/impcnvgen.dmdgen.o): Likewise. > * d-system.h: Include bconfig.h if GENERATOR_FILE is defined. >--- > gcc/d/Make-lang.in | 14 +++++++++++--- > gcc/d/d-system.h | 4 ++++ > 2 files changed, 15 insertions(+), 3 deletions(-) > >diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in >index b0fce06e507..75857d81ec7 100644 >--- a/gcc/d/Make-lang.in >+++ b/gcc/d/Make-lang.in >@@ -52,7 +52,6 @@ d-warn = $(filter-out -pedantic -Woverloaded-virtual, $(STRICT_WARN)) > # Also filter out warnings for missing format attributes in the D Frontend. > DMD_WARN_CXXFLAGS = $(filter-out -Wmissing-format-attribute, $(WARN_CXXFLAGS)) > DMD_COMPILE = $(subst $(WARN_CXXFLAGS), $(DMD_WARN_CXXFLAGS), $(COMPILE)) >-DMDGEN_COMPILE = $(subst $(COMPILER), $(COMPILER_FOR_BUILD), $(DMD_COMPILE)) > > # D Frontend object files. > D_FRONTEND_OBJS = \ >@@ -360,6 +359,15 @@ d/id.h: d/id.c > d/impcnvtab.c: d/impcnvgen$(build_exeext) > cd d && ./impcnvgen$(build_exeext) > >+# Compile the generator programs. > d/%.dmdgen.o: $(srcdir)/d/dmd/%.c >- $(DMDGEN_COMPILE) $(D_INCLUDES) $< >- $(POSTCOMPILE) >+ $(COMPILER_FOR_BUILD) -c $(BUILD_COMPILERFLAGS) $(D_INCLUDES) \ >+ $(BUILD_CPPFLAGS) -o $@ $< >+ >+# Header dependencies for the generator programs. >+D_SYSTEM_H = d/dmd/root/dsystem.h d/d-system.h >+ >+d/idgen.dmdgen.o: d/dmd/idgen.c $(D_SYSTEM_H) $(BCONFIG_H) $(SYSTEM_H) >+ >+d/impcnvgen.dmdgen.o: d/dmd/impcnvgen.c d/dmd/mtype.h $(D_SYSTEM_H) \ >+ $(BCONFIG_H) $(SYSTEM_H) >diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h >index 685be25b729..a6a9fccc6b8 100644 >--- a/gcc/d/d-system.h >+++ b/gcc/d/d-system.h >@@ -19,7 +19,11 @@ > #ifndef GCC_D_SYSTEM_H > #define GCC_D_SYSTEM_H > >+#ifdef GENERATOR_FILE >+#include "bconfig.h" >+#else > #include "config.h" >+#endif > #include "system.h" > > /* Used by the dmd front-end to determine if we have POSIX-style IO. */ >--
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 855902
:
789623
|
789626
|
799951
| 800203 |
800379