bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/30144] LD --entry does not accept function name


From: nickc at redhat dot com
Subject: [Bug ld/30144] LD --entry does not accept function name
Date: Wed, 12 Apr 2023 13:02:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30144

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> ---
Hi Pali,

  Looking into this, it is actually quite hard to predict the mangling of the
  entry symbol name.  But I think that there might be a simple workaround:

  If you add a couple of assembler statements to define the DriverEntry symbol
  then this will not be mangled by the IX86 compiler, and the duplicate
definition
  will be ignored by the AMD64 assembler.  ie:

    asm (".set DriverEntry, .");
    asm (".global DriverEntry");
    __attribute__((stdcall)) 
    long DriverEntry (void *DriverObject, void *RegistryPath) { 
       return 0;
    }

  Would this be sufficient for you ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]