Debugging rtld

Tim Kientzle kientzle at freebsd.org
Sat May 17 14:40:42 UTC 2008


>>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


More information about the freebsd-hackers mailing list