0

I would like to modify the RVA of a method using Mono.Cecil. I noticed a similar question asked back in 2007 but is this doable in 0.95?

For eg: methodA.RVA = 0x1234;

I understand Mono.Cecil compute and write RVA during compilation but are there anyways to go about modifying the RVA? It can be done using CFF explorer though.

Thank You.

Ron
  • 67
  • 1
  • 6

1 Answers1

0

No this is not possible: that's simply not the goal of Mono.Cecil.

Cecil let you read, modify and write the managed code and metadata, but when it comes to the PE file organization, that's considered an implementation detail.

Jb Evain
  • 17,319
  • 2
  • 67
  • 67
  • Thank you for reply. it's not for malicious purposes though. – Ron Nov 09 '12 at 01:28
  • Is it possible to get a method's metadata offset using mono.cecil? I understand that i may have to go through the PE/net headers but would like to ask if mono.cecil can retrieve them. (just like IL instruction offset). Thanks – Ron Nov 09 '12 at 01:45