You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the frida-core-example.c file, I found the gcc command as follows:
/* * Compile with: * * gcc -ffunction-sections -fdata-sections frida-core-example.c -o frida-core-example -L. -lfrida-core -lelf -ldl -lm -pthread -Wl,--export-dynamic,--gc-sections * * Visit https://frida.re to learn more about Frida. */
I attempted to execute the provided gcc command: gcc -ffunction-sections -fdata-sections frida-core-example.c -o frida-core-example -L. -lfrida-core -lelf -ldl -lm -pthread -Wl,--export-dynamic,--gc-sections. However, I encountered an error:
After conducting some research, I revised the command to gcc -ffunction-sections -fdata-sections frida-core-example.c -o frida-core-example -L. -lfrida-core -lelf -ldl -lm -pthread -Wl,-export_dynamic,-dead_strip.
Now, a new error has emerged:
ld: library 'elf' not found.
What should I do?
The text was updated successfully, but these errors were encountered:
bakabird
changed the title
"ld: library 'elf' not found" when compile frida-core-example.c
"ld: library 'elf' not found" when compile frida-core-example.c on Mac
Oct 16, 2023
Environment: macOS 14.0
CPU: Apple M2
Model: MacBook Air
I downloaded the frida-core-devkit from frida-core-devkit-16.1.4-freebsd-arm64.tar.xz.
Within the frida-core-example.c file, I found the gcc command as follows:
I attempted to execute the provided gcc command:
gcc -ffunction-sections -fdata-sections frida-core-example.c -o frida-core-example -L. -lfrida-core -lelf -ldl -lm -pthread -Wl,--export-dynamic,--gc-sections
. However, I encountered an error:After conducting some research, I revised the command to
gcc -ffunction-sections -fdata-sections frida-core-example.c -o frida-core-example -L. -lfrida-core -lelf -ldl -lm -pthread -Wl,-export_dynamic,-dead_strip
.Now, a new error has emerged:
What should I do?
The text was updated successfully, but these errors were encountered: