svn commit: r217377 - projects/binutils-2.17/contrib/binutils/ld/emultempl

Dimitry Andric dim at FreeBSD.org
Thu Jan 13 21:17:59 UTC 2011


Author: dim
Date: Thu Jan 13 21:17:59 2011
New Revision: 217377
URL: http://svn.freebsd.org/changeset/base/217377

Log:
  Remove temporary kludge from r217260, as the .note.ABI-tag sections in
  crt1.o, gcrt1.o and Scrt1.o will now have the correct type, due to the
  changes in r217375.

Modified:
  projects/binutils-2.17/contrib/binutils/ld/emultempl/elf32.em

Modified: projects/binutils-2.17/contrib/binutils/ld/emultempl/elf32.em
==============================================================================
--- projects/binutils-2.17/contrib/binutils/ld/emultempl/elf32.em	Thu Jan 13 21:06:30 2011	(r217376)
+++ projects/binutils-2.17/contrib/binutils/ld/emultempl/elf32.em	Thu Jan 13 21:17:59 2011	(r217377)
@@ -1540,7 +1540,8 @@ gld${EMULATION_NAME}_place_orphan (asect
   if ((s->flags & SEC_ALLOC) == 0)
     ;
   else if ((s->flags & SEC_LOAD) != 0
-	   && CONST_STRNEQ (secname, ".note"))
+	   && ((iself && sh_type == SHT_NOTE)
+	       || (!iself && CONST_STRNEQ (secname, ".note"))))
     place = &hold[orphan_interp];
   else if ((s->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
     place = &hold[orphan_bss];


More information about the svn-src-projects mailing list