Skip to content

llvm-strip fail on cgo code with error: SHT_STRTAB string table section [index 4] is non-null terminated #53999

@kraj

Description

@kraj

Attached example is causing strip failures

$ mips-yoe-linux-llvm-strip --remove-section=.note --remove-section=.comment go-helloworld
$ mips-yoe-linux-llvm-strip --remove-section=.note --remove-section=.comment go-helloworld
./recipe-sysroot-native/usr/bin/mips-yoe-linux/mips-yoe-linux-llvm-strip: error: SHT_STRTAB string table section [index 4] is non-null terminated

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions