Only give the delta, not the new base address.
Bug:
25612095
Change-Id: Ieeed5000da5e72477764fc92fe8fa016287d4cd8
int32_t base_offset = ChooseRelocationOffsetDelta(ART_BASE_ADDRESS_MIN_DELTA,
ART_BASE_ADDRESS_MAX_DELTA);
int32_t base_offset = ChooseRelocationOffsetDelta(ART_BASE_ADDRESS_MIN_DELTA,
ART_BASE_ADDRESS_MAX_DELTA);
- cmd.push_back(StringPrintf("--base-offset-delta=0x%x", ART_BASE_ADDRESS + base_offset));
+ cmd.push_back(StringPrintf("--base-offset-delta=%d", base_offset));
std::string error_msg;
bool result = Exec(cmd, &error_msg);
std::string error_msg;
bool result = Exec(cmd, &error_msg);