PR 12763
authorAlan Modra <amodra@gmail.com>
Fri, 27 May 2011 12:47:12 +0000 (12:47 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 27 May 2011 12:47:12 +0000 (12:47 +0000)
missed from last commit

ld/emultempl/elf32.em

index 17fb8bf..42674bd 100644 (file)
@@ -1920,7 +1920,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s,
           && ((iself && sh_type == SHT_NOTE)
               || (!iself && CONST_STRNEQ (secname, ".note"))))
     place = &hold[orphan_interp];
-  else if ((s->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
+  else if ((s->flags & (SEC_LOAD | SEC_HAS_CONTENTS | SEC_THREAD_LOCAL)) == 0)
     place = &hold[orphan_bss];
   else if ((s->flags & SEC_SMALL_DATA) != 0)
     place = &hold[orphan_sdata];