Commit Graph

17 Commits

Author SHA1 Message Date
Mario Werner
fe0c85995d add 4 byte alignment for the section table
this is probably not required but definitely does not hurt
2014-12-03 09:24:21 +01:00
Mario Werner
755b92c580 move the section table to the end of the elf file 2014-11-14 13:40:25 +01:00
Mario Werner
55c2841e47 changed order in which the sections are emitted
The fact that segments can contain header information as well as
sections requires that sections within segments are emitted first.
2014-11-14 10:37:50 +01:00
Mario Werner
0ece76b5eb rewrote the segment save logic to not only care about alignment
The initial implementation only made sure that all sections and segments
are properly aligned. This is enough for simple embedded applications
but can not deal with more complex layouts.

The new implementation should be more generic given that it respects the
virtual addresses of the individual sections.

One thing which is currently not supported by this rewrite are segments
which contain the program/segment header or even the whole elf header.
2014-11-14 08:27:36 +01:00
Mario Werner
39b67828a2 removed generated elf and object files from the repository 2014-11-13 18:19:56 +01:00
Serge Lamikhov-Center
b227bf1482 Add a test that verifies ARM executable which was generated by CLang and LLVM
Signed-off-by: Serge Lamikhov-Center <to_serge@users.sourceforge.net>
2014-02-27 19:42:57 +02:00
Mario Werner
c95b3395cb add an elf file before and after saving
( requested under https://github.com/serge1/ELFIO/pull/1 )
2014-02-26 18:58:43 +02:00
Serge Lamikhov-Center
33dcaf063f Use [i|o]stream instead of [i|o]fstream; The patch was provided by Jason Hiser
Test's fixes
2014-02-26 18:02:30 +02:00
Serge Lamikhov-Center
ed600e64f3 Ticket #10: Fix section type SHT_NOBITS file_size calculation 2013-05-16 17:58:09 +03:00
Serge Lamikhov-Center
ed6a40ada1 Proper calculate size difference between file_size/memory_size in case of section type SHT_NOBITS 2013-04-21 16:54:07 +03:00
Serge Lamikhov-Center
415b3d9766 Test result change in relation to "Ticket #9: Segment offset written in wrong endianess." 2013-04-20 02:42:07 +03:00
Serge Lamikhov-Center
4b7061dc92 Dynamic section accessor is implemented
Fix segment header position when no segments are present
Dumper - dynamic section output added
Dynamic section reader tests are added

Signed-off-by: Serge Lamikhov-Center <to_serge@users.sourceforge.net>
2013-01-13 04:29:43 +02:00
Serge Lamikhov-Center
06f39c90c2 Add ARM ELF files examples 2012-12-03 06:46:05 +02:00
Serge Lamikhov-Center
b78c0aca3d Convert all files to UNIX EOL 2012-11-27 11:45:28 +02:00
Serge Lamikhov-Center
4d165a6d42 Convert to UNIX EOL 2012-11-26 23:48:22 +02:00
Serge Lamikhov-Center
0791d33e5b - .note section is produced by write_exe_i386 test of ELFIOTest1.cpp
- include files are added to the test project
2012-07-01 21:12:56 +03:00
Serge Lamikhov-Center
493549e030 Initial 2012-02-18 12:01:36 +02:00