Index: ELF/Relocations.cpp =================================================================== --- ELF/Relocations.cpp +++ ELF/Relocations.cpp @@ -535,8 +535,9 @@ continue; // Skip a relocation that points to a dead piece - // in a mergeable section. - if (C.getOffset(RI.r_offset) == (uintX_t)-1) + // in an .eh_frame section. + if (isa>(&C) && + C.getOffset(RI.r_offset) == (uintX_t)-1) continue; // This relocation does not require got entry, but it is relative to got and