This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Bundler] Add 'exclude' flag to target objects sections
ClosedPublic

Authored by sdmitriev on Jan 25 2020, 1:16 AM.

Details

Summary

This flag tells link editor to exclude section from linker inputs when linking executable or shared library.

Diff Detail

Event Timeline

sdmitriev created this revision.Jan 25 2020, 1:16 AM
ABataev added inline comments.Jan 27 2020, 11:57 AM
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
467–475
  1. Extra spaces in the comment.
  2. TODO better to have on a separate line.
  3. Maybe it is better to postpone it until llvm-objcopy can do this in one run?
508

Better to make it a function

527

from

sdmitriev added inline comments.Jan 27 2020, 1:49 PM
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
467–475
  1. Will fix.
  2. Ok.
  3. I do not think that anybody is working on that problem now, so it is not clear how much time that will take. Also merging two llvm-objcopy invocations into one will be a simple NFC change, so I think this should not block this patch.
527

This was supposed to be 'for'.

sdmitriev updated this revision to Diff 240676.Jan 27 2020, 1:51 PM

Addressed review comments.

sdmitriev marked 5 inline comments as done.Jan 27 2020, 1:51 PM

Any additional comments?

This revision is now accepted and ready to land.Jan 29 2020, 8:17 AM
This revision was automatically updated to reflect the committed changes.