Skip to content

trying to compile on arm cortex-a72 rpi4 - CVE-2017-5753 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
naamir opened this issue Dec 2, 2019 · 0 comments
Open

trying to compile on arm cortex-a72 rpi4 - CVE-2017-5753 #7

naamir opened this issue Dec 2, 2019 · 0 comments

Comments

@naamir
Copy link

naamir commented Dec 2, 2019

Hello,

I am trying to compile code for CVE-2017-5753 on the new rpi4. I have tried using the following:

  1. arm-linux-gnueabihf-gcc -mcpu=cortex-a72 -std=gnu99 source.c
    result:
    source.c: In function ‘timed_read’:
    source.c:39:2: error: unknown register name ‘x5’ in ‘asm’
    asm volatile (
    ^~~

  2. /home/pi/git/aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -mcpu=cortex-a72 -std=gnu99 source.c
    result:
    bash: /home/pi/git/aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: cannot execute binary file: Exec format error

I had to clone the repo (listed here:https://github.com/najahiiii/aarch64-linux-gnu) to get aarch64-linux-gnu-gcc but it doesn't want to run.

Could you please provide some guidance on how to compile this?

Thank you in advance!

@naamir naamir changed the title trying to compile on arm cortex-a72 rpi4 trying to compile on arm cortex-a72 rpi4 - CVE-2017-5753 Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant