Backout bug 661800 (changeset d95b370f0f85) because of bug 664362

This commit is contained in:
Mike Hommey 2011-06-15 08:44:13 +02:00
Родитель 5ffb98df92
Коммит 44128c9a1e
2 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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;