-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
llvm-strip utility strips debuglink sections by default whereas GNU strip does not #57407
Comments
@MaskRay FYI |
@llvm/issue-subscribers-tools-llvm-objcopy-strip |
workaround for now is to add |
We need a fix for llvm/llvm-project#57407 before we can re-enable it Signed-off-by: Khem Raj <raj.khem@gmail.com>
We need a fix for llvm/llvm-project#57407 before we can re-enable it Signed-off-by: Khem Raj <raj.khem@gmail.com>
There was an issue with older llvm < 15 releases as reported in [1] but this seems to be fixed now. [1] llvm/llvm-project#57407 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
For more instructions on how to submit a patch to LLVM, see our documentation. If you have any further questions about this issue, don't hesitate to ask via a comment on this Github issue. @llvm/issue-subscribers-good-first-issue |
Hey is anyone working on this issue? if not could you please assign it to me ? |
Hey, my approach would be to add the |
I suspect this functionality wants to be specific to the ELF file format, so adding it to
If the answer to both questions is yes, then it probably makes sense to add the section name to the list of section names specified in
|
Thanks for your answer, I will look into this as soon as possible. |
…-all (#78919) This fixes the issue mentioned here: #57407 It prevents `llvm-objcopy` from removing the `.gnu _debuglink` section when used with the `--strip-all` flag. Since `--strip-all` is the default of `llvm-strip` the patch also prevents `llvm-strip` from removing the `.gnu_debuglink` section.
Hey, the issue was fixed by #78919, could someone close it ? |
…-all (#78919) This fixes the issue mentioned here: llvm/llvm-project#57407 It prevents `llvm-objcopy` from removing the `.gnu _debuglink` section when used with the `--strip-all` flag. Since `--strip-all` is the default of `llvm-strip` the patch also prevents `llvm-strip` from removing the `.gnu_debuglink` section.
I ran into a problem where debug info was not being loaded by gdb. In yocto we split the debug info and keep them separate.
so it turns out to be that when we use
llvm-strip
for providingSTRIP
it ends up eating.gnu_debuglink
section as well which contains the link to separated out debug info file and hence the debugger can not find the link any more. This is seen with clang-14/clang-15 and trunk too.Here is a testcase
bad
good
The text was updated successfully, but these errors were encountered: