This is an archive of the discontinued LLVM Phabricator instance.

[elf2] Don't allocate VA space for TLS NOBITS sections.
ClosedPublic

Authored by Bigcheese on Oct 16 2015, 5:13 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

Bigcheese updated this revision to Diff 37659.Oct 16 2015, 5:13 PM
Bigcheese retitled this revision from to [elf2] Don't allocate VA space for TLS NOBITS sections..
Bigcheese updated this object.
Bigcheese added a reviewer: rafael.
Bigcheese added a subscriber: llvm-commits.
ruiu added a subscriber: ruiu.Oct 16 2015, 5:52 PM
ruiu added inline comments.
ELF/Writer.cpp
629–633 ↗(On Diff #37659)

Factor out as a function.

rafael edited edge metadata.Oct 17 2015, 6:05 AM

I am OK with the test update.
Just make sure Rui is OK with the refactoring he asked for.

test/elf2/tls.s
83 ↗(On Diff #37659)

Make this check a tiny bit stronger. You know which PT_LOAD this is, so you can do

CHECK: PT_LOAD
CHECK: PT_LOAD
// CHECK: PT_LOAD
....

To make sure you skip the RO and RW segments.

ruiu added a comment.Oct 21 2015, 5:44 PM

Are you still working on this?

This revision was automatically updated to reflect the committed changes.