From 71b1ad2a32141a41c4bb7486d6397ad9d8692f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 15 Jan 2023 21:22:47 +0100 Subject: [PATCH] Allow generation of reversed CRCs in main function. Reversed CRCs are now supported. --- man/patchelfcrc.1.md | 2 +- src/main.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/man/patchelfcrc.1.md b/man/patchelfcrc.1.md index ca98945..a7b4973 100644 --- a/man/patchelfcrc.1.md +++ b/man/patchelfcrc.1.md @@ -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 diff --git a/src/main.c b/src/main.c index ba4bc3f..a48ca58 100644 --- a/src/main.c +++ b/src/main.c @@ -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);