Skip to content

BlobBuilder.Align(int) seems not working on mono #97172

Open
@buyaa-n

Description

@buyaa-n

A Field RVA alignment test is failing on mono legs in this PR

That verifies the code section:

_metadataBuilder.AddFieldRelativeVirtualAddress(handle, fieldDataBuilder.Count);
fieldDataBuilder.WriteBytes(field._rvaData!);
fieldDataBuilder.Align(ManagedPEBuilder.MappedFieldDataAlignment);

Not sure if it is bug or expected, I don't see mono specific code in MetadataBuilder nor in BlobBuilder.Align(int)

public void Align(int alignment)
{
int position = Count;
WriteBytes(0, BitArithmetic.Align(position, alignment) - position);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Reflectionneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationruntime-monospecific to the Mono runtime

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions