Skip to content
Snippets Groups Projects
  1. Dec 20, 2016
  2. Oct 06, 2016
    • Tobias Klauser's avatar
      elfio_note: fix MSVC compiler warning · 446e0c21
      Tobias Klauser authored
      Fix the following MSVC compiler warning:
      
      elfio/elfio_note.hpp(77): warning C4267: 'initializing' : conversion from 'size_t' to 'ELFIO::Elf_Word', possible loss of data
      
      by changing the type of max_name_sizei to Elf_Xword, as
      note_secton->get_size() returns Elf_Xword and note_start_positions also
      contains members of type Elf_Xword.
      446e0c21
  3. Sep 22, 2016
    • Tobias Klauser's avatar
      elfio: don't cast away const qualifiers · af4140a1
      Tobias Klauser authored
      Don't cast away const qualifiers when accessing const data (e.g. section
      data). This fixes the warnings such as the following when compiling with
      GCC and the -Wcast-qual flag set:
      
      warning: cast from type ‘const char*’ to type ‘ELFIO::Elf_Word* {aka unsigned int*}’ casts away qualifiers [-Wcast-qual]
      af4140a1
  4. Sep 18, 2016
  5. Jul 10, 2016
  6. Jul 02, 2016
    • Kevin Klues's avatar
      Fixed off-by-one error in 'name' of add_note() function. · e3e0d6db
      Kevin Klues authored
      Previously, when assigning 'name' as a string, it's length was specified
      using the full length of 'namesz'. However, this length includes the
      trailing '\0' of the underlying char[]. This ultimately causes the C++
      string that is created to (incorrectly) contain the '\0' character as
      well. This leads to problems where e.g. the following will return false,
      even when 'name' itself actually contains the string "GNU\0":
      
        if (name == "GNU") {
          return true;
        }
        return false;
      
      To fix this, we should only include the length of the string minus the
      trailing '\0'.
      e3e0d6db
  7. Apr 23, 2016
  8. Sep 26, 2015
  9. Aug 22, 2015
  10. Apr 30, 2015
  11. Mar 18, 2015
  12. Feb 24, 2015
  13. Feb 21, 2015
  14. Feb 13, 2015
  15. Jan 19, 2015
  16. Dec 03, 2014
  17. Nov 22, 2014
  18. Nov 15, 2014
  19. Nov 14, 2014
    • Mario Werner's avatar
      755b92c5
    • Mario Werner's avatar
      separated layout generation and saving · c743d0bf
      Mario Werner authored
      Many example elfs (hello_32, hello_64, asm ...) require that the
      first section directly follows the program header table. The
      section header is then placed between segments or at the end.
      
      This change prepares the late placement of section header table.
      c743d0bf
    • Mario Werner's avatar
      changed order in which the sections are emitted · 55c2841e
      Mario Werner authored
      The fact that segments can contain header information as well as
      sections requires that sections within segments are emitted first.
      55c2841e
    • Mario Werner's avatar
      rewrote the segment save logic to not only care about alignment · 0ece76b5
      Mario Werner authored
      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.
      0ece76b5
Loading