diff options
author | DJ Delorie <dj@redhat.com> | 2008-01-25 21:08:17 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2008-01-25 21:08:17 +0000 |
commit | f4236fe4560a39155dd1e633f88914b1ac28d824 (patch) | |
tree | bea066df68e632906ee17d726025585d53016135 /binutils/readelf.c | |
parent | c006d697e48452ca44388354d7ce9ade74558039 (diff) | |
download | gdb-f4236fe4560a39155dd1e633f88914b1ac28d824.zip gdb-f4236fe4560a39155dd1e633f88914b1ac28d824.tar.gz gdb-f4236fe4560a39155dd1e633f88914b1ac28d824.tar.bz2 |
* readelf.c (process_section_headers): Add m16c handler.
(is_16bit_abs_reloc): Recognize R_M32C_16.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 807b0f1..20a7681 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4162,6 +4162,16 @@ process_section_headers (FILE *file) eh_addr_size = 4; break; } + break; + + case EM_M32C: + switch (elf_header.e_flags & EF_M32C_CPU_MASK) + { + case EF_M32C_CPU_M16C: + eh_addr_size = 2; + break; + } + break; } #define CHECK_ENTSIZE_VALUES(section, i, size32, size64) \ @@ -8196,6 +8206,8 @@ is_16bit_abs_reloc (unsigned int reloc_type) case EM_IP2K_OLD: case EM_IP2K: return reloc_type == 1; /* R_IP2K_16. */ + case EM_M32C: + return reloc_type == 1; /* R_M32C_16 */ case EM_MSP430_OLD: case EM_MSP430: return reloc_type == 5; /* R_MSP430_16_BYTE. */ |