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

Linking error #149

Closed
RazrFalcon opened this issue Feb 7, 2019 · 2 comments
Closed

Linking error #149

RazrFalcon opened this issue Feb 7, 2019 · 2 comments

Comments

@RazrFalcon
Copy link

RazrFalcon commented Feb 7, 2019

cargo afl build
...
  = note: /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: __sancov_guards has both ordered [`__sancov_guards' in ../xmlparser/afl-fuzz/target/debug/deps/libxmlparser-6c2fc8da8f3284ea.rlib(xmlparser-6c2fc8da8f3284ea.6qd2ql7pkfjouzp.rcgu.o)] and unordered [`__sancov_guards' in ../xmlparser/afl-fuzz/target/debug/deps/libxmlparser-6c2fc8da8f3284ea.rlib(xmlparser-6c2fc8da8f3284ea.6qd2ql7pkfjouzp.rcgu.o)] sections
          /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
          collect2: error: ld returned 1 exit status
  • afl v0.4.3
  • rustc 1.32.0/1.34.0-nightly (b139669f3)
  • Gentoo Linux
@pedrocr
Copy link
Contributor

pedrocr commented Feb 22, 2019

This is a duplicate of #141. Try compiling with something like this as a workaround:

RUSTFLAGS="-Clink-arg=-fuse-ld=gold" cargo afl build

@RazrFalcon
Copy link
Author

Yep, fixed.

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

2 participants