aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-20 19:25:42 +0000
committerMike Frysinger <vapier@gentoo.org>2010-07-20 19:25:42 +0000
commitbb1515f25457b283e41e46b01b245ec79ed630bd (patch)
treed586185a27bc98611dca28d7b856a2b9c26d5cae /ld/ChangeLog
parentc6f46ca0a460b20a1c2f321e0d3e73dd9715c603 (diff)
downloadgdb-bb1515f25457b283e41e46b01b245ec79ed630bd.zip
gdb-bb1515f25457b283e41e46b01b245ec79ed630bd.tar.gz
gdb-bb1515f25457b283e41e46b01b245ec79ed630bd.tar.bz2
ld: improve linker script section
The example version script in the manual currently suggests: extern "C++" { "int f(int, double)"; } But a C++ function like that doesn't encode the return type into the mangled name, so when the linker demangles things, it ends up with "f(int, double)" and so it never matches. The example also lacks a trailing semicolon after the brace, so the linker always complains about a syntax error in the file. While the language section documents the possibilities, it isn't clear as to which is the default language. So explicitly state that the C language is the default. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 80bcd25..24d2cfd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-20 Mike Frysinger <vapier@gentoo.org>
+
+ * ld.texinfo (VERSION): Remove "int" from example script and add ";".
+ Declare the default language as C.
+
2010-07-17 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_check_section_addresses): Catch overlap for