Skip to content
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

doesn't compile with gcc or clang #2

Open
jugonz opened this issue May 11, 2015 · 3 comments
Open

doesn't compile with gcc or clang #2

jugonz opened this issue May 11, 2015 · 3 comments

Comments

@jugonz
Copy link

jugonz commented May 11, 2015

Using gcc (4.8.2) and clang (3.3 or 3.6) ripe_attack_generator.c fails to compile:

Here are two errors I've seen a few times:

/source/ripe_attack_generator.c:80:34: error: initializer element is not a
compile-time constant
0xDEADBEEF,0xDEADBEEF,0xDEADBEEF,&exit, &cf_ret_param,448}; //448 => 0700 mode
^~~~~
./source/ripe_attack_generator.c:112:27: error: initializer element is not a
compile-time constant
static int rop_sled[7] = {&gadget1 + 62,0xFFFFFFFF,&gadget2 + 62,&cf_ret...
^~~~~~~~~~~~~

Any idea what it would take to fix this? From a cursory look at the file, it looks like these could just be filled in at runtime...

@nikifor
Copy link
Collaborator

nikifor commented May 11, 2015

Hi,

This must be something that happened due to a change in what's allowed in GCC and what's not. I will have a look and let you know.

Nick

@TOCK-Chiu
Copy link

This issue seems not effecting 32-bit builds. I faced the same issue exactly as @jugonz described, but it disappeared after passing '-m32' to GCC (5.2.0) or Clang (3.6.2).

@sttscc
Copy link

sttscc commented Dec 21, 2016

@jugonz I have the same problem with you, Have you solve it?

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

4 participants