]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't run new orphan tests on i860 and i960
authorAlan Modra <amodra@gmail.com>
Sat, 11 Mar 2017 00:21:56 +0000 (10:51 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 11 Mar 2017 00:21:56 +0000 (10:51 +1030)
These targets use the generic ELF support, so don't handle orphans
well.  The patch also updates the orphan doco to reflect this fact,
and deletes some ELF details that don't really add anything.

* ld.texinfo (Orphan Sections): Mention that not all targets
handle orphans well.  Delete ELF details.
* testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
* testsuite/ld-elf/orphan-10.d: Likewise.

ld/ChangeLog
ld/ld.texinfo
ld/testsuite/ld-elf/orphan-10.d
ld/testsuite/ld-elf/orphan-9.d

index adefe321ea9da5d741184a27dfa652db8c11d4df..2ea76303368adf9441c6520762f44f705aeb9ae0 100644 (file)
@@ -1,3 +1,10 @@
+2017-03-11  Alan Modra  <amodra@gmail.com>
+
+       * ld.texinfo (Orphan Sections): Mention that not all targets
+       handle orphans well.
+       * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
+       * testsuite/ld-elf/orphan-10.d: Likewise.
+
 2017-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * ldlang.c (lang_size_sections_1): Shortcut loop only after
index 176b9f26887b63787a4b95f469a89e19b8c2d5bb..769725d28eddfc453f9d1fe4a0b10f6ed4bfb4fa 100644 (file)
@@ -5777,14 +5777,11 @@ one new output section.
 
 If new output sections are created to hold orphaned input sections,
 then the linker must decide where to place these new output sections
-in relation to existing output sections.  The linker uses a simple
-heuristic to do this.  It attempts to place orphan sections after
-sections of the same attribute, such as code vs data, loadable vs
-non-loadable, etc.  If no sections with matching attributes are found,
-the orphan section is placed at the end of the file.
-
-For ELF targets, the attribute of the section includes section type as
-well as section flag.
+in relation to existing output sections.  On most modern targets, the
+linker attempts to place orphan sections after sections of the same
+attribute, such as code vs data, loadable vs non-loadable, etc.  If no
+sections with matching attributes are found, or your target lacks this
+support, the orphan section is placed at the end of the file.
 
 The command line options @samp{--orphan-handling} and @samp{--unique}
 (@pxref{Options,,Command Line Options}) can be used to control which
index a5cf6d9eb0175487c2fa8ba2c3d186e3835d9401..1dbec42e636434295926bf5daf134d0e2b6ec232 100644 (file)
@@ -1,7 +1,7 @@
 #source: orphan-10.s
 #ld: -N -T orphan-9.ld
 #objdump: -h
-#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
+#notarget: d30v-* dlx-* fr30-* frv-* ft32-* i860-* i960-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
 
 #...
   . \.text         0+(08|10)  [0-9a-f]+  0+200 .*
index 637e8c5d374f2911c9fb06110334ece45f99df1f..790cff1a74c94ed555962ec555e4c483ebdf48a8 100644 (file)
@@ -1,7 +1,7 @@
 #source: orphan-9.s
 #ld: -N -T orphan-9.ld
 #objdump: -h
-#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
+#notarget: d30v-* dlx-* fr30-* frv-* ft32-* i860-* i960-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
 
 #...
   . \.text         0+(08|10)  [0-9a-f]+  0+200 .*