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

Palmer Dabbelt palmer@dabbelt.com
Tue Jun 20 21:15:00 GMT 2017


On Wed, 14 Jun 2017 13:43:52 PDT (-0700), joseph@codesourcery.com wrote:
> 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.

OK, we'll move these as part of the v2 patch set.

Thanks!



More information about the Libc-alpha mailing list