-
Notifications
You must be signed in to change notification settings - Fork 11k
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 fail on cgo code with error: SHT_STRTAB string table section [index 4] is non-null terminated #53999
Comments
@llvm/issue-subscribers-tools-llvm-objcopy-strip |
@llvm/issue-subscribers-backend-mips |
This is platform independent and seems to happen with anything built by go.
|
Also happens with an even smaller test case:
|
For reference these are the section headers on the unstripped binary:
Also, this doesn't seem to always reproduce on go projects:
^ Same go, same llvm, etc. |
After digging a bit more into this, it looks like the moving part is cgo.
This would work as expected while commenting out the |
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Source: meta-virtualization MR: 121049 Type: Integration Disposition: Merged from meta-virtualization ChangeID: cb9ed15 Description: clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Source: meta-virtualization MR: 121049 Type: Integration Disposition: Merged from meta-virtualization ChangeID: 26a361a Description: clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Issue also observed in FreeBSD's attempt to use LLVM binutils for the entire ports tree: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270962 |
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
clang-based builds are still broken due to: llvm/llvm-project#53999 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Attached example is causing strip failures
you have to run the strip twice to get this error. However when I use GNU strip first time then it works fine during second time.
so it seems llvm-strip is mutilating the binary during first strip operation somehow.
go-helloworld.tar.gz
The text was updated successfully, but these errors were encountered: