Ticket #53140: cctools-895-OFILE_LLVM_BITCODE.patch

File cctools-895-OFILE_LLVM_BITCODE.patch, 729 bytes (added by ballapete (Peter "Pete" Dyballa), 7 years ago)
  • misc/strings.

    old new  
    335335         * If the ofile is not an object file then process it without reguard
    336336         * to sections.
    337337         */
    338         if(ofile->object_addr == NULL || ofile->member_type == OFILE_LLVM_BITCODE){
    339             if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype != 0){
     338        if(ofile->object_addr == NULL
     339#ifdef LTO_SUPPORT
     340           || ofile->member_type == OFILE_LLVM_BITCODE){
     341#else
     342          ){
     343#endif /* LTO_SUPPORT */
     344          if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype != 0){
    340345                if(ofile->fat_header->magic == FAT_MAGIC_64){
    341346                    addr = ofile->file_addr +
    342347                           ofile->fat_archs64[ofile->narch].offset;