From aa4cf6f87c147003350e21cd097ba19cfdb227ba Mon Sep 17 00:00:00 2001 From: Yoshinori Sato Date: Thu, 28 Oct 2004 16:54:25 +0000 Subject: [PATCH] h8/300 forbid relocation of absolute symbol --- elf2flt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/elf2flt.c b/elf2flt.c index 23e5e97..31f23f2 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -716,13 +716,11 @@ dump_symbols(symbols, number_of_symbols); bad_relocs++; continue; } - relocation_needed = 1; + /* Absolute symbol done not relocation */ + relocation_needed = !bfd_is_abs_section(sym_section); sym_addr = (*(q->sym_ptr_ptr))->value; sym_vma = bfd_section_vma(abs_bfd, sym_section); sym_addr += sym_vma + q->addend; - /* no reloc from area7 */ - if (sym_addr > 0xe00000) - relocation_needed = 0; break; case R_H8_DIR32: case R_H8_DIR32A16: /* currently 32, could be made 16 */ -- 2.39.5