bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/3469] New: GAS encodes corrupt relocation ld reports bad reloc


From: raj dot khem at gmail dot com
Subject: [Bug gas/3469] New: GAS encodes corrupt relocation ld reports bad reloc symbol index
Date: 7 Nov 2006 02:05:06 -0000

I stumbled over this issue when compiling glibc-cvs with GCC 4.2 and
binutils-cvs. This happens when compiling glibc in 64bits. 32 bit compiled fine.

Toolchain defaults to ppc32

Analysing the object of the test file, gas encodes one relocation wrongly.

Relocation section '.rela.toc' at offset 0xdb40 contains 144 entries:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend000000000000  003b00000026 R_PPC64_ADDR64    0000000000000ac8 
_rtld_global + 0
000000000008  003c00000026 R_PPC64_ADDR64    0000000000000000 _dl_argc + 0
000000000010  9aeaca400000026 R_PPC64_ADDR64    bad symbol index: 09aeaca4


The Info has the index wrong. It seems like the data to hold this is 64 bit and
the top half has random value.

-- 
           Summary: GAS encodes corrupt relocation ld reports bad reloc
                    symbol index
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: raj dot khem at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-montavista-linux-gnu


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

------- 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]