I know for armcc(armlink), I can use -L--map flag to generate a map file. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0474c/BABDJCAA.html
我知道armcc(armlink),我可以使用-L-map标志来生成一个map文件。 http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0474c/BABDJCAA.html
But for clang compiler and linker, I tried all these flags, but none of them can generate link map file:
但对于clang编译器和链接器,我尝试了所有这些标志,但它们都不能生成链接映射文件:
flag1: xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl,--map -o exe objtest.o libtest.a
flag1:xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl, - map -o exe objtest.o libtest.a
flag2: xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl,-M -o exe objtest.o libtest.a
flag2:xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl,-M -o exe objtest.o libtest.a
flag3: xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl,-m -o exe objtest.o libtest.a
flag3:xcrun -sdk iphoneos clang -arch armv7s -Wl,-dead_strip -Wl,-m -o exe objtest.o libtest.a
What's wrong with my flag? Thanks in advance.
我的国旗有什么问题?提前致谢。
1 个解决方案
#1
7
Try -Wl,-map,output.map
, that should do it.
尝试-Wl,-map,output.map,应该这样做。
#1
7
Try -Wl,-map,output.map
, that should do it.
尝试-Wl,-map,output.map,应该这样做。