diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-05-29 07:07:21 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-05-29 07:07:21 +0000 |
commit | 11701589a86095161ed1739192cd80a0a94ca868 (patch) | |
tree | 503e8d304fd6e280a9f06d0fc9ad4dc82f59675f /bfd/elf.c | |
parent | fcac911af1c9b3f79e93e0317d594dc99794c39a (diff) | |
download | gdb-11701589a86095161ed1739192cd80a0a94ca868.zip gdb-11701589a86095161ed1739192cd80a0a94ca868.tar.gz gdb-11701589a86095161ed1739192cd80a0a94ca868.tar.bz2 |
bfd/
* elf.c (assign_file_positions_for_load_sections): Adjust pre-section
gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses.
binutils/testsuite/
* binutils-all/objcopy.exp: Call KEEP_DEBUG_SYMBOLS_AND_TEST_COPY.
(keep_debug_symbols_and_test_copy): New function.
(test5, test6): New variables.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4371,12 +4371,12 @@ assign_file_positions_for_load_sections (bfd *abfd, && ((this_hdr->sh_flags & SHF_TLS) == 0 || p->p_type == PT_TLS)))) { - bfd_signed_vma adjust = sec->lma - (p->p_paddr + p->p_memsz); + bfd_signed_vma adjust = sec->vma - (p->p_vaddr + p->p_memsz); if (adjust < 0) { (*_bfd_error_handler) - (_("%B: section %A lma 0x%lx overlaps previous sections"), + (_("%B: section %A vma 0x%lx overlaps previous sections"), abfd, sec, (unsigned long) sec->lma); adjust = 0; } |