modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git] / toolchain / binutils / patches / 2.18 / 700-pr5322-dont-adjust-p_vaddr_offset.patch
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  
7 +#if 0
8 +          /* FIXME: It is wrong when section flags are changed. See
9 +             PR binutils/5233.  */
10           if (matching_lma != map->p_paddr
11               && !map->includes_filehdr && !map->includes_phdrs)
12             /* There is some padding before the first section in the
13                segment.  So, we must account for that in the output
14                segment's vma.  */
15             map->p_vaddr_offset = matching_lma - map->p_paddr;
16 +#endif
17  
18           free (sections);
19           continue;
20