Skip to content

Add --add-debug option #367

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

Merged
merged 4 commits into from
Mar 26, 2022
Merged

Add --add-debug option #367

merged 4 commits into from
Mar 26, 2022

Conversation

deadwood2
Copy link

A shared library (-shared) by default does not receive DT_DEBUG tag.
This means that when a shared library has an entry point (so that it
can be run as an executable), the debugger does not connect to it
correctly and symbols are not resolved.

--add-debug option adds DT_DEBUG tag if it not yet present to an ELF
object.

Thank you!

Please do your best to include a regression test
so that the quality of future releases can be preserved.

A shared library (-shared) by default does not receive DT_DEBUG tag.
This means that when a shared library has an entry point (so that it
can be run as an executable), the debugger does not connect to it
correctly and symbols are not resolved.

--add-debug option adds DT_DEBUG tag if it not yet present to an ELF
object.
@Mic92
Copy link
Member

Mic92 commented Feb 22, 2022

One more thing: A regression test would be nice. Does not need to be complex but it should check if the result is still usable and it add the DT_DEBUG tag correct.

@deadwood2
Copy link
Author

Ok, test added

@deadwood2
Copy link
Author

Hello, is there anything else missing to merge this PR?

@Mic92 Mic92 merged commit 8f5ac59 into NixOS:master Mar 26, 2022
@Mic92
Copy link
Member

Mic92 commented Mar 26, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants