---
title: 注意事项
description: "1. 如需添加-mllvm选项，需要使用-Wl，前缀将相应选项传递给链接器。例如，添加 -mllvm -align-all-functions=8，在使能lto时需要改为-Wl,-mllvm,-align-all-functions=8。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevps/compilation/ug-bisheng/kunpengbisheng_30_0017.html
sourcePath: /source/zh/kunpengdevps/compilation/ug-bisheng/kunpengbisheng_30_0017.html
indexId: 54df3f072ebe9031eff84e3b4e8b65e1879dbcba0482933ff192bd2f556f71e974
---
# 注意事项

1. 如需添加-mllvm选项，需要使用-Wl，前缀将相应选项传递给链接器。例如，添加 -mllvm -align-all-functions=8，在使能lto时需要改为-Wl,-mllvm,-align-all-functions=8。
2. LTO的原理决定了在链接前，-c选项的产物不再是elf二进制，而是LLVM bitcode，所以需要保证在链接的步骤必须加-flto选项，否则可能会导致产生找不到符号的问题（错误信息类似于“undefined reference to xxx”）。
