Skip to content
Snippets Groups Projects
Pavel Zhukov's avatar
Pavel Zhukov authored
When sysota is built with toolchain-clang broken dynamicaly linked
binary file is produced [1] if shared linking (GO_DYNLINK) is disabled.
As the result strip phase of do_packages fails with [2]
Sysota is built with disabled shared linking because of another bug [3]
The problem with stripping can be fixed with specifying external linker
for clang toolchain (by default Go swutched to internal linker on 64bit
arches if -pie has been specified since version 1.15 [4] ).
Limiting this change to clang only to be safe.

[1] **readelf: Error: no .dynamic section in the dynamic segment**

[2] Subprocess output:x86_64-oniro-linux-llvm-strip: error: SHT_STRTAB
        string table section [index 7] is non-null terminated

[3] eclipse/oniro-core/sysota#7

[4] https://go.dev/doc/go1.15#linker



Fixes: #624

Signed-off-by: default avatarPavel Zhukov <pavel.zhukov@huawei.com>
6b4d14bf
History

Oniro Project

Welcome to the Oniro* Project main git reposiotory! Oniro is an Eclipse Foundation project focused on the development of a distributed open source operating system for consumer devices.

The aim of this repository is to define the build workspace, provide build metadata and build documentation for the project. It also behaves as the main entry point for the code while aggregating most of the other components developed by the team.

Learn more about Oniro Project on the main website or on the project's documentation.

*Oniro is a trademark of Eclipse Foundation.

About

The oniro repository is a collection of bitbake layers that implement the build system support in Oniro Project. Check the README.md file in each of the included layers for layer-specific additional information.

The build system documentation is available in the docs subdirectory.

Contributing

See the CONTRIBUTING.md file.

License

See the LICENSES subdirectory.