------- Comment #2 from danglin at gcc dot gnu dot org 2010-03-06 16:08 ------- libelf uses the system's <elf.h>, not libelf/elf_repl.h. The system headers don't provide the SPARC defines. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43276