Allow generation of reversed CRCs in main function. Reversed CRCs are now supported.
This commit is contained in:
parent
cf7d0c22f7
commit
71b1ad2a32
@ -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*.
|
The memory is interpreted as *little endian* and the CRC calculation granularity is a 32 bit *word*.
|
||||||
|
|
||||||
# BUGS
|
# BUGS
|
||||||
Currently, reversed CRC algorithms are not implemented.
|
None
|
||||||
|
@ -452,12 +452,6 @@ int main(int argc, char **argv)
|
|||||||
if (!cmd_opts.output_section && cmd_opts.export_xml == NULL)
|
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");
|
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 */
|
/* Prepare libelf for use with the latest ELF version */
|
||||||
elf_version(EV_CURRENT);
|
elf_version(EV_CURRENT);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user