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 0/5] Add support for R_386_GOT32X/R_X86_64_[REX_]GOTPCRELX


> Since for some binop, linker needs to rewrite the REX byte, it needs
> to know if instruction has a REX byte.  R_X86_64_GOTPCREL doesn't
> have such information

The byte stream before the R_X86_64_GOTPCREL location does. Checking
for the REX prefix is not that different from checking if the
instruction in a mov when converting mov to lea.

Cheers,
Rafael


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