Turned ipin labels into object symbols to prevent objtool conflicts
This commit is contained in:
parent
cd045eff06
commit
bef55c1266
@ -188,13 +188,19 @@ static std::string make_final_x86_64_asm(const std::string& sym, const EncodedRe
|
|||||||
std::snprintf(
|
std::snprintf(
|
||||||
buf, sizeof(buf),
|
buf, sizeof(buf),
|
||||||
".globl %s\n"
|
".globl %s\n"
|
||||||
|
".hidden %s\n"
|
||||||
".byte 0x%02x, 0xC7, 0x%02x\n"
|
".byte 0x%02x, 0xC7, 0x%02x\n"
|
||||||
"%s:\n"
|
"%s:\n"
|
||||||
|
".type %s, @object\n"
|
||||||
|
".size %s, 4\n"
|
||||||
".long %zu",
|
".long %zu",
|
||||||
sym.c_str(),
|
sym.c_str(),
|
||||||
|
sym.c_str(),
|
||||||
enc.rex,
|
enc.rex,
|
||||||
enc.modrm,
|
enc.modrm,
|
||||||
sym.c_str(),
|
sym.c_str(),
|
||||||
|
sym.c_str(),
|
||||||
|
sym.c_str(),
|
||||||
imm
|
imm
|
||||||
);
|
);
|
||||||
return std::string(buf);
|
return std::string(buf);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user