Skip to content
  • Rui Ueyama's avatar
    Add an assert for NativeReferenceIvarsV1. · 2bafe735
    Rui Ueyama authored
    The maximum number of references the file with NativeReferenceIvarsV1 can
    contain is 65534. If a file larger than that is converted to Native format,
    the conversion will fail without any error message. This caused a subtle bug
    that the LLD would produce a broken executable only when input files contain
    too many references.
    
    This issue exists since the RoundTripNativeTest is introduced in r193585. Since
    then, it seems that nobody have linked any program having more than 65534
    relocations with the LLD. Otherwise we would have found it earlier.
    
    llvm-svn: 194987
    2bafe735
Loading