1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 02:20:51 +03:00

temporary

This commit is contained in:
Rui Ueyama 2021-01-12 13:18:55 +09:00
parent d1b4f15e49
commit 4f1249ea2a

View File

@ -158,7 +158,8 @@ void InputSection::copy_buf() {
write_val(rel.r_type, loc, val);
};
#define S (ref ? ref->piece->get_addr() : sym.get_addr())
#define S (ref ? ref->piece->get_addr() \
: (sym.plt_idx == -1 ? sym.get_addr() : sym.get_plt_addr()))
#define A (ref ? ref->addend : rel.r_addend)
#define P (output_section->shdr.sh_addr + offset + rel.r_offset)
#define L sym.get_plt_addr()