[LLVMdev] glibc 2.10 featuring new elf trick

Michel Schinz Michel.Schinz at gmail.com
Sun Apr 19 02:00:09 PDT 2009


"Nuno Lopes" <nunoplopes at sapo.pt> writes:

> Hi,

Hello,

> I just wanted to brought you attention to the glibc 2.10 changelog. Take a 
> special attention to the bottom (to the 'Automatic use of optimized 
> function' section). URL: http://udrepper.livejournal.com/20948.html
> This seems to be a nice way to make fat binaries.

IMO, fat binaries should go away and be replaced by LLVM bitcode, with
code generation performed by the OS at load time. This would have many
advantages: the compatibility with all current and future
architectures would be guaranteed, the code could be optimized at load
time to take advantage of specific features of the host (and even user
preferences), link-time optimization could happen with dynamic
libraries too, executable files would be smaller, assertions and other
debugging features could be turned on and off by the user, etc.

(But thanks for the pointer, nevertheless)

Michel.




More information about the llvm-dev mailing list