DescriptionAdded support for two more (bfd) linker flags that will be useful
to counter the somewhat conservative handling of intrinsics by pnacl.
For example: when we see a use of the sin() function we will typically link
in a copy of sin() using floating point emulation even if the llc backend
can generate a corresponding cpu/copro instructions for sin.
This bloats pnacl binaries sowewhat.
The -gc-sections instructs the linker to throw out unused functions such as
sin(). This only works if they reside in their own section which can be achieved with the -ffunction-section (llvm-)gcc option or via manual annotation.
NOTE: this option increases link time somewhat
Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=5808
Patch Set 1 #
Total comments: 2
Patch Set 2 : '' #Messages
Total messages: 4 (0 generated)
|