Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

afl-cc afl-proxy.c -> ld error #2031

Unanswered
sk3pta asked this question in Q&A
Discussion options

Hi,

I tried to compile afl-proxy and got this.

❯ ../../afl-cc -I../../include/  -o afl-proxy afl-proxy.c

afl-cc++4.09a by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: GCC_PLUGIN-DEFAULT
afl-gcc-pass ++4.09a by <oliva@adacore.com>
[*] Inline instrumentation at ratio of 100% in non-hardened mode.
[+] Instrumented 47 locations (non-hardened mode, inline, ratio 100%).
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
../../afl-compiler-rt.o:(.data+0x0): multiple definition of `__afl_area_ptr'; /tmp/cc3quvIn.o:/path/to/afl/utils/afl_proxy/afl-proxy.c:119: first defined here
/usr/bin/ld: __afl_map_size: TLS definition in /tmp/cc3quvIn.o section .tdata mismatches non-TLS definition in ../../afl-compiler-rt.o section .data
/usr/bin/ld: ../../afl-compiler-rt.o: error adding symbols: bad value
collect2: error: ld returned 1 exit status

I looked into afl-compiler-rt.o.c and then changed __thread u32 __afl_map_size to u32 __afl_map_size.
But I can not understand what can I do with multiple definitions of __afl_area_ptr and __afl_map_size
Thanks in advance!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.