38 Commits

Author SHA1 Message Date
Serge Lamikhov-Center
73a241079a Refactor the last commit 2023-08-28 19:35:05 +03:00
Serge Lamikhov-Center
089160c40e Use more portable function memchr()
Use more portable memchr() function instead of strnlen() which is not in ISO standard
2023-08-28 18:43:47 +03:00
Serge Lamikhov-Center
8ae6cec5d6 C++17 refactoring 2023-06-02 17:37:37 +03:00
Serge Lamikhov-Center
259da37f3a Remove dispersed 'noexcept' specifier 2022-11-24 15:56:37 +02:00
Serge Lamikhov-Center
4320ea915e 'noexept' added to upper level API members 2022-11-12 17:00:08 +02:00
Serge Lamikhov-Center
705a91c568 Use const referencies in set_xxx arguments 2022-11-10 22:37:55 +02:00
Serge Lamikhov-Center
755f81351f Generilize the section compression calls 2022-11-10 19:26:05 +02:00
Nathan Strong
7608269069 Externalize zlib dependency
== DETAILS

- define an interface/abstract class for zlib implementation
- update the code to reference the implementation, remove zlib dependency
- use constructor injection to provide implementations to elfio
- add a test to validate the injected object gets used properly
`
2022-11-04 18:12:15 +02:00
Serge Lamikhov-Center
b57b08409b More refactoring reported by SonarLint 2022-09-16 20:47:27 +03:00
Serge Lamikhov-Center
dd425d83c6 Modernize more files 2022-09-01 18:50:02 +03:00
Serge Lamikhov-Center
090444309f Address casting on MSVC++ 2022-02-11 09:20:38 +02:00
Serge Lamikhov-Center
056846723a Change order and meaning of address_translation structure 2021-09-21 00:31:47 +03:00
Serge Lamikhov-Center
53d3bb407c Rename 'end' field of address translation to 'size' 2021-09-20 20:44:19 +03:00
Serge Lamikhov-Center
dad4b434c8 Use a different notation for the address translation 2021-09-20 00:03:21 +03:00
Serge Lamikhov-Center
6da283b3f4 Remove debug output 2021-09-19 23:49:27 +03:00
Serge Lamikhov-Center
511086598a Implement address translation for segments 2021-09-19 23:26:58 +03:00
Serge Lamikhov-Center
b527ea992a An attempt to implement memory translation for sections 2021-09-19 11:28:35 +03:00
Serge Lamikhov-Center
0a15ec0aea Header dump shows correct values 2021-09-19 11:28:26 +03:00
Serge Lamikhov-Center
33089a021a Make 'explicit' constructor 2021-09-14 18:35:54 +03:00
Serge Lamikhov-Center
35eb9cfa6d modernize-use-auto 2021-08-26 13:08:15 +03:00
Serge Lamikhov-Center
da4f857e07 modernize-use-override 2021-08-26 12:57:31 +03:00
Serge Lamikhov-Center
ef262285dc Add support for GNU hash lookup algorithm 2021-07-27 16:30:41 +03:00
Serge Lamikhov-Center
7409369fc0 Change the data segment alignment for newer Linux kernels 2021-03-29 01:22:43 +03:00
Serge Lamikhov-Center
a01d7285cf Generated by newer automake tools 2021-03-28 10:16:39 +03:00
Serge Lamikhov-Center
becd79d05c Support stringstream by filling gaps in output stream 2021-03-27 21:14:56 +03:00
Serge Lamikhov-Center
762c59a2bb Change copyright period 2021-01-19 09:43:01 +02:00
Martin Bickel
3e55690e6d Added new check for section/progHeader consistency 2021-01-07 12:43:21 +02:00
Serge Lamikhov-Center
4c0153d752 C language interoperability example added 2020-10-10 00:31:35 +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
c6e5eb0aad Update Copyright period 2020-08-19 13:47:20 -07: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
Serge Lamikhov-Center
2ced96026d Remove 'mutable' specification in 'section' class 2013-03-21 02:13:50 +02:00
Serge Lamikhov-Center
b217a8a993 Remove extra ";" to prevent warnings at compilation with GCC -pedantic option 2013-01-30 01:05:32 +02:00
Serge Lamikhov-Center
b78c0aca3d Convert all files to UNIX EOL 2012-11-27 11:45:28 +02:00
Serge Lamikhov-Center
d3a0732983 Use <elfio/> prefix for \#include files 2012-11-25 14:37:09 +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