Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jul 2020 19:56:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 247738] on powerpc64 bc exits with segfault right after starting it
Message-ID:  <bug-247738-227-MKHhAN8IRc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-247738-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-247738-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247738

--- Comment #7 from Leandro Lupori <luporl@FreeBSD.org> ---
Created attachment 216180
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216180&action=
=3Dedit
Disable -flto on powerpc64

The attached patch fixes the issue for me.

There is probably a bug with LLVM's LTO for PowerPC64 (but, at least on PPC=
64,
it doesn't seem related to floating point incompatibilities, as a comment in
the Makefile suggests).

It is probably worth to investigate why LLVM LTO is producing incorrect cod=
e,
but disabling LTO for gh-bc should be fine while LLVM is not fixed (if this=
 is
really the case).

For the record, the code fragment that is crashing is jumping to a pointer =
to a
TOC entry, instead of using the pointer stored at that TOC entry, that
correctly points to main().

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247738-227-MKHhAN8IRc>