700-pr5322-dont-adjust-p_vaddr_offset.patch 654 B

1234567891011121314151617181920
  1. --- a/bfd/elf.c 2009-07-14 14:30:19.000000000 +0200
  2. +++ b/bfd/elf.c 2009-07-14 21:11:42.000000000 +0200
  3. @@ -5362,12 +5449,16 @@
  4. *pointer_to_map = map;
  5. pointer_to_map = &map->next;
  6. +#if 0
  7. + /* FIXME: It is wrong when section flags are changed. See
  8. + PR binutils/5233. */
  9. if (matching_lma != map->p_paddr
  10. && !map->includes_filehdr && !map->includes_phdrs)
  11. /* There is some padding before the first section in the
  12. segment. So, we must account for that in the output
  13. segment's vma. */
  14. map->p_vaddr_offset = matching_lma - map->p_paddr;
  15. +#endif
  16. free (sections);
  17. continue;