From owner-freebsd-hackers@FreeBSD.ORG Sat May 17 14:40:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C9801065671 for ; Sat, 17 May 2008 14:40:42 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 687188FC1D for ; Sat, 17 May 2008 14:40:42 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.128] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id m4HEebtv043201; Sat, 17 May 2008 07:40:37 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <482EEE65.8070009@freebsd.org> Date: Sat, 17 May 2008 07:40:37 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kostik Belousov References: <20080517091740.GI70896@obiwan.tataz.chchile.org> <20080517102653.GI18958@deviant.kiev.zoral.com.ua> In-Reply-To: <20080517102653.GI18958@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Jeremie Le Hen Subject: Re: Debugging rtld X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 14:40:42 -0000 >>I tried to compile my source tree with -fstack-protector-all, and it >>happens that rtld breaks with this ... > > I usually add the CFLAGS+=-g to the rtld-elf/Makefile. Also, you do not > need to bring down the whole host by the broken ld.so.1. Do not install > it at all, and specify the path to the rtld by the --dynamic-linker switch, > see into ld. If you do (accidentally?) break ld.so.1, remember that /rescue is all statically linked and should still work. Single-user boot to /rescue/sh is your friend. Cheers, Tim Kientzle