This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 03/12] RISC-V: Startup and Dynamic Loading Code
- From: Palmer Dabbelt <palmer at dabbelt dot com>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Cc: Andrew Waterman <andrew at sifive dot com>
- Cc: patches at groups dot riscv dot org
- Cc: Darius Rad <darius at bluespec dot com>
- Date: Tue, 20 Jun 2017 14:14:57 -0700 (PDT)
- Subject: Re: [PATCH 03/12] RISC-V: Startup and Dynamic Loading Code
- Authentication-results: sourceware.org; auth=none
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!