aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-05-21 12:16:22 +0000
committerNick Clifton <nickc@redhat.com>2008-05-21 12:16:22 +0000
commit45f111cc654c10f9c96e8d944626b3292d0567ae (patch)
treecb1d91e4d1ec96d70e0c71745a84ddbaa5930e4b /ld
parent7fb9f789e396b4653bba0ff56d786f5470a870c9 (diff)
downloadgdb-45f111cc654c10f9c96e8d944626b3292d0567ae.zip
gdb-45f111cc654c10f9c96e8d944626b3292d0567ae.tar.gz
gdb-45f111cc654c10f9c96e8d944626b3292d0567ae.tar.bz2
PR ld/6519
* ld.texinfo (Orphan Sections): Mention that the linker will provide start and stop symbols for orphaned sections if their names are valid C identifiers. * NEWS: Add an addendum to the description of the linker feature for providing orphan section start and end symbols.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog9
-rw-r--r--ld/NEWS13
2 files changed, 17 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index f50dcf9..b2ccc4f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,12 @@
+2008-05-21 Nick Clifton <nickc@redhat.com>
+
+ PR ld/6519
+ * ld.texinfo (Orphan Sections): Mention that the linker will
+ provide start and stop symbols for orphaned sections if their
+ names are valid C identifiers.
+ * NEWS: Add an addendum to the description of the linker feature
+ for providing orphan section start and end symbols.
+
2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
* configure.in (--enable-got): New option. Handle it.
diff --git a/ld/NEWS b/ld/NEWS
index 9078e20..a10f222 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -301,11 +301,14 @@ Changes in version 2.7:
Changes in version 2.6:
* When an ELF section name is representable as a C identifier (this is not true
- of most ELF section names), *and* the section is not explicitly handled by
- the linker script (ie it is an orphaned section) then the linker will
- automatically PROVIDE symbols __start_SECNAME and __stop_SECNAME, where
- SECNAME is the section name, at the beginning and the end of the section.
- This is used by glibc.
+of most ELF section names), the linker will automatically define symbols
+__start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
+beginning and the end of the section. This is used by glibc.
+
+ Addendum: Current versions of the linker (at least for version 2.18 onwards
+and possibly much earlier as well) place two restrictions on this feature: The
+symbols are only implemented for orphaned sections, not for explicitly placed
+sections and they are PROVIDEd rather than being defined.
* When an ELF section named .gnu.warning is encountered in an input file, the
contents of the section are displayed as an error message, and the section is