From 1ceea51453d4ef2d739ce4dfe5d7a74c9a32dc64 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Wed, 19 May 1999 10:20:12 +0000 Subject: [PATCH] * coff-arm.c (coff_arm_relocate_section): Account for multiple glue sections when generating base file entries. --- bfd/coff-arm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index 3c9934117a7..594e757c913 100644 --- a/bfd/coff-arm.c +++ b/bfd/coff-arm.c @@ -1211,7 +1211,8 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section, s->contents + my_offset + 8); if (info->base_file) - arm_emit_base_file_entry (info, output_bfd, s, A2T3_OFFSET); + arm_emit_base_file_entry (info, output_bfd, s, + my_offset + A2T3_OFFSET); } @@ -1236,7 +1237,6 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section, bfd_put_32 (output_bfd, tmp, contents + rel->r_vaddr - input_section->vma); - done = 1; } } @@ -1342,7 +1342,8 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section, s->contents + my_offset + 4); if (info->base_file) - arm_emit_base_file_entry (info, output_bfd, s, T2A3_OFFSET); + arm_emit_base_file_entry (info, output_bfd, s, + my_offset + T2A3_OFFSET); } } -- 2.30.2