[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2021-12-15 Thread rdiezmail-gcc at yahoo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

R. Diez  changed:

   What|Removed |Added

 CC||rdiezmail-gcc at yahoo dot de

--- Comment #7 from R. Diez  ---
I have been building cross-compiler toolchains for years with makefiles similar
to this one:

https://github.com/rdiez/JtagDue/blob/master/Toolchain/Makefile

I am trying to upgrade that makefile from GCC 10.2 to GCC 11.2, and I am
getting exactly the same problem that this bug describes.

I checked, and the fix linked from this bug is included in version 11.2 .

However, I have never used option "--enable-default-pie" in the past, and I was
able build cross-toolchains with many GCC versions without it for years.

The target is actually an embedded ARM Cortex-M3 microcontroller with fixed
memory addresses (a "bare metal" firmware without OS), so I guess that I do not
really need PIE. It may even cost some performance, if I understand what PIE
does.

I am guessing that bootstrapping a cross-compiler GCC is still broken with its
default PIE setting.

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-23 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

Nathan Sidwell  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Nathan Sidwell  ---
Thanks for confirming!

544f4775360 2020-12-23 | c++tools:  Fix PIE  [PR 98324]

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

--- Comment #5 from CVS Commits  ---
The master branch has been updated by Nathan Sidwell :

https://gcc.gnu.org/g:544f477536010f055c26bc959b18fccf67902750

commit r11-6314-g544f477536010f055c26bc959b18fccf67902750
Author: Nathan Sidwell 
Date:   Wed Dec 23 04:50:00 2020 -0800

c++tools:  Fix PIE  [PR 98324]

This adds --enable-default-pie support to c++tools, so that the sample
server is build -fPIE if requested.

PR bootstrap/98324
c++tools/
* Makefile.in: Add FLAGPIE.
* configure.ac: Add --enable-default-pie support.
* configure: Rebuilt.

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-23 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

--- Comment #4 from Matthias Klose  ---
that's working now.

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-22 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

Nathan Sidwell  changed:

   What|Removed |Added

 Status|ASSIGNED|WAITING

--- Comment #3 from Nathan Sidwell  ---
Please let me know if the attached patch works for you or not.

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

--- Comment #2 from Nathan Sidwell  ---
Created attachment 49821
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49821=edit
add pie

try this patch on top of:

626b63d63a2 2020-12-21 | libcody: Add ranlib

I could reproduce the error, and this is now working for me (with the patch)

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

--- Comment #1 from Nathan Sidwell  ---
need to copy some more libcpp configurey bits ...

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

Nathan Sidwell  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2020-12-16
 Ever confirmed|0   |1
   Assignee|unassigned at gcc dot gnu.org  |nathan at gcc dot 
gnu.org