https://bugs.llvm.org/show_bug.cgi?id=47940
Bug ID: 47940
Summary: -ffunction_sections not working on LLVM windows...
Product: libraries
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: je...@radgametools.com
CC: llvm-bugs@lists.llvm.org
Even with -ffunction-sections on the command line, llvm on windows doesn't
split functions so that they can be independently stripped by the MS linker.
This is out at the OBJ level, after compiling, you can dissemble the obj, and
the functions aren't split into separate sections.
Easy to test, just add a:
void test()
{
__asm
{
nop
... 16K times or whatever
nop
}
}
And then build an exe - the exe will grow by 16K...
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs