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);
417 SymbolMap[&Symbol] = coff_symbol;
420 coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL;
429 coff_symbol->Other = GetOrCreateCOFFSymbol(&SymRef->getSymbol());
439 coff_symbol->Other = WeakDefault;
443 coff_symbol->Aux.resize(1);
444 memset(&coff_symbol->Aux[0], 0, sizeof(coff_symbol->Aux[0]));
445 coff_symbol->Aux[0].AuxType = ATWeakExternal;
446 coff_symbol->Aux[0].Aux.WeakExternal.TagIndex = 0;
447 coff_symbol->Aux[0].Aux.WeakExternal.Characteristics =
450 coff_symbol->MCData = &SymbolData;
455 coff_symbol->Data.Type = (ResSymData.getFlags() & 0x0000FFFF) >> 0;
456 coff_symbol->Data.StorageClass = (ResSymData.getFlags() & 0x00FF0000) >> 16;
459 if (coff_symbol->Data.StorageClass == 0) {
462 coff_symbol->Data.StorageClass =
467 coff_symbol->Section =
470 coff_symbol->MCData = &ResSymData;
656 COFFSymbol *coff_symbol = SymbolMap[&A_SD.getSymbol()];
688 if (coff_symbol->MCData->getSymbol().isTemporary() || CrossSection) {
689 Reloc.Symb = coff_symbol->Section->Symbol;
690 FixedValue += Layout.getFragmentOffset(coff_symbol->MCData->Fragment)
691 + coff_symbol->MCData->getOffset();
693 Reloc.Symb = coff_symbol;
730 COFFSymbol *coff_symbol = *i;
731 MCSymbolData const *SymbolData = coff_symbol->MCData;
735 assert(coff_symbol->Section != NULL);
737 coff_symbol->Data.SectionNumber = coff_symbol->Section->Number;
738 coff_symbol->Data.Value = Layout.getFragmentOffset(SymbolData->Fragment)
742 if (coff_symbol->should_keep()) {
743 MakeSymbolReal(*coff_symbol, Header.NumberOfSymbols++);
746 coff_symbol->Data.NumberOfAuxSymbols = coff_symbol->Aux.size();
747 Header.NumberOfSymbols += coff_symbol->Data.NumberOfAuxSymbols;
749 coff_symbol->Index = -1;
754 COFFSymbol *coff_symbol = *i;
755 if (coff_symbol->Other != NULL) {
756 assert(coff_symbol->Index != -1);
757 assert(coff_symbol->Aux.size() == 1 &&
759 assert(coff_symbol->Aux[0].AuxType == ATWeakExternal &&
761 coff_symbol->Aux[0].Aux.WeakExternal.TagIndex = coff_symbol->Other->Index;