Commit Graph

22 Commits

Author SHA1 Message Date
Serge Lamikhov-Center
41f4012d49 Just formatting 2024-06-15 10:58:36 +03:00
Serge Lamikhov-Center
a872f7cdde Add test that verifies that get_symbols_num() returns increased value after add_symbol() 2024-06-14 17:07:43 +03:00
Richard Chien
01f8fed8ad Change relocation type to unsigned 2022-05-21 22:55:03 +03:00
Serge Lamikhov-Center
068cb76a3f Most of the tests are passing 2022-02-11 23:15:39 +02:00
Serge Lamikhov-Center
ed2523f095 Adjust stream size when section data changes 2022-01-19 01:24:46 +02:00
Serge Lamikhov-Center
4dc38f0f34 modernize-use-using 2021-09-07 10:03:19 +03:00
Serge Lamikhov-Center
1f79600cec Refactoring 2021-08-16 23:19:47 +03:00
Serge Lamikhov-Center
0fac6ce45b Add a convinience function 'add_section()' to segment class
It is not clear why this hasn't been done initially
2021-04-08 17:03:05 +03:00
Serge Lamikhov-Center
762c59a2bb Change copyright period 2021-01-19 09:43:01 +02:00
Serge Lamikhov-Center
8037e5a42a Add 'validate' function to C language wrapper 2021-01-08 00:11:20 +02:00
Martin Bickel
00c1192ea2 Added testcase for offset/address mismatch detection 2021-01-07 12:43:21 +02:00
Serge Lamikhov-Center
8dccdf686c Add MIT license notice 2020-10-17 21:35:55 +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
655f864226 Remove previous implementation of the callback 2020-08-19 23:05:12 -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
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
cca512025b Add casting to align the types 2020-08-18 13:24:52 -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
de83f7dbbd Move ELF test files to 'tests' directory 2020-08-09 22:43:30 -07:00
Serge Lamikhov-Center
4f89bb0553 Rename tests directory 2020-08-09 22:23:41 -07:00