bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12516] BFD: The first section in the PT_DYNAMIC segment is not t


From: hjl.tools at gmail dot com
Subject: [Bug ld/12516] BFD: The first section in the PT_DYNAMIC segment is not the .dynamic section
Date: Thu, 24 Feb 2011 23:24:32 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12516

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|binutils                    |ld

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-24 23:23:59 
UTC ---
It is a linker bug:

as   -o x.o x.s
./usr/local/bin/ld -shared -T x.ld -o x.so x.o
readelf -l x.so

Elf file type is DYN (Shared object file)
Entry point 0xe8
There are 2 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x00000000000002a0 0x00000000000002a0  RWE    100000
  DYNAMIC        0x00000000000001f0 0x00000000000001f0 0x00000000000001f0
                 0x00000000000000b0 0x00000000000000b0  RW     8

 Section to Segment mapping:
  Segment Sections...
   00     .text .dynsym .dynstr .hash .data .got.plt .data1 .dynamic 
   01     .data1 .dynamic

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]