This is an archive of the discontinued LLVM Phabricator instance.

Detect linker script INCLUDE cycles.
ClosedPublic

Authored by ruiu on Sep 6 2017, 11:02 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Sep 6 2017, 11:02 AM
davide added a subscriber: davide.Sep 6 2017, 11:06 AM
davide added inline comments.
lld/ELF/ScriptParser.cpp
115 ↗(On Diff #114033)

The comment might/should be committed separately?

davide accepted this revision.Sep 6 2017, 11:06 AM

Other than that, lg.

This revision is now accepted and ready to land.Sep 6 2017, 11:06 AM
ruiu added inline comments.Sep 6 2017, 11:15 AM
lld/ELF/ScriptParser.cpp
115 ↗(On Diff #114033)

Done.

This revision was automatically updated to reflect the committed changes.
grimar added inline comments.Sep 7 2017, 2:40 AM
lld/trunk/test/ELF/linkerscript/include-cycle.s
11

I think it worth to include file name causes cycle.

15

You should not need any code in this testcase.

grimar added inline comments.Sep 7 2017, 2:44 AM
lld/trunk/test/ELF/linkerscript/include-cycle.s
11

Taking this back. We will print line where error happens, so filename will be there.
I would add it to test for demonstration though.