[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 04/23] elf: Add relocation types to elfstructs.h



On 12/02/16 18:05, Konrad Rzeszutek Wilk wrote:
> From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
>
> Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

(this patch looks like it can be fast-tracked in the series?)

> ---
> v2: Slim the list as we do not use all of them.
> ---
>  xen/include/xen/elfstructs.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/xen/include/xen/elfstructs.h b/xen/include/xen/elfstructs.h
> index 12ffb82..4ff3258 100644
> --- a/xen/include/xen/elfstructs.h
> +++ b/xen/include/xen/elfstructs.h
> @@ -348,6 +348,14 @@ typedef struct {
>  #define      ELF64_R_TYPE(info)      ((info) & 0xFFFFFFFF)
>  #define ELF64_R_INFO(s,t)    (((s) << 32) + (u_int32_t)(t))
>  
> +/* x86-64 relocation types. We list only the ones we implement. */
> +#define R_X86_64_NONE                0       /* No reloc */
> +#define R_X86_64_64          1       /* Direct 64 bit  */
> +#define R_X86_64_PC32                2       /* PC relative 32 bit signed */
> +#define R_X86_64_PLT32               4       /* 32 bit PLT address */
> +#define R_X86_64_32          10      /* Direct 32 bit zero extended */
> +#define R_X86_64_32S         11      /* Direct 32 bit sign extended */
> +
>  /* Program Header */
>  typedef struct {
>       Elf32_Word      p_type;         /* segment type */


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.