Skip to content

Commit a1c1112

Browse files
committed
[libc++][AIX] fix XCOFF magic in symcheck
There are some typos here in how XCOFF magic are defined, we intended the second two digits to be a hex value, but our syntax doesn't say that. Thus this will never match.
1 parent 085d0b0 commit a1c1112

File tree

1 file changed

+1
-1
lines changed
  • libcxx/utils/libcxx/sym_check

1 file changed

+1
-1
lines changed

libcxx/utils/libcxx/sym_check/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def is_xcoff_or_big_ar(filename):
9595
with open(filename, "rb") as f:
9696
magic_bytes = f.read(7)
9797
return (
98-
magic_bytes[:4] in [b"\x01DF", b"\x01F7"] # XCOFF32 # XCOFF64
98+
magic_bytes[:2] in [b"\x01\xDF", b"\x01\xF7"] # XCOFF32 # XCOFF64
9999
or magic_bytes == b"<bigaf>"
100100
)
101101

0 commit comments

Comments
 (0)