Allow generation of reversed CRCs in main function. Reversed CRCs are now supported.

This commit is contained in:
Mario Hüttel 2023-01-15 21:22:47 +01:00
parent cf7d0c22f7
commit 71b1ad2a32
2 changed files with 1 additions and 7 deletions

View File

@ -136,4 +136,4 @@ The output sections start and end are checked for the given magic numbers in ord
The memory is interpreted as *little endian* and the CRC calculation granularity is a 32 bit *word*.
# BUGS
Currently, reversed CRC algorithms are not implemented.
None

View File

@ -452,12 +452,6 @@ int main(int argc, char **argv)
if (!cmd_opts.output_section && cmd_opts.export_xml == NULL)
print_err("No output section / XML export specified. Will continue but not create any output\n");
/* Do error printing if using a reversed polynomial. It is not implemented yet! */
if (cmd_opts.crc.rev) {
print_err("Reversed polynomials are not supported yet\nExiting...\n");
goto free_cmds;
}
/* Prepare libelf for use with the latest ELF version */
elf_version(EV_CURRENT);