HomePhabricator

[HIP] Remove useless sections in linked files

Authored by yaxunl on Nov 9 2018, 10:52 AM.

Description

[HIP] Remove useless sections in linked files

clang-offload-bundler creates CLANG_OFFLOAD_BUNDLE* sections in the bundles,
which get into the linked files. These sections are useless after linking. They waste disk
space and cause confusion for clang when directly linked with other object files, therefore
should be removed.

Differential Revision: https://reviews.llvm.org/D54275

llvm-svn: 346536

Details