-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fails to compile on GCC 7.3.0 (Ubuntu) #1
Comments
Explicit use of -static when compiling seems to fix the compile issue. |
Same problem on Gentoo.
|
Alternatively you can also use
Since being PIE, and therefore subject of ASLR, shouldn't be that important for this binary, I suggest explicitly disabling PIE, unless someone with more experience in compiling using GCC comes up with a better approach that fixes the (yet to be explained) error without sacrificing security (which shouldn't be that important for this binary though I think). Links |
I had this issue too, I fixed it here with changing |
|
The hand-written assembly is not position independent, so it can't be linked into a position-independent executable, hence the error. |
On a second thought, |
Same error on Arch GNU/Linux, GCC version |
Same issue. Adding flag --static works. |
fix xoreaxeaxeax#1 Using -no-pie for compiling the utils since the assembly isn't written position independent. Newer GCC versions default to PIE, so this should be set explicitly. Signed-off-by: benaryorg <[email protected]>
@jwilk thanks for the detailed explaination. It seems though that
So I'd go with the |
Seems there's a duplicate PR over at #9 (with a less descriptive error message and no reference to this issue). |
|
my case is: g++ 7.5.0 meet this problem. clang++ can work |
There's some issues trying to compile:
Compiler used.
The text was updated successfully, but these errors were encountered: