assert s.getImpl().isLoadable() == es.getFlags().contains(ELFSectionFlag.ALLOC); ent.flags = ObjectFile.flagSetAsLong(es.getFlags()); ent.fileOffset = (int) alreadyDecided.get(es).getDecidedValue(LayoutDecision.Kind.OFFSET);
objectFile.createUndefinedSymbol(data.symbolName, 0, true); ProgbitsSectionImpl baseSectionImpl = (ProgbitsSectionImpl) rwDataSection.getImpl(); int offsetInSection = Math.toIntExact(RWDATA_CGLOBALS_PARTITION_OFFSET + dataInfo.getOffset()); baseSectionImpl.markRelocationSite(offsetInSection, wordSize, RelocationKind.DIRECT, data.symbolName, false, 0L);