diff options
author | Catherine Moore <clm@redhat.com> | 1999-05-19 10:20:12 +0000 |
---|---|---|
committer | Catherine Moore <clm@redhat.com> | 1999-05-19 10:20:12 +0000 |
commit | 1ceea51453d4ef2d739ce4dfe5d7a74c9a32dc64 (patch) | |
tree | f3828a1ad897a0c33a47f706508d4cf3e8f64297 /bfd/coff-arm.c | |
parent | 948221a8bd69c734e599d0cd9f0d7227b6bfdc02 (diff) | |
download | gdb-1ceea51453d4ef2d739ce4dfe5d7a74c9a32dc64.zip gdb-1ceea51453d4ef2d739ce4dfe5d7a74c9a32dc64.tar.gz gdb-1ceea51453d4ef2d739ce4dfe5d7a74c9a32dc64.tar.bz2 |
* coff-arm.c (coff_arm_relocate_section): Account for
multiple glue sections when generating base file entries.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r-- | bfd/coff-arm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index 3c99341..594e757 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); } } |