[PATCH 03/12] RISC-V: Startup and Dynamic Loading Code

Joseph Myers joseph@codesourcery.com
Wed Jun 14 21:02:00 GMT 2017


On Wed, 14 Jun 2017, Palmer Dabbelt wrote:

> diff --git a/sysdeps/riscv/dl-machine.h b/sysdeps/riscv/dl-machine.h

> +#define EM_RISCV 243
> +
> +/* Relocs. */
> +#define R_RISCV_NONE          0
> +#define R_RISCV_32            1
> +#define R_RISCV_64            2
> +#define R_RISCV_RELATIVE      3
> +#define R_RISCV_COPY          4
> +#define R_RISCV_JUMP_SLOT     5
> +#define R_RISCV_TLS_DTPMOD32  6
> +#define R_RISCV_TLS_DTPMOD64  7
> +#define R_RISCV_TLS_DTPREL32  8
> +#define R_RISCV_TLS_DTPREL64  9
> +#define R_RISCV_TLS_TPREL32  10
> +#define R_RISCV_TLS_TPREL64  11

EM_* and relocation values go in elf/elf.h, not dl-machine.h.  EM_RISCV is 
already there.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list