[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/4499] assign file positions assumes segment offsets increa
From: |
amodra at bigpond dot net dot au |
Subject: |
[Bug binutils/4499] assign file positions assumes segment offsets increasing |
Date: |
13 May 2007 13:04:31 -0000 |
------- Additional Comments From amodra at bigpond dot net dot au 2007-05-13
14:04 -------
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x00052c 0x0804a52c 0x0804a52c 0x00100 0x00100 R 0x4
INTERP 0x000114 0x08048114 0x08048114 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x00052c 0x0804a52c 0x0804a52c 0x0014a 0x0014a R 0x1000
LOAD 0x00042c 0x0804942c 0x0804942c 0x00100 0x00104 RW 0x1000
DYNAMIC 0x000440 0x08049440 0x08049440 0x000c8 0x000c8 RW 0x4
NOTE 0x000128 0x08048128 0x08048128 0x00020 0x00020 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
LOAD 0x000000 0x08048000 0x08048000 0x0042c 0x0042c R E 0x1000
The basic problem here is that bfd can't cope with load segments that don't have
increasing file offset.
What's more the first load segment contains the program headers, which tricks
these lines in elf.c
adjust = vma_page_aligned_bias (m->sections[0]->vma, off, align);
off += adjust;
We ought to be using the phdr vma rather than m->sections[0]->vma in this case.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://sourceware.org/bugzilla/show_bug.cgi?id=4499
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.