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(
|
||||
buf, sizeof(buf),
|
||||
".globl %s\n"
|
||||
".hidden %s\n"
|
||||
".byte 0x%02x, 0xC7, 0x%02x\n"
|
||||
"%s:\n"
|
||||
".type %s, @object\n"
|
||||
".size %s, 4\n"
|
||||
".long %zu",
|
||||
sym.c_str(),
|
||||
sym.c_str(),
|
||||
enc.rex,
|
||||
enc.modrm,
|
||||
sym.c_str(),
|
||||
sym.c_str(),
|
||||
sym.c_str(),
|
||||
imm
|
||||
);
|
||||
return std::string(buf);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user