Commit Graph

27 Commits

Author SHA1 Message Date
Serge Lamikhov-Center
35eb9cfa6d modernize-use-auto 2021-08-26 13:08:15 +03:00
Serge Lamikhov-Center
4a84319bb8 modernize-use-nullptr 2021-08-26 12:52:23 +03:00
Serge Lamikhov-Center
ef262285dc Add support for GNU hash lookup algorithm 2021-07-27 16:30:41 +03:00
Serge Lamikhov-Center
46b1e22414 Add section type verification for hash section 2021-07-23 16:58:06 +03:00
Serge Lamikhov-Center
57e614a486 Remove postfix underscore in parameter names 2021-02-05 10:40:18 +02:00
Serge Lamikhov-Center
762c59a2bb Change copyright period 2021-01-19 09:43:01 +02:00
Serge Lamikhov-Center
49c676ad06 Remove unused var; Use std::swap() 2020-10-10 08:51:11 +03:00
Serge Lamikhov-Center
9c739b49a0 Reformat sources by using clang-format
It is not perfect (and, probably, it is worser than it was before), but, it is automatic
2020-08-21 07:56:08 -07:00
Serge Lamikhov-Center
46acd5c16d Pass all used vars by reference 2020-08-21 00:55:28 -07:00
Serge Lamikhov-Center
aa4d2c5a74 Substitute memcpy() by std::copy() 2020-08-20 02:13:04 -07:00
Serge Lamikhov-Center
c6e5eb0aad Update Copyright period 2020-08-19 13:47:20 -07:00
Serge Lamikhov-Center
5a5ba2dc09 Add a callback to arrange_local_symbols() 2020-08-19 07:28:47 -07:00
Serge Lamikhov-Center
8e0b5754e4 arrange_local_symbols() added
ELF standard requires that all STB_LOCAL symbols will go prior others and sh_info entry will contain the number of the local symbols
2020-08-18 12:57:45 -07:00
Serge Lamikhov-Center
b1961db18b Fix compilation warnings in VS 2019 v16.7.0 2020-08-07 20:27:13 +03:00
Serge Lamikhov-Center
9cf8821c03 Prevents seg fault described in #42 2020-06-10 06:53:29 -07:00
Serge Lamikhov-Center
3e4a2fabfd Add tests for the new flavor of get_symbol() 2020-02-22 11:31:27 +02:00
Alfred Bratterud
d8e8a4cbb4 Added get_symbol by value and generic linear search 2020-02-15 23:10:01 +02:00
Vašek Potoček
972f89e022 Better support for read-only ELF access 2017-10-04 20:33:10 +03:00
Tobias Klauser
af4140a122 elfio: don't cast away const qualifiers
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]
2016-09-22 23:22:39 +03:00
Serge Lamikhov-Center
9e4502d90e Copyright year update 2015-02-13 20:51:07 +02:00
Semi Malinen
5000c533ba Add const 2014-10-30 14:47:14 +02:00
Semi Malinen
695a05dc5d Do not index past the end of the chain table 2014-10-30 14:29:33 +02: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
b78c0aca3d Convert all files to UNIX EOL 2012-11-27 11:45:28 +02:00
Serge Lamikhov-Center
b74f44443d 'add_entry' in symbol_section_accessor was renamed to 'add_symbol'
documentation update
<elfio.hpp> was modified to be <elfio/elfio.hpp>
2012-11-25 19:58:07 +02:00
Serge Lamikhov-Center
e1d554978d Trim trailing space and remove tabs 2012-06-24 09:02:32 +03:00
Serge Lamikhov-Center
493549e030 Initial 2012-02-18 12:01:36 +02:00