Commit Graph

73 Commits

Author SHA1 Message Date
4fab6ffd3a Unify error messages in elfpatch.c 2023-05-29 23:06:02 +02:00
0ee19eaea4 Fix typo in man page 2023-05-29 23:04:00 +02:00
26eb480343 Add colors to error output and improve messages 2023-01-21 17:32:32 +01:00
30e47d533a Fix #4: Add support for endianess in struct output format 2023-01-20 19:51:25 +01:00
faeab33375 Allow for ELF files without program headers e.g. unlinked object files. 2023-01-20 19:39:54 +01:00
7e414f8576 Enhance verbose output of section table
* Add more section types to prevent "unknown" from printing
* Add alloc, exec, and write flags of sections to output table
2023-01-20 19:38:10 +01:00
933680c80d Use builtin byteswap functions to perform endianess conversion 2023-01-20 19:37:10 +01:00
891df1803e Add byteswap and endian destection code to elfpatch 2023-01-20 19:36:30 +01:00
7be1d6a967 Automatically add version to man page 2023-01-15 21:38:13 +01:00
e8a8abbe65 Remove debugging printfs 2023-01-15 21:26:19 +01:00
71b1ad2a32 Allow generation of reversed CRCs in main function. Reversed CRCs are now supported. 2023-01-15 21:23:31 +01:00
cf7d0c22f7 Add support for reversed CRCs in elfpatching 2023-01-15 21:21:00 +01:00
6f40e37e81 Add support for the reversed CRC algorithm to CRC module 2023-01-15 21:12:20 +01:00
84c60fc461 Add test output value to CRC list 2023-01-15 21:09:46 +01:00
b47828014e Fix style issues in elfpatch.c 2023-01-06 20:24:12 +01:00
2c7ce64722 Fix style issues in crc.c 2023-01-06 20:17:14 +01:00
dc85955859 Fix style issues in main.c 2023-01-06 20:15:44 +01:00
5ec8d8d90b Fix style issues in named_crcs.c 2023-01-06 20:09:55 +01:00
e33c48618b Fix style in xml.c 2023-01-06 20:07:52 +01:00
5067527394 Merge pull request 'Implement xml export / import' (#3) from xml-export into master
Reviewed-on: #3
2023-01-06 18:50:08 +01:00
2c39c8fd8f Update man page 2023-01-06 18:49:59 +01:00
c41214fc75 Finish import/export functionality 2023-01-06 18:43:47 +01:00
aa15e1a541 Read section name from XML 2023-01-06 17:32:51 +01:00
e93b42dd40 Make name of sections in XML file a necessary string with a minimum length of 1 2023-01-06 17:30:37 +01:00
06fe82b2f1 Add missing newline to error prints 2023-01-06 16:37:33 +01:00
5134d1b974 Fix print_warn() macro 2023-01-06 16:33:25 +01:00
1d5219cc18 Add print_warn() macro and the --use-vma option 2023-01-06 16:28:44 +01:00
1528700d31 Add reading of LMA 2023-01-06 16:17:55 +01:00
376ef75964 Correctly implement LMA calculation. 2023-01-06 16:06:51 +01:00
0df385e4e7 Add LMA to handling of XML and debug output. LMA notr yet correclty calculated and is always equal to VMA 2023-01-06 15:12:45 +01:00
eeb2027884 reimplement reading of program headers. They are needed to derive the LMA of sections 2023-01-06 14:55:31 +01:00
2c50964581 Add preliminary code to read CRCs from XML. CRC value still missing 2023-01-04 21:42:12 +01:00
fda6e92615 Successfully import CRC config data 2023-01-04 19:54:27 +01:00
5d86a261d4 Add dependencies to PKGBUILD 2023-01-04 15:56:49 +01:00
598394cc2d Merge branch 'master' into xml-export 2023-01-04 15:18:19 +01:00
27580b5f32 Correctly free CRC array 2023-01-04 15:17:35 +01:00
18d9c1fced Merge branch 'master' into xml-export 2023-01-04 15:15:03 +01:00
aaa7bdd288 Merge pull request 'Fix #1: Segmentation fault when using NOBITS sections' (#2) from fix-segmentation-fault into master
Reviewed-on: #2
2023-01-04 15:11:48 +01:00
2fca25d4c0 Fix segmentation fault if a NOBITS section is specified for output 2023-01-04 15:07:01 +01:00
e09a07b3d3 Fix segmentation fault if a NOBITS section is specified as a source section 2023-01-04 15:04:06 +01:00
5b86194734 Remove reading of program headers. It is not necessary. 2023-01-04 14:53:25 +01:00
b3827b25c6 Add --xsd option to print out the used XSD 2023-01-04 14:47:19 +01:00
3bd46d888d Improve XSD and XML format 2023-01-04 14:35:34 +01:00
ea81d0a8fd XML Export / Import Progress:
* Exporter finished
* Imported started. Currently reading in nodes and printing them.
* Add XSD file for automatic validation. Working.

TODO:
* Correcly handle main logic of import export
* Finish importer
2023-01-03 23:08:29 +01:00
f4f373d65d Readout elf endianess and print error on mismatch 2022-12-17 19:33:13 +01:00
681a66e127 Start XML export functiionality 2022-12-17 19:15:45 +01:00
320b0ce650 It is too late. Fix bugs again... 2022-10-25 22:27:56 +02:00
9aa82975b1 Bugifx: Fix CRCs not being written to section 2022-10-25 22:23:39 +02:00
dafd51a376 Bugfix: Fix broken segment table. Manually enforce original layout 2022-10-25 22:02:11 +02:00
baa34c7525 Fix typo in PKGBUILD 2022-10-25 18:21:27 +02:00