This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] --no-undefined flag implemented
ClosedPublic

Authored by grimar on Oct 1 2015, 10:37 AM.

Details

Reviewers
ruiu
rafael
Summary

Report unresolved symbol references from regular object files. This is done even if the linker is creating a non-symbolic shared library.

Diff Detail

Event Timeline

grimar updated this revision to Diff 36269.Oct 1 2015, 10:37 AM
grimar retitled this revision from to [ELF2] --no-undefined flag implemented.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: grimar, llvm-commits.
grimar added inline comments.Oct 1 2015, 10:39 AM
test/elf2/no-undefined.s
12

I`ll remove 2 extra lines and leave only one here. Just didnt notice it.

ruiu added inline comments.Oct 1 2015, 10:44 AM
ELF/Options.td
39

Remove the newline at end of this line for consistency with other defs.

41

Indentation error.

41–43

Let's make the message a bit shorter: "Report unresolved symbols even if the linker is creating a shared library"

Do not put period at end as other messages don't.

test/elf2/no-undefined.s
6–11

I don't think we really have to test this case. Let's remove that and no-undefined.s.

grimar added inline comments.Oct 1 2015, 10:58 AM
ELF/Options.td
41

Thats how clang-format handles it i believe. But after your comments I understood that it is not supposed to be used in this file :)

ruiu added inline comments.Oct 1 2015, 11:01 AM
ELF/Options.td
41

Is it? I've never tried to apply clang-format to .td files, but if that's the case, we may want to follow the style how clang-format does. But even if we want to do, that should be done at once. Please always keep everything as consistent as possible.

grimar updated this revision to Diff 36277.Oct 1 2015, 11:22 AM

Review comments addressed

ruiu accepted this revision.Oct 1 2015, 11:25 AM
ruiu edited edge metadata.

LGTM

The commit message should be

[ELF2] Implement --no-undefined flag.

This revision is now accepted and ready to land.Oct 1 2015, 11:25 AM
grimar closed this revision.Oct 1 2015, 1:16 PM

r249064