aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-03-11 10:51:56 +1030
committerAlan Modra <amodra@gmail.com>2017-03-11 10:51:56 +1030
commite299b3551edbe81be2062fcaef9319d681d0d15b (patch)
treebd1e6eba8a1c4d0017ba73b443fd3aaefdf997e6 /ld/ld.texinfo
parenta08f8d99b87b0b0f681a27eba8e25e2fb0abd034 (diff)
downloadgdb-e299b3551edbe81be2062fcaef9319d681d0d15b.zip
gdb-e299b3551edbe81be2062fcaef9319d681d0d15b.tar.gz
gdb-e299b3551edbe81be2062fcaef9319d681d0d15b.tar.bz2
Don't run new orphan tests on i860 and i960
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.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo13
1 files changed, 5 insertions, 8 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 176b9f2..769725d 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -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