This is an archive of the discontinued LLVM Phabricator instance.

Fix thread-step-out-ret-addr-check.test PT_GNU_STACK compilation on Windows
AbandonedPublic

Authored by jankratochvil on Dec 21 2019, 4:21 AM.

Details

Summary

D71784 broke Windows: http://lab.llvm.org:8011/builders/lldb-x64-windows-ninja/builds/11924/steps/test/logs/stdio

E:\build_slave\lldb-x64-windows-ninja\llvm-project\lldb\test\Shell\Unwind/Inputs/thread-step-out-ret-addr-check.s:23:27: error: unexpected token in directive
        .section .note.GNU-stack,"",@progbits
                          ^

Is this patch OK? I am not sure about the backquotes, grep etc. how it can work on Windows. The only other idea I have is to use Python test for it. Or give up on the stack and create some non-executable data section like D71789.

Diff Detail

Event Timeline

jankratochvil created this revision.Dec 21 2019, 4:21 AM
jankratochvil marked an inline comment as done.Dec 21 2019, 4:22 AM
jankratochvil added inline comments.
lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s
22

That was apparently a comment now. And OSX does not mind this section.

I already fixed the compilation error in rGce3ce9f, but it does not seem to be enough.. I guess the test will need to be re-disabled on windows. (My vague knowledge of windows tells me that the nonstandard_stub symbol might not make it into the final executable.)