Joerg Sonnenberger via llvm-dev
2015-Sep-27 16:55 UTC
[llvm-dev] Error compiling libc++ for ARMv6
On Fri, Sep 25, 2015 at 05:34:03PM -0700, JF Bastien via llvm-dev wrote:> In pre-v6 Linux you could use the kernel-provided helpers: > > https://www.kernel.org/doc/Documentation/arm/kernel_user_helpers.txtPlease *never* tell people to use those directly. There are kernels other than Linux and the very idea of hardcoding random kernel address should make all red warning lights go off. Joerg
It's part of the stable Linux ABI for ARM. Yes there are non-Linux OSes, and I wasn't suggesting one emit these calls for non-Linux. Please clarify the red warning lights. FWIW these functions were used by Chrome on ARM until very recently, specifically for the sake of older ARM CPUs. On Sep 27, 2015 9:55 AM, "Joerg Sonnenberger" <joerg at britannica.bec.de> wrote:> On Fri, Sep 25, 2015 at 05:34:03PM -0700, JF Bastien via llvm-dev wrote: > > In pre-v6 Linux you could use the kernel-provided helpers: > > > > https://www.kernel.org/doc/Documentation/arm/kernel_user_helpers.txt > > Please *never* tell people to use those directly. There are kernels > other than Linux and the very idea of hardcoding random kernel address > should make all red warning lights go off. > > Joerg >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150927/a7e8e49e/attachment.html>
Joerg Sonnenberger via llvm-dev
2015-Sep-28 00:49 UTC
[llvm-dev] Error compiling libc++ for ARMv6
On Sun, Sep 27, 2015 at 05:07:17PM -0700, JF Bastien wrote:> It's part of the stable Linux ABI for ARM. Yes there are non-Linux OSes, > and I wasn't suggesting one emit these calls for non-Linux. > > Please clarify the red warning lights. FWIW these functions were used by > Chrome on ARM until very recently, specifically for the sake of older ARM > CPUs.I know. It is painful to find such code, especially since most instances never checked for Linux in first place. I'm waiting for a case where using libgcc calls doesn't work. Joerg