bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11219] New: LMA in link map versus object file disagrees


From: sterling at tensilica dot com
Subject: [Bug ld/11219] New: LMA in link map versus object file disagrees
Date: 25 Jan 2010 16:18:16 -0000

Given the test case below, the load address of secB as printed by ld as part of
the link map will be different from the load address of secB as it appears in
the object file.

[jaw] bash$ cat lmabug.t                                               PHDRS
{
   aphdr PT_LOAD;
}

SECTIONS
{

   secA : AT(asymbol)
   {
     BYTE(0)
   } :aphdr

   secB : AT(LOADADDR(secA) + SIZEOF(secA)) ALIGN(2)
   {
     BYTE(0)
   } :aphdr

   asymbol = .;
}
[jaw] bash$ ld -T lmabug.t empty.o -M | grep secB
secB            0x00000002        0x1 load address 0x00000004
[jaw] bash$ objdump -h a.out | grep secB
   1 secB          00000001  00000002  00000005  00001002  2**1

-- 
           Summary: LMA in link map versus object file disagrees
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: sterling at tensilica dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86-elf-linux
  GCC host triplet: x86-elf-linux
GCC target triplet: x86-elf-linux


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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