This is an archive of the discontinued LLVM Phabricator instance.

ELF: Correctly set edata if there are no .bss sections.
ClosedPublic

Authored by pcc on Oct 27 2017, 9:14 PM.

Details

Summary

edata needs to be set to the end of the last mapped initialized
section. We were previously mishandling the case where there were no
non-mapped sections by setting it to the end of the last section in
the output file.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Oct 27 2017, 9:14 PM
ruiu accepted this revision.Oct 29 2017, 3:18 PM

LGTM

This revision is now accepted and ready to land.Oct 29 2017, 3:18 PM
This revision was automatically updated to reflect the committed changes.