[Lldb-commits] [lldb] [lldb][AIX] Added XCOFF Object File Header for AIX (PR #111814)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 10 23:42:19 PST 2024


labath wrote:

> Hi @labath, So the error was due to the endianness difference between Linux and AIX. The previous failure with the new test case has gone now. I have dropped a fix so that AIX binary is recognised on little endian platforms as well, but if there is any better way to add this check, please do let me know. Thanks!

Are XCOFF files always big endian? If so, then all you need is to add  a `DataExtractor::SetByteOrder()`. If not (and you want to support both endiannesses), then it would be better to add both cases to `XCOFFHeaderSizeFromMagic`.

https://github.com/llvm/llvm-project/pull/111814


More information about the lldb-commits mailing list