Skip to content

Conversation

@nukyan
Copy link

@nukyan nukyan commented May 5, 2025

I'm attempted to build libiconv with this, then it failed due to the it doesn't handles -Wl,--out-implibs,libcharset.dll.a properly.

However, I don't know whether it could now...

@wsfulton
Copy link
Member

wsfulton commented Jul 1, 2025

Can you pop some documentation into the README file and please explain how you chose each of the linker option mappings. Thanks.

@nukyan
Copy link
Author

nukyan commented Jul 5, 2025

Can you pop some documentation into the README file and please explain how you chose each of the linker option mappings. Thanks.

--dynamicbase --disable-dynamicbase --nxcompat and --disable-nxcompat both changes DLL_CHARACTERRISTICS fields, equivalent to /DYNAMICBASE and /NXCOMPAT in MSVC.

--gc-sections enable GC of unused sections generated by -ffunction-sections and -fdata-sections in GCC. /OPT:REF elimnates packaged functions (/Gy) and datas (/Gw) in COMDAT sections in MSVC.

--out-implib changes the name of output library, /IMPLIB is the same.

--icf is equivalent to /OPT:ICF in MSVC I think.

-Bshareable is equivalent to -shared and --dll which creates a dynamic library instead of executable file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants