mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
* deffilep.y (def_image_name): If the image name does not have
a suffix, append the default. * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* deffilep.y (def_image_name): If the image name does not have
|
||||||
|
a suffix, append the default.
|
||||||
|
* ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
|
||||||
|
|
||||||
2006-01-31 Danny Smith dannysmith@users.sourceforge.net
|
2006-01-31 Danny Smith dannysmith@users.sourceforge.net
|
||||||
|
|
||||||
* NEWS: Mention support for forward exports in PE-COFF dll's.
|
* NEWS: Mention support for forward exports in PE-COFF dll's.
|
||||||
|
@ -654,6 +654,15 @@ def_image_name (const char *name, int base, int is_dll)
|
|||||||
def_filename, linenumber, is_dll ? "LIBRARY" : "NAME", name);
|
def_filename, linenumber, is_dll ? "LIBRARY" : "NAME", name);
|
||||||
if (def->name)
|
if (def->name)
|
||||||
free (def->name);
|
free (def->name);
|
||||||
|
/* Append the default suffix, if none specified. */
|
||||||
|
if (strchr (image_name, '.') == 0)
|
||||||
|
{
|
||||||
|
const char * suffix = is_dll ? ".dll" : ".exe";
|
||||||
|
|
||||||
|
def->name = xmalloc (strlen (image_name) + strlen (suffix) + 1);
|
||||||
|
sprintf (def->name, "%s%s", image_name, suffix);
|
||||||
|
}
|
||||||
|
else
|
||||||
def->name = xstrdup (image_name);
|
def->name = xstrdup (image_name);
|
||||||
def->base_address = base;
|
def->base_address = base;
|
||||||
def->is_dll = is_dll;
|
def->is_dll = is_dll;
|
||||||
|
@ -5598,6 +5598,22 @@ by "forwarding" to another module and treating it as an alias for
|
|||||||
@code{afoo} exported from the DLL @samp{abc.dll}. The final symbol
|
@code{afoo} exported from the DLL @samp{abc.dll}. The final symbol
|
||||||
@code{var1} is declared to be a data object.
|
@code{var1} is declared to be a data object.
|
||||||
|
|
||||||
|
The optional @code{LIBRARY <name>} command indicates the @emph{internal}
|
||||||
|
name of the output DLL. If @samp{<name>} does not include a suffix,
|
||||||
|
the default library suffix, @samp{.DLL} is appended.
|
||||||
|
|
||||||
|
When the .DEF file is used to build an application. rather than a
|
||||||
|
library, the @code{NAME <name>} command shoud be used instead of
|
||||||
|
@code{LIBRARY}. If @samp{<name>} does not include a suffix, the default
|
||||||
|
executable suffix, @samp{.EXE} is appended.
|
||||||
|
|
||||||
|
With either @code{LIBRARY <name>} or @code{NAME <name>} the optional
|
||||||
|
specification @code{BASE = <number>} may be used to specify a
|
||||||
|
non-default base address for the image.
|
||||||
|
|
||||||
|
If neither @code{LIBRARY <name>} nor @code{NAME <name>} is specified,
|
||||||
|
the internal name is the same as the filename specified on the command line.
|
||||||
|
|
||||||
The complete specification of an export symbol is:
|
The complete specification of an export symbol is:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
Reference in New Issue
Block a user