This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
src/ld ChangeLog ld.texinfo
- From: vapier at sourceware dot org
- To: binutils-cvs at sourceware dot org
- Date: 20 Jul 2010 19:25:43 -0000
- Subject: src/ld ChangeLog ld.texinfo
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2010-07-20 19:25:43
Modified files:
ld : ChangeLog ld.texinfo
Log message:
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>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2165&r2=1.2166
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ld.texinfo.diff?cvsroot=src&r1=1.260&r2=1.261