This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 03/12] RISC-V: Startup and Dynamic Loading Code


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!


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