Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 14 Oct 2011 18:53:34 -0400
From: Rich Felker <>
Subject: Re: [PATCH] properly terminate linked link of dsos

On Fri, Oct 14, 2011 at 02:11:52PM -0700, Isaac Dunham wrote:
> On Thu, 13 Oct 2011 21:03:17 -0400
> Rich Felker <> wrote:
> > But I think the problem is much deeper. This "optimization" is
> > necessarily based on the compiler making an assumption about what the
> > function named "malloc" does. Compiling the implementation (libc)
> > itself requires disabling such assumptions; with gcc, this is achieved
> > with -ffreestanding (-fno-builtin will also work). Can you use the
> > same or similar option with clang?
> Per the manpage, -ffreestanding and -fno-builtin will work with clang.
> -ffreestanding is probably the proper choice, since a new libc is a
> freestanding environment.

Indeed, but it sounds like this is not fixing the problem. :(
Can you confirm that calloc.c is compiled properly when -ffreestanding
is used?


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.