diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-19 10:37:37 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-19 10:37:37 +1100 |
commit | e2ceaecb55d053b3f0550c9b4b6bc9555201ef15 (patch) | |
tree | 06cd000f0036b34bea27b662561df49a64353bea /rld-files.cpp | |
parent | 238be1bd1a750af044a52bd4b5ae6a763e0f307d (diff) |
Add set_header support to the ELF files.
Diffstat (limited to 'rld-files.cpp')
-rw-r--r-- | rld-files.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rld-files.cpp b/rld-files.cpp index 6474b84..bb1b30b 100644 --- a/rld-files.cpp +++ b/rld-files.cpp @@ -878,12 +878,16 @@ namespace rld } void - object::open () + object::open (bool writable) { if (archive_) + { + if (writable) + throw rld_error_at ("object files in archives are not writable"); archive_->open (); + } else - image::open (); + image::open (writable); } void |