PLT32 relocations are only used because gcc doesn't support symbol
visibility for builtins like memcpy.
* If the relocation is to a debug frame, ignore the
* since it encodes the line number.
*/
- if (rela->type == R_X86_64_PC32) {
+ if (rela->type == R_X86_64_PC32 ||
+ rela->type == R_X86_64_PLT32) {
if (!strncmp(sec->base->name, ".text", 5)) {
struct insn insn;
rela_insn(sec, rela, &insn);
continue;
}
- if (rela->type == R_X86_64_PC32) {
+ if (rela->type == R_X86_64_PC32 ||
+ rela->type == R_X86_64_PLT32) {
struct insn insn;
rela_insn(sec, rela, &insn);
add_off = (long)insn.next_byte -