Commit 97f8f864 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC/s390: [ubsan] Port Code to the new design

Port fe61cd64

R=jkummerow@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: Idee62637817fea020f809772de96b43c2a39cadd
Reviewed-on: https://chromium-review.googlesource.com/c/1331832Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#57448}
parent c69cb1f6
...@@ -2087,7 +2087,7 @@ void Assembler::EmitRelocations() { ...@@ -2087,7 +2087,7 @@ void Assembler::EmitRelocations() {
it != relocations_.end(); it++) { it != relocations_.end(); it++) {
RelocInfo::Mode rmode = it->rmode(); RelocInfo::Mode rmode = it->rmode();
Address pc = reinterpret_cast<Address>(buffer_) + it->position(); Address pc = reinterpret_cast<Address>(buffer_) + it->position();
RelocInfo rinfo(pc, rmode, it->data(), nullptr); RelocInfo rinfo(pc, rmode, it->data(), Code());
// Fix up internal references now that they are guaranteed to be bound. // Fix up internal references now that they are guaranteed to be bound.
if (RelocInfo::IsInternalReference(rmode)) { if (RelocInfo::IsInternalReference(rmode)) {
......
...@@ -822,7 +822,7 @@ void Assembler::EmitRelocations() { ...@@ -822,7 +822,7 @@ void Assembler::EmitRelocations() {
it != relocations_.end(); it++) { it != relocations_.end(); it++) {
RelocInfo::Mode rmode = it->rmode(); RelocInfo::Mode rmode = it->rmode();
Address pc = reinterpret_cast<Address>(buffer_) + it->position(); Address pc = reinterpret_cast<Address>(buffer_) + it->position();
RelocInfo rinfo(pc, rmode, it->data(), nullptr); RelocInfo rinfo(pc, rmode, it->data(), Code());
// Fix up internal references now that they are guaranteed to be bound. // Fix up internal references now that they are guaranteed to be bound.
if (RelocInfo::IsInternalReference(rmode)) { if (RelocInfo::IsInternalReference(rmode)) {
......
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