You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
externchar__IMPORT_DESCRIPTOR_dll;
intmain()
{
// force linker to pull in archive member with undefined section symbolsvoid*p=&__IMPORT_DESCRIPTOR_dll;
}
Build Steps
cl /c dll.c
link /dll dll.obj
cl /c main.c
lld-link dll.lib main.obj
Error: lld-link: error: section larger than 4 GiB: .data
I think lld misinterprets these symbols in dll.lib, the symbol values are actually section flags that linker is supposed to match with resolved .idata$4 and .idata$5.