------- Comment #2 from bruck dot michael at googlemail dot com 2009-11-02 11:47 ------- (In reply to comment #1) > Works for me with both recent libelf and elfutils. The code didn't really > change recently, so what libelf do you have installed? >
libelf-0.8.12 I think I understand what is happening now. libelf's configure finds a valid elf.h in /usr/include that was installed by cygwin. The sys_elf.h switch mechnism is then configured to include that file from cygwin rather than the elf_repl.h provided by libelf. But cygwin's elf.h lacks the SHN_XINDEX macro. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902