lifting-bits / remill

Library for lifting machine code to LLVM bitcode
Apache License 2.0
1.31k stars 144 forks source link

Fix GCC compilation #672

Closed ekilmer closed 1 year ago

ekilmer commented 1 year ago

Fixes a few errors reported by GCC and not Clang

  1. "non-trivial designated initializers not supported"

    • Fixed by reordering array initialization to be in order.
  2. "Cannot bind packed field"

    • Use a pointer instead of a reference. This isn't the greatest fix because it is basically the same thing, but seems to be checked less strictly with GCC. I think a real fix would be to remove the 'packed' annotations.

TODO: