8160404: RelocationHolder constructors have bugs

Reviewed-by: kvn, jrose, jvernee
This commit is contained in:
Kim Barrett 2022-12-16 20:47:40 +00:00
parent bf9a8ce0bb
commit bfa921ae6c
3 changed files with 206 additions and 110 deletions

View file

@ -2495,7 +2495,7 @@ void Assembler::jmp_literal(address dest, RelocationHolder const& rspec) {
assert(dest != NULL, "must have a target");
intptr_t disp = dest - (pc() + sizeof(int32_t));
assert(is_simm32(disp), "must be 32bit offset (jmp)");
emit_data(disp, rspec.reloc(), call32_operand);
emit_data(disp, rspec, call32_operand);
}
void Assembler::jmpb_0(Label& L, const char* file, int line) {