This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add TLS image initialization to aarch64 startup code.
ClosedPublic

Authored by sivachandra on Jun 16 2022, 11:28 PM.

Details

Summary

The TLS loader test has been enabled for aarch64.
Handling of PT_TLS' filesz and memsz for x86_64 has also been fixed.

Diff Detail

Event Timeline

sivachandra created this revision.Jun 16 2022, 11:28 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 16 2022, 11:28 PM
sivachandra requested review of this revision.Jun 16 2022, 11:28 PM
jeffbailey accepted this revision.Jun 17 2022, 4:00 PM
jeffbailey added inline comments.
libc/test/integration/loader/linux/CMakeLists.txt
41–43

I wonder if we should have a variable of "LIBC_ARCH_SUPPORTS_LOADERS" or something like this so that we're not flapping this in and out for every arch that gets added.

This revision is now accepted and ready to land.Jun 17 2022, 4:00 PM
sivachandra retitled this revision from [libc] Add TLS image initializing to aarch64 statup code. to [libc] Add TLS image initialization to aarch64 startup code..Jun 17 2022, 10:45 PM