mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-15 18:06:08 +00:00

This re-lands r333797 with a fix for big endian systems. Original commit message: This isn't encountered anywhere inside LLVM, so I wrote a test case to expose the issue and verify that it is fixed. The basic problem is that the macho_load_command union contains all load comamnd structs. Load command structs in 32-bit macho files can be 32-bit aligned instead of 64-bit aligned. There are some strange circumstances in which this can be exposed in a 64-bit macho if the load commands are invalid or if a 32-bit aligned load command is used. In the past we've worked around this type of problem with changes like r264232. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333854 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
138 B
CMake
11 lines
138 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
BinaryFormat
|
|
)
|
|
|
|
add_llvm_unittest(BinaryFormatTests
|
|
DwarfTest.cpp
|
|
MachOTest.cpp
|
|
TestFileMagic.cpp
|
|
)
|
|
|