Commit 00b9edba by Jim Stichnoth

Subzero: Make -asm-verbose local var offsets local.

When running with -asm-verbose, assembler directives like the following are generated: lv$__123 = 16 These symbols show up in "nm" output of the .o file, and cause inconsistencies in symbol numbering between filetype=asm and filetype=obj, when doing szbuild.py bisection debugging. The fix is to prepend ".L" to the symbol name, so that the assembler treats it as local. E.g.: .L$lv$__123 = 16 BUG= none R=eholk@chromium.org Review URL: https://codereview.chromium.org/2095633002 .
parent ecbf2c4b
......@@ -703,7 +703,7 @@ public:
std::string getSymbolicStackOffset() const {
if (!BuildDefs::dump())
return "";
return "lv$" + getName();
return ".L$lv$" + getName();
}
bool hasReg() const { return getRegNum().hasValue(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment