mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2019-11-22 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* ld.texi (Output Section Discarding): Add note indicating that
|
||||||
|
/DISCARD/ed sections ignore ELF section grouping.
|
||||||
|
|
||||||
2019-11-22 Nick Clifton <nickc@redhat.com>
|
2019-11-22 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Use cast instead of
|
* ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Use cast instead of
|
||||||
|
@ -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
|
input sections. Any input sections which are assigned to an output
|
||||||
section named @samp{/DISCARD/} are not included in the output file.
|
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
|
@node Output Section Attributes
|
||||||
@subsection Output Section Attributes
|
@subsection Output Section Attributes
|
||||||
@cindex output section attributes
|
@cindex output section attributes
|
||||||
|
Reference in New Issue
Block a user