Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 14 Oct 2011 14:11:52 -0700
From: Isaac Dunham <>
Subject: Re: [PATCH] properly terminate linked link of dsos

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.

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.