mirror of
https://github.com/rui314/mold.git
synced 2024-11-13 22:05:32 +03:00
Fix warning: variable ‘check’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Martin Liska <mliska@suse.cz>
This commit is contained in:
parent
305153b9c7
commit
c59b3f5fa5
@ -191,13 +191,6 @@ void InputSection<E>::apply_reloc_alloc(Context<E> &ctx, u8 *base) {
|
|||||||
Symbol<E> &sym = *file.symbols[rel.r_sym];
|
Symbol<E> &sym = *file.symbols[rel.r_sym];
|
||||||
u8 *loc = base + rel.r_offset;
|
u8 *loc = base + rel.r_offset;
|
||||||
|
|
||||||
auto check = [&](i64 val, i64 lo, i64 hi) {
|
|
||||||
if (val < lo || hi <= val)
|
|
||||||
Error(ctx) << *this << ": relocation " << rel << " against "
|
|
||||||
<< sym << " out of range: " << val << " is not in ["
|
|
||||||
<< lo << ", " << hi << ")";
|
|
||||||
};
|
|
||||||
|
|
||||||
u64 S = sym.get_addr(ctx);
|
u64 S = sym.get_addr(ctx);
|
||||||
u64 A = rel.r_addend;
|
u64 A = rel.r_addend;
|
||||||
u64 P = get_addr() + rel.r_offset;
|
u64 P = get_addr() + rel.r_offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user