This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Linkerscript: remove repeated sections in LinkerScript<ELFT>::filter
ClosedPublic

Authored by evgeny777 on Aug 3 2016, 7:07 AM.

Details

Reviewers
ruiu
Summary

Currently we can have more than one output section with the same name. The LinkerScript filter() method removes only first section found in name lookup.

Diff Detail

Event Timeline

evgeny777 updated this revision to Diff 66662.Aug 3 2016, 7:07 AM
evgeny777 retitled this revision from to [ELF] Linkerscript: remove repeated sections in LinkerScript<ELFT>::filter.
evgeny777 updated this object.
evgeny777 added a reviewer: ruiu.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
evgeny777 added subscribers: grimar, emaste, davide and 2 others.
ruiu accepted this revision.Aug 3 2016, 10:59 AM
ruiu edited edge metadata.

LGTM

ELF/LinkerScript.cpp
194

This is basically remove_if, so let's name removeIf.

This revision is now accepted and ready to land.Aug 3 2016, 10:59 AM
evgeny777 closed this revision.Aug 4 2016, 1:30 AM