|
Message-ID: <20111014141152.0cb08bee@newbook> Date: Fri, 14 Oct 2011 14:11:52 -0700 From: Isaac Dunham <idunham@...abit.com> To: musl@...ts.openwall.com Subject: Re: [PATCH] properly terminate linked link of dsos On Thu, 13 Oct 2011 21:03:17 -0400 Rich Felker <dalias@...ifal.cx> 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.