aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-08-07 08:45:14 +0100
committerNick Clifton <nickc@redhat.com>2018-08-07 08:45:14 +0100
commit99f8774ccaca5b1bfa4a035c6c705bc7ef47e75f (patch)
treee1478d4016cc2642d4a5af17e28ed25e6d575490 /ld/scripttempl
parent8f9ea98bebb629f0e6993be015f042bf45dcdd18 (diff)
downloadfsf-binutils-gdb-99f8774ccaca5b1bfa4a035c6c705bc7ef47e75f.zip
fsf-binutils-gdb-99f8774ccaca5b1bfa4a035c6c705bc7ef47e75f.tar.gz
fsf-binutils-gdb-99f8774ccaca5b1bfa4a035c6c705bc7ef47e75f.tar.bz2
Explain what happens for PE targeted linkers in the case where the user actually tries to provide __CTOR_LIST__ and/or __DTOR_LIST__ symbols.
* scripttempl/pe.sc: Improve the comment about overriding __CTOR_LIST__ and __DTOR_LIST__ symbols. * scripttemp/pep.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pe.sc10
-rw-r--r--ld/scripttempl/pep.sc10
2 files changed, 12 insertions, 8 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index f56d783..8fdeaff 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -106,10 +106,12 @@ SECTIONS
overridden and global constructors will not be run.
This does mean that it is not possible for a user to define
- their own __CTOR_LIST__ and __DTOR_LIST__ symbols. If that
- ability is needed a custom linker script will have to be
- used. (The custom script can just be a copy of this script
- with the PROVIDE() qualifiers added).
+ their own __CTOR_LIST__ and __DTOR_LIST__ symbols; if they do,
+ the content from those variables are included but the symbols
+ defined here silently take precedence. If they truly need to
+ be redefined, a custom linker script will have to be used.
+ (The custom script can just be a copy of this script with the
+ PROVIDE() qualifiers added).
See PR 22762 for more details. */
___CTOR_LIST__ = .;
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index 3c6c84d..a7157dc 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -107,10 +107,12 @@ SECTIONS
overridden and global constructors will not be run.
This does mean that it is not possible for a user to define
- their own __CTOR_LIST__ and __DTOR_LIST__ symbols. If that
- ability is needed a custom linker script will have to be
- used. (The custom script can just be a copy of this script
- with the PROVIDE() qualifiers added).
+ their own __CTOR_LIST__ and __DTOR_LIST__ symbols; if they do,
+ the content from those variables are included but the symbols
+ defined here silently take precedence. If they truly need to
+ be redefined, a custom linker script will have to be used.
+ (The custom script can just be a copy of this script with the
+ PROVIDE() qualifiers added).
See PR 22762 for more details. */
___CTOR_LIST__ = .;