This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x86-64: Treat PC32 relocation with branch as PLT32


> How is this safe, considering that R_X86_64_PC32 is also used for jump
> tables and the like?

Agreed.

If it's a branch instruction that could be treated as PLT32, the
compiler should emit a PLT32 reloc. We already reduce PLT32 to PC32 in
the linker when the symbol is fully resolved, so the effect is the
same, but without the danger of accidentally changing a non-branch.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]