Add read/write mode to ElfFile
authorPeter Griess <pgriess@fb.com>
Mon, 25 Mar 2013 16:31:49 +0000 (09:31 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Wed, 27 Mar 2013 21:41:05 +0000 (14:41 -0700)
commit37107ac7392880d73f45068a4f2b8c9f8f2fa157
tree6ee7f9201077cf079c84d4d89c12e40e2c32ea49
parentae95c1d54ad1c3da2954673e2eb1ac24ad9d2320
Add read/write mode to ElfFile

Summary:
- Add a mode to ElfFile that allows opening the file for read/write
access via PROT_WRITE.

Test Plan:
- Used it in some other code

Reviewed By: simpkins@fb.com

FB internal diff: D740184
folly/experimental/symbolizer/Elf.cpp
folly/experimental/symbolizer/Elf.h