"ls" doesn't like a Glibc compiled with -fomit-frame-pointer

Greg Schafer gschafer at zip.com.au
Tue Oct 1 00:28:51 PDT 2002


On Mon, Sep 30, 2002 at 06:19:33PM -0600, Gerard Beekmans wrote:
> Hey guys,
> 
> I've recompiled Glibc a couple of times and I've found out that when 
> -fomit-frame-pointer is used "ls" (dynamic linked version from chapter 6) 
> quits with a segmentation fault. It this worth trying to trace and maybe fix 
> up? 

ls links against libpthread. The glibc threading code does some funky stuff with
registers (did you use --enable-kernel=xxx ?). Dunno for sure, but my gut feeling
is that -fomit-frame-pointer is a bad idea with glibc.

When trying out stuff like this with glibc, "make check" is your friend.

Greg
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list