mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8160404: RelocationHolder constructors have bugs
Reviewed-by: kvn, jrose, jvernee
This commit is contained in:
parent
bf9a8ce0bb
commit
bfa921ae6c
3 changed files with 206 additions and 110 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue