diff options
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index a6073f7..2215339 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4095,6 +4095,16 @@ get_tic6x_segment_type (unsigned long type) } static const char * +get_riscv_segment_type (unsigned long type) +{ + switch (type) + { + case PT_RISCV_ATTRIBUTES: return "RISCV_ATTRIBUTES"; + default: return NULL; + } +} + +static const char * get_hpux_segment_type (unsigned long type, unsigned e_machine) { if (e_machine == EM_PARISC) @@ -4203,6 +4213,9 @@ get_segment_type (Filedata * filedata, unsigned long p_type) case EM_S390_OLD: result = get_s390_segment_type (p_type); break; + case EM_RISCV: + result = get_riscv_segment_type (p_type); + break; default: result = NULL; break; |