From 6528d0cb50579b6b402582d60723583c7ac8759f Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Fri, 23 Mar 2007 21:26:23 +0000 Subject: PR gas/3811 * readelf.c (debug_apply_rela_addends): Do nothing for SH. --- binutils/readelf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'binutils/readelf.c') diff --git a/binutils/readelf.c b/binutils/readelf.c index 359ddbe..000221e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -7803,6 +7803,10 @@ debug_apply_rela_addends (void *file, if (!is_relocatable) return 1; + /* SH uses RELA but uses in place value instead of the addend field. */ + if (elf_header.e_machine == EM_SH) + return 0; + for (relsec = section_headers; relsec < section_headers + elf_header.e_shnum; ++relsec) -- cgit v1.1