From: Alan Modra Date: Fri, 27 May 2011 12:47:12 +0000 (+0000) Subject: PR 12763 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04c932a298845c85fe07c86c50bd93ee3ac78880;p=binutils-gdb.git PR 12763 missed from last commit --- diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 17fb8bf9ec1..42674bd4f61 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -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];