Previously this was only supported when specified on the command line or in directives.
Details
Diff Detail
Event Timeline
COFF/Driver.cpp | ||
---|---|---|
631 | Can you add a comment? |
COFF/Driver.cpp | ||
---|---|---|
631 | Sure - I can add one like this: In simple cases, only Name is set. Renamed exports are parsed and set as "ExtName = Name". If Name has the form "OtherDll.Func", it shouldn't be a normal exported function but a forward to another DLL instead. |
COFF/Driver.cpp | ||
---|---|---|
631 | Sounds good! I'd also mention that this is a MS linker feature. |
COFF/Driver.cpp | ||
---|---|---|
631 | It's not only a MS linker feature, GNU ld.bfd also supports the same, so I didn't add this comment. I started poking all this when I wanted to fix the misconception as I'm fixing in D46245, which all boiled down to the comment "// GNU dlltool accepts both = and ==." The thing is that GNU tools do support both = and ==, but they're two completely different things, while the = case is the exact same as in link.exe. Due to this misunderstanding, we've been overloading the same concept with different behaviours between MinGW and MSVC cases, even though it's actually much less messy. |
COFF/Driver.cpp | ||
---|---|---|
631 | By MS feature, I meant I'd make it clear that this is not MinGW-only feature. I'd think this is valuable information to add, as we've added a few MinGW-specific rules. |
Extended the comment as requested, mentioning that it's supported by both MS and GNU.
Can you add a comment?