radeon/llvm: Fix segfault with a specifc libelf implementation 88/6188/1
authorTom Stellard <thomas.stellard@amd.com>
Tue, 23 Apr 2013 15:08:30 +0000 (08:08 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 24 Apr 2013 23:51:25 +0000 (16:51 -0700)
commitd9a32b84e38fda935032338a0a4ae9438d48108d
treee780677a459ee958b2604861fa1e71bbcb27ddaf
parent5bbeae7a3d3be17d44b1bc851872a107a75c393b
radeon/llvm: Fix segfault with a specifc libelf implementation

The libelf implementation that is distributed here:
http://www.mr511.de/software/english.html
requires calling elf_version() prior to calling elf_memory()

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.cpp