Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 08:23:55 -0800
From:      John Baldwin <jhb@FreeBSD.org>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>, Marcin Wojtas <mw@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: b014e0f15bc7 - main - Enable ASLR by default for 64-bit executables
Message-ID:  <30da11f2-d34b-d12e-836a-bf53949ed499@FreeBSD.org>
In-Reply-To: <20211124144112.GF77338@zxy.spb.ru>
References:  <202111162226.1AGMQg00099240@gitrepo.freebsd.org> <20211124144112.GF77338@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/24/21 6:41 AM, Slawa Olhovchenkov wrote:
> On Tue, Nov 16, 2021 at 10:26:42PM +0000, Marcin Wojtas wrote:
> 
>>
>>      Enable ASLR by default for 64-bit executables
>>      
> 
> Now any core dumps will be useless?

I believe core dumps should be fine.  We include the ELF auxv values in core
dumps as a NT_PROCSTAT_AUXV note that GDB (and I presume LLDB) both look at
to determine the location of the main executable (AT_BASE).  Once the dynamic
section of the main executable is found, DT_DEBUG is used to find the linked
list of shared libraries (including rtld itself) just as with PDEs.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30da11f2-d34b-d12e-836a-bf53949ed499>