diff options
author | Chris Johns <chrisj@rtems.org> | 2012-12-15 23:30:46 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-12-15 23:30:46 +1100 |
commit | 35a26b0f97a2a4fa087f679ca4a982c90c24b1d9 (patch) | |
tree | 7637b60db878b3e8de41332846c651349388bfa9 /rld-rap.cpp | |
parent | 1ce126d3fef1a7ad6129997b1a8b492d5c286183 (diff) |
Const sections are not PROGBITS and ALLOC and not EXECINTR or WRITE.
Diffstat (limited to 'rld-rap.cpp')
-rw-r--r-- | rld-rap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rld-rap.cpp b/rld-rap.cpp index af3ca18..65df1ac 100644 --- a/rld-rap.cpp +++ b/rld-rap.cpp @@ -605,7 +605,8 @@ namespace rld obj.close (); obj.get_sections (text, SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR); - obj.get_sections (const_, SHT_PROGBITS, SHF_ALLOC | SHF_MERGE, SHF_WRITE | SHF_EXECINSTR); + obj.get_sections (const_, SHT_PROGBITS, SHF_ALLOC, SHF_WRITE | SHF_EXECINSTR); + obj.get_sections (ctor, ".ctors"); obj.get_sections (ctor, ".ctors"); obj.get_sections (dtor, ".dtors"); obj.get_sections (data, SHT_PROGBITS, SHF_ALLOC | SHF_WRITE); |