Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to make vtable read only

807575Jun 11 2008 — edited Jun 13 2008
Hi ,

I have a problem where our tests are panicing due to a corrupted
vtable. The corresponding object is always the same and the corruption
pattern is also the same. It is not reproducible on demand and the
complexity of the code makes it difficult to debug using usual methods.

I was wondering if there was someway to force the vtable of the
offending object to be readonly and thus catch the culprit in the
act. Some investigation makes me think it won't be as easy as
editing the elf section and moving the whole vtbl into .rodata. The
vtbl has to be written to once (?).

Is there any way this can be accomplished with compiler/linker flags
or directives?

cheers
Binu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2008
Added on Jun 11 2008
2 comments
293 views