objtool: Use target file endianness instead of a compiled constant
[linux-block.git] / tools / objtool / check.c
index 8427af808221bce50c8d7b85a811408057e81534..ad5dab175701498965323dde14acc6dcad9324e4 100644 (file)
@@ -2100,7 +2100,7 @@ static int read_unwind_hints(struct objtool_file *file)
                        return -1;
                }
 
-               cfi.cfa.offset = bswap_if_needed(hint->sp_offset);
+               cfi.cfa.offset = bswap_if_needed(file->elf, hint->sp_offset);
                cfi.type = hint->type;
                cfi.end = hint->end;