This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Fix readelf segment map
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: amodra at bigpond dot net dot au
- Date: Thu, 2 Feb 2006 14:56:11 -0800
- Subject: Re: PATCH: Fix readelf segment map
- References: <20060202220053.GA14920@lucon.org>
Apparently, I was wrong. I tried to fix
[hjl@gnu-13 strip-4]$ readelf -l a.out
Elf file type is EXEC (Executable file)
Entry point 0x401108
There are 3 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000400000
0x0000000000400000
0x00000000000011fc 0x00000000000011fc R E 100000
LOAD 0x00000000000011fc 0x00000000005011fc
0x00000000005011fc
0x000000000000009c 0x000000000000009c RW 100000
TLS 0x00000000000011fc 0x00000000005011fc
0x00000000005011fc
0x0000000000000080 0x00000000000000c0 R 1
Section to Segment mapping:
Segment Sections...
00 .text
01 .tdata .got.plt
02 .tdata .tbss .got.plt
The last one should be
02 .tdata .tbss
I backed out my last change.
H.J.
---
On Thu, Feb 02, 2006 at 02:00:53PM -0800, H. J. Lu wrote:
> http://sourceware.org/ml/binutils/2004-09/msg00227.html
>
> removed .tbss sections from the PT_LOAD segment map where it belongs.
> I am checking in this patch to fix it.
>
>
> H.J.
> ---
> binutils/
>
> 2006-02-02 H.J. Lu <hongjiu.lu@intel.com>
>
> * readelf.c (process_program_headers): Undo the change made on
> 2004-09-22. Match PT_DYNAMIC segment only with SHT_DYNAMIC
> sections.
>
> ld/testsuite/
>
> 2006-02-02 H.J. Lu <hongjiu.lu@intel.com>
>
> * ld-i386/tlsbin.rd: Update for changed segment map.
> * ld-i386/tlsnopic.rd: Likewise.
> * ld-i386/tlspic.rd: Likewise.
> * ld-powerpc/tlsexe.r: Likewise.
> * ld-powerpc/tlsexe32.r: Likewise.
> * ld-powerpc/tlsexetoc.r: Likewise.
> * ld-powerpc/tlsso.r: Likewise.
> * ld-powerpc/tlsso32.r: Likewise.
> * ld-powerpc/tlstocso.r: Likewise.
> * ld-s390/tlsbin.rd: Likewise.
> * ld-s390/tlsbin_64.rd: Likewise.
> * ld-s390/tlspic.rd: Likewise.
> * ld-s390/tlspic_64.rd: Likewise.
> * ld-sh/tlsbin-2.d: Likewise.
> * ld-sh/tlspic-2.d: Likewise.
> * ld-x86-64/tlsbin.rd: Likewise.
> * ld-x86-64/tlspic.rd: Likewise.
>