Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2008 07:40:37 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: Debugging rtld
Message-ID:  <482EEE65.8070009@freebsd.org>
In-Reply-To: <20080517102653.GI18958@deviant.kiev.zoral.com.ua>
References:  <20080517091740.GI70896@obiwan.tataz.chchile.org> <20080517102653.GI18958@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
>>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482EEE65.8070009>