This is an archive of the discontinued LLVM Phabricator instance.

[lld][ELF] TBSS section has to be seperately considered so that it doesnot occupy memory space
ClosedPublic

Authored by shankarke on Jun 10 2013, 8:37 PM.

Details

Reviewers
Bigcheese
Summary

This adds functionality to the ELF writer to not add memory size to the segment and checks to make sure that DATA starts at the same address where TBSS starts with a test.

Diff Detail

Event Timeline

ruiu added inline comments.Jun 10 2013, 9:00 PM
test/elf/tlsAddr.test
7

you may want to check the size of .tdata.

shankarke added inline comments.Jun 10 2013, 9:26 PM
test/elf/tlsAddr.test
7

This is a test known to produce this address for DATA. Should be sufficient. If the address of TDATA changes, data also changes.

Eugene.Zelenko closed this revision.Oct 5 2016, 1:29 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rLrL183815.