I'm from the ReactOS Project and we use LD for linking executables, DLLs and also drivers.
In ld/pe-dll.c:646, LD checks whether we have an export table and whether the component to be built is an executable. This works pretty well for executables and DLLs, but is quite problematic for drivers: They usually don't export anything, but also don't fall under info->executable. Thus, all of its functions are exported by default, which is certainly not the right way to go. -- Summary: LD's "export everything" logic problematic Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: mail at colinfinck dot de CC: bug-binutils at gnu dot org GCC target triplet: mingw32 http://sourceware.org/bugzilla/show_bug.cgi?id=9790 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils