This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Initial support of tree-style linker script implemented.
ClosedPublic

Authored by grimar on Jul 20 2016, 4:50 PM.

Details

Summary

Approach uses LLVM-style RTTI for representing the linker script
commands in a form of tree for future simplification of parsing.

Core idea and code sample belongs to Rui Ueyama.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 64795.Jul 20 2016, 4:50 PM
grimar updated this revision to Diff 64797.
grimar retitled this revision from to [ELF] - Initial support of tree-style linker script implemented..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
  • Update of comment.
ruiu accepted this revision.Jul 20 2016, 6:33 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 20 2016, 6:33 PM
ruiu added a comment.Jul 20 2016, 6:40 PM

LGTM with this change.

ELF/LinkerScript.h
56 ↗(On Diff #64797)

I think you need to define a virtual destructor because you are destructing derived classes instances through base class pointers.

Eugene.Zelenko added inline comments.
ELF/LinkerScript.cpp
44 ↗(On Diff #64797)

Please fix -Wextra-semi.

48 ↗(On Diff #64797)

Please fix -Wextra-semi.

grimar added inline comments.Jul 20 2016, 11:32 PM
ELF/LinkerScript.cpp
44 ↗(On Diff #64797)

Will do, thanks.

ELF/LinkerScript.h
56 ↗(On Diff #64797)

Right, thanks ! And thank you so much for reviewing and help with that !

This revision was automatically updated to reflect the committed changes.