173 Commits

Author SHA1 Message Date
Serge Lamikhov-Center
f591a3b74e Add explicit declaration of move constructor and move assignment 2021-03-30 00:59:06 +03:00
Serge Lamikhov-Center
29114f6538 Explicetly delete the copy constructor and assignment operator 2021-03-29 21:17:57 +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
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
7e9c0a4675 In spite of the previous commit, clang-formatter inserts multi-line comments.
This is an attempt to avoid this
2021-01-19 09:37:18 +02:00
Kevin Stefanik
8ab497c57b Removing backslashes from AMDGPU comments so as not to trigger compiler warnings. 2021-01-19 08:41:42 +02:00
Serge Lamikhov-Center
eaae4e1e13 Fix endianness conversion for array acceessor 2021-01-13 11:18:23 +02:00
Serge Lamikhov-Center
8037e5a42a Add 'validate' function to C language wrapper 2021-01-08 00:11:20 +02:00
Martin Bickel
3e55690e6d Added new check for section/progHeader consistency 2021-01-07 12:43:21 +02:00
Serge Lamikhov-Center
def3653abc Increase version number to 3.9 2020-12-22 14:30:16 +02:00
Serge Lamikhov-Center
22ff134363 Address array section accessor added
The accessor is useful for manipulation of such sections as .ctors,
.dtors, .init_array and .fini_array
2020-12-22 14:10:16 +02:00
Serge Lamikhov-Center
0368a08624 Add more machine codes 2020-12-21 10:57:32 +02:00
Serge Lamikhov-Center
a8831c5d74 Address warnings reported by MS VS analyzer 2020-10-30 18:06:26 +02:00
Serge Lamikhov-Center
3c434f7587 Address warnings reported by MS VS 2020-10-30 17:54:13 +02:00
Serge Lamikhov-Center
f02366804f More apropriate way to avoid macro extraction 2020-10-17 23:57:58 +03:00
Serge Lamikhov-Center
0826f15d0b Use funny syntax to prevent min() macro in MSVS 2020-10-17 22:51:53 +03:00
Serge Lamikhov-Center
49c2de32ec In dynamic section count entries until DT_NULL; Add const for modinfo params 2020-10-16 01:29:26 +03:00
Serge Lamikhov-Center
49c676ad06 Remove unused var; Use std::swap() 2020-10-10 08:51:11 +03:00
Serge Lamikhov-Center
4c0153d752 C language interoperability example added 2020-10-10 00:31:35 +03:00
Serge Lamikhov-Center
937978973f Remove usage of try/catch blocks 2020-08-28 22:38:40 -07:00
Serge Lamikhov-Center
e18e5bc261 Use a header for version information 2020-08-24 10:24:09 -07:00
Serge Lamikhov-Center
c92b6f3fb5 Fix a VS warning 2020-08-23 11:22:34 +03:00
Serge Lamikhov-Center
e00bf98230 Add modinfo to VS project 2020-08-23 09:57:21 +03:00
Serge Lamikhov-Center
761d70da2c Add dump function for .modinfo section 2020-08-22 23:10:11 -07:00
Serge Lamikhov-Center
b4c245f5a8 Add .modinfo section accessor 2020-08-22 15:11:58 -07: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
fe17eb40aa Implement swap_symbols() for relocation section.
The function can be used as a callback for arrange_local_symbols()
2020-08-19 22:44:58 -07:00
Serge Lamikhov-Center
d255a35259 Address warnings reported by VS 2020-08-19 23:58:07 +03:00
Serge Lamikhov-Center
c6e5eb0aad Update Copyright period 2020-08-19 13:47:20 -07:00
Serge Lamikhov-Center
6d3d5467a2 Permit substitution of relocation entry by using set_entry() function call 2020-08-19 13:39:15 -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
d2c3fb6a14 Refactoring - remove unnecessary check 2020-08-15 18:56:13 +03:00
Serge Lamikhov-Center
8d79cc0929 Add function source delimiters 2020-08-15 18:33:50 +03:00
Serge Lamikhov-Center
a59cbf6674 Alighn code with whitespaces 2020-08-08 09:55:42 -07:00
Serge Lamikhov-Center
5f904722f6 New machine numbers added 2020-08-08 08:23:25 -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
a735f412ec Remove unused header 2020-06-10 08:01:20 -07:00
Serge Lamikhov-Center
9cf8821c03 Prevents seg fault described in #42 2020-06-10 06:53:29 -07:00
Serge Lamikhov-Center
b56b93de1b Remove implementation functions from section interface 2020-06-09 23:46:41 -07:00
Pierre Bélissent
6e237576f0 Issue serge1/ELFIO#19: Test case to reproduce, and correction 2020-06-06 22:26:12 +03:00
Serge Lamikhov-Center
453929342f Don't access a note entry in case namesz is less than 1 2020-05-29 05:26:43 -07:00
Serge Lamikhov-Center
a935b5472e The counter type for 'symbol_tables' has been changed to Elf_Xword 2020-05-29 13:54:28 +03:00
Serge Lamikhov-Center
64626605ed Remove tab characters 2020-02-22 18:22:23 +02:00
Serge Lamikhov-Center
3e4a2fabfd Add tests for the new flavor of get_symbol() 2020-02-22 11:31:27 +02:00