[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] mincore is potentially unsafe on kernel's older th
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] mincore is potentially unsafe on kernel's older than 2.6.21 |
Date: |
Tue, 13 Jul 2010 17:56:23 -0700 |
On Tue, Jul 13, 2010 at 5:24 PM, Don Maghrak <address@hidden> wrote:
>
> Is there a way to have configure ensure that mincore is only
> used at linux 2.6.21 or later?
> For now we are undefining HAVE_MINCORE in our builds but that makes
> deployment on multiple systems difficult.
A runtime check is probably too expensive. A compile time check fails
if you compile on a new kernel and deploy on an old kernel.
The attached patch should allow you to turn off HAVE_MINCORE via a
configure time flag.
-Arun
enable-mincore.patch
Description: Text Data