Lines Matching defs:coff_symbol
372 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
374 coff_section->Symbol = coff_symbol;
375 coff_symbol->Section = coff_section;
376 coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_STATIC;
379 coff_symbol->Aux.resize(1);
380 memset(&coff_symbol->Aux[0], 0, sizeof(coff_symbol->Aux[0]));
381 coff_symbol->Aux[0].AuxType = ATSectionDefinition;
382 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
416 COFFSymbol *coff_symbol = GetOrCreateCOFFSymbol(&Symbol);
418 coff_symbol->Data.Type = (SymbolData.getFlags() & 0x0000FFFF) >> 0;
419 coff_symbol->Data.StorageClass = (SymbolData.getFlags() & 0x00FF0000) >> 16;
422 coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL;
425 coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL;
431 coff_symbol->Other = GetOrCreateCOFFSymbol(&Symbol);
441 coff_symbol->Other = WeakDefault;
445 coff_symbol->Aux.resize(1);
446 memset(&coff_symbol->Aux[0], 0, sizeof(coff_symbol->Aux[0]));
447 coff_symbol->Aux[0].AuxType = ATWeakExternal;
448 coff_symbol->Aux[0].Aux.WeakExternal.TagIndex = 0;
449 coff_symbol->Aux[0].Aux.WeakExternal.Characteristics =
454 if (coff_symbol->Data.StorageClass == 0) {
457 coff_symbol->Data.StorageClass =
462 coff_symbol->Section =
466 coff_symbol->MCData = &SymbolData;
467 SymbolMap[&Symbol] = coff_symbol;
650 COFFSymbol *coff_symbol = SymbolMap[&A_SD.getSymbol()];
682 if (coff_symbol->MCData->getSymbol().isTemporary() || CrossSection) {
683 Reloc.Symb = coff_symbol->Section->Symbol;
684 FixedValue += Layout.getFragmentOffset(coff_symbol->MCData->Fragment)
685 + coff_symbol->MCData->getOffset();
687 Reloc.Symb = coff_symbol;
726 COFFSymbol *coff_symbol = *i;
727 MCSymbolData const *SymbolData = coff_symbol->MCData;
731 assert(coff_symbol->Section != NULL);
733 coff_symbol->Data.SectionNumber = coff_symbol->Section->Number;
734 coff_symbol->Data.Value = Layout.getFragmentOffset(SymbolData->Fragment)
738 if (coff_symbol->should_keep()) {
739 MakeSymbolReal(*coff_symbol, Header.NumberOfSymbols++);
742 coff_symbol->Data.NumberOfAuxSymbols = coff_symbol->Aux.size();
743 Header.NumberOfSymbols += coff_symbol->Data.NumberOfAuxSymbols;
745 coff_symbol->Index = -1;
750 COFFSymbol *coff_symbol = *i;
751 if (coff_symbol->Other != NULL) {
752 assert(coff_symbol->Index != -1);
753 assert(coff_symbol->Aux.size() == 1 &&
755 assert(coff_symbol->Aux[0].AuxType == ATWeakExternal &&
757 coff_symbol->Aux[0].Aux.WeakExternal.TagIndex = coff_symbol->Other->Index;