Backout bug 661800 (changeset d95b370f0f85) because of bug 664362

This commit is contained in:
Mike Hommey 2011-06-15 08:44:13 +02:00
parent 754c52bb6f
commit e231090eae
2 changed files with 2 additions and 7 deletions

View File

@ -448,9 +448,6 @@ public:
// be better handled than special cases
if ((p_type == PT_DYNAMIC) && (section->getType() != SHT_DYNAMIC))
return false;
// Special case for PT_TLS.
if ((p_type == PT_TLS) && !(section->getFlags() & SHF_TLS))
return false;
return (addr >= p_vaddr) &&
(addr + size <= p_vaddr + p_memsz);

View File

@ -115,10 +115,8 @@ __attribute__((visibility("default"))) int print_status() {
}
/* On ARM, this creates a .tbss section before .init_array, which
* elfhack could then pick instead of .init_array.
* Also, when .tbss is big enough, elfhack may wrongfully consider
* following sections as part of the PT_TLS segment. */
__thread int foo[1024];
* elfhack could then pick instead of .init_array */
__thread int foo;
__attribute__((constructor)) void end_test() {
static int count = 0;