diff options
author | Alan Modra <amodra@gmail.com> | 2022-04-09 14:40:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-04-09 14:49:11 +0930 |
commit | 81c5e3764b2ad8f0da59011b7610ae50e1f2e2ca (patch) | |
tree | b5caa2d0c160ff7ef3149f7d012fdb76b6c0f5bb | |
parent | 680e019e5aeec49734760653145fee89f0ddc00b (diff) | |
download | gdb-81c5e3764b2ad8f0da59011b7610ae50e1f2e2ca.zip gdb-81c5e3764b2ad8f0da59011b7610ae50e1f2e2ca.tar.gz gdb-81c5e3764b2ad8f0da59011b7610ae50e1f2e2ca.tar.bz2 |
Correct nds32 readelf reloc numbers
* readelf.c (is_32bit_abs_reloc, is_16bit_abs_reloc): Comment fixes.
(is_none_reloc): Correct nds32 reloc numbers.
-rw-r--r-- | binutils/readelf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index a9207b0..d45e092 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14272,7 +14272,7 @@ is_32bit_abs_reloc (Filedata * filedata, unsigned int reloc_type) case EM_MT: return reloc_type == 2; /* R_MT_32. */ case EM_NDS32: - return reloc_type == 20; /* R_NDS32_RELA. */ + return reloc_type == 20; /* R_NDS32_32_RELA. */ case EM_ALTERA_NIOS2: return reloc_type == 12; /* R_NIOS2_BFD_RELOC_32. */ case EM_NIOS32: @@ -14584,7 +14584,7 @@ is_16bit_abs_reloc (Filedata * filedata, unsigned int reloc_type) case EM_MSP430_OLD: return reloc_type == 5; /* R_MSP430_16_BYTE. */ case EM_NDS32: - return reloc_type == 19; /* R_NDS32_RELA. */ + return reloc_type == 19; /* R_NDS32_16_RELA. */ case EM_ALTERA_NIOS2: return reloc_type == 13; /* R_NIOS2_BFD_RELOC_16. */ case EM_NIOS32: @@ -14845,11 +14845,11 @@ is_none_reloc (Filedata * filedata, unsigned int reloc_type) case EM_METAG: return reloc_type == 3; /* R_METAG_NONE. */ case EM_NDS32: - return (reloc_type == 0 /* R_XTENSA_NONE. */ - || reloc_type == 204 /* R_NDS32_DIFF8. */ - || reloc_type == 205 /* R_NDS32_DIFF16. */ - || reloc_type == 206 /* R_NDS32_DIFF32. */ - || reloc_type == 207 /* R_NDS32_ULEB128. */); + return (reloc_type == 0 /* R_NDS32_NONE. */ + || reloc_type == 205 /* R_NDS32_DIFF8. */ + || reloc_type == 206 /* R_NDS32_DIFF16. */ + || reloc_type == 207 /* R_NDS32_DIFF32. */ + || reloc_type == 208 /* R_NDS32_DIFF_ULEB128. */); case EM_TI_PRU: return (reloc_type == 0 /* R_PRU_NONE. */ || reloc_type == 65 /* R_PRU_DIFF8. */ |