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

--- Comment #155 from Peter Bisroev <peter.bisroev at groundlabs dot com> ---
(In reply to dave.anglin from comment #154)
> On 2020-02-11 11:31 a.m., peter.bisroev at groundlabs dot com wrote:
> > We already know that we currently cannot compile stage1 with -O0 as it 
> > causes
> > binaries to become huge and we get PCREL21B errors that were already 
> > described
> > here from HP's linker.
> I believe this issue needs to be fixed in bootstrap compiler.  If I go back
> to the initial report, we had:
> 
> ld: The value 0xfffffffffdf68820 does not fit when applying the relocation
> PCREL21B for symbol ".text" at offset 0x102 in section index 74 of
> file libbackend.a[function.o]
> 
> We need to go back and recompile function.c.  Add "-save-temps -da".  This
> will generate .s file and rtl dumps.

Thank you Dave, I think I should be able to do that later on tonight.

Just to confirm though, using gcc 4.7.4 that I have previously compiled with
aCC that adequately passed 'make check' tests, bootstrap gcc 4.7.4 with default
build flags for STAGE1. Observe PCREL21B errors and manually recompile affected
.c with "-save-temps -da". Is that correct?

Do you want to apply any patches to 4.7.4 or compile original code as I have
done previously?

> I suspect the value above needs to be zero extended rather than pointer
> extended.
As soon as I've read that, that error started to make sense :)

Thanks!
--peter

Reply via email to