[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30147] Allow to specify PE export name
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/30147] Allow to specify PE export name |
Date: |
Mon, 20 Feb 2023 12:51:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30147
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Pali Rohár from comment #0)
Hi Pali,
> But seems there is no way to specify export name when generating PE binary.
> LD accepts -soname= option also for PE binaries but seems that it is just
> ignored without any warning/error message.
True - the documentation does mention that this is an ELF only option, but the
linker probably could generate a warning message if it is used when generating
output in a different format.
> And PE export name in export
> table (.edata) is taken from the -o output option.
For this, I think that you need to use a .def file. If one is provided then
the export name is taken from the NAME field in that file.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.