Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Information: addr2line returns ?? with newer GCC compiler (-no-pie) #17

Open
JJM1987 opened this issue Mar 31, 2021 · 0 comments
Open

Comments

@JJM1987
Copy link

JJM1987 commented Mar 31, 2021

This function always worked for me until i upgraded my GCC compiler.
The addr2line function wasn't able to get the filename and line numbers anymore.
It returned ??:0 for every address.

I figured that the reason it doesn't work is because the newer GCC is using -pie by default. Thus, using -no-pie fixes it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant