Skip to content

Commit 9b29513

Browse files
SetByteOrder(eByteOrderBig)
1 parent 16d6044 commit 9b29513

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,9 @@ bool ObjectFileXCOFF::MagicBytesMatch(DataBufferSP &data_sp,
130130
lldb::addr_t data_length) {
131131
lldb_private::DataExtractor data;
132132
data.SetData(data_sp, data_offset, data_length);
133+
data.SetByteOrder(eByteOrderBig);
133134
lldb::offset_t offset = 0;
134135
uint16_t magic = data.GetU16(&offset);
135-
if (magic == 0xF701)
136-
magic = 0x01F7; /* Since AIX is big endian, and the host checking platform
137-
might be little endian. */
138136
return XCOFFHeaderSizeFromMagic(magic) != 0;
139137
}
140138

0 commit comments

Comments
 (0)