4
0
mirror of https://github.com/QuasarApp/LIEF.git synced 2025-05-12 19:39:32 +00:00

To fix documentation issue

1. Inconsistent function name fix.
2. Compilation fix as discussed in 
This commit is contained in:
suletm 2020-04-10 20:12:25 -07:00 committed by GitHub
parent 8ac569cb52
commit 7daff3bf9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,7 +70,7 @@ Let's see how it works on a basic *crackme*:
#define LOCAL __attribute__ ((visibility ("hidden")))
#define NOINLINE __attribute__ ((noinline))
NOINLINE LOCAL int check(char* input) {
NOINLINE LOCAL int check_found(char* input) {
if (strcmp(input, "easy") == 0) {
return 1;
}
@ -108,7 +108,7 @@ The *crackme* can be compiled with:
.. code-block:: console
$ gcc crackme101.c -O0 -fPIE -pie -Wl,-strip-all -o crackme101.bin
$ gcc crackme101.c -O0 -fPIE -pie -Wl,-strip-all,--hash-style=sysv -o crackme101.bin
$ ./crackme101.bin foo
Wrong!
$ ./crackme101.bin easy