diff options
author | Nick Clifton <nickc@redhat.com> | 2019-11-22 13:24:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-11-22 13:24:58 +0000 |
commit | a2e098c378a96e7d7760aa52c1b49680c67674be (patch) | |
tree | 34d27ed568f303842a44bfcb7a272393b7ef8532 /ld/ld.texi | |
parent | b72636deaf8eaf4d31ab9e7cb1047c92fe458172 (diff) | |
download | binutils-gdb-a2e098c378a96e7d7760aa52c1b49680c67674be.tar.gz |
Update the linker documentation regarding the /DISCARD/ linker script section and its interaction with ELF section groups.
* ld.texi (Output Section Discarding): Add note indicating that
/DISCARD/ed sections ignore ELF section grouping.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r-- | ld/ld.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ld.texi b/ld/ld.texi index 3b2d05411f4..ed538fbfe2b 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -4994,6 +4994,11 @@ The special output section name @samp{/DISCARD/} may be used to discard input sections. Any input sections which are assigned to an output section named @samp{/DISCARD/} are not included in the output file. +Note, sections that match the @samp{/DISCARD/} output section will be +discarded even if they are in an ELF section group which has other +members which are not being discarded. This is deliberate. +Discarding takes precedence over grouping. + @node Output Section Attributes @subsection Output Section Attributes @cindex output section attributes |