https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324

R. Diez <rdiezmail-gcc at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdiezmail-gcc at yahoo dot de

--- Comment #7 from R. Diez <rdiezmail-gcc at yahoo dot de> ---
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.

Reply via email to