bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/17553] New: .eh_frame_hdr table[0] FDE at 00000978 overlaps tabl


From: glaubitz at physik dot fu-berlin.de
Subject: [Bug ld/17553] New: .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1] FDE at 000009a0 when not using "-Wl,-traditional" on sh4
Date: Tue, 04 Nov 2014 22:57:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17553

            Bug ID: 17553
           Summary: .eh_frame_hdr table[0] FDE at 00000978 overlaps
                    table[1] FDE at 000009a0 when not using
                    "-Wl,-traditional" on sh4
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: glaubitz at physik dot fu-berlin.de

Created attachment 7896
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7896&action=edit
Sample code demonstrating the linker issue on sh4.

We have observed several packages failing to build on the Debian buildds for
the sh4 architecture with the linker complaining about FDE overlaps similar to
the bug reported in #17447, see for example:

> http://buildd.debian-ports.org/status/fetch.php?pkg=starplot&arch=sh4&ver=0.95.5-8.1&stamp=1415046459

However, despite using a version of binutils in Debian which contains the
cherry-picked fix for #17447, the problem still persists but just on sh4.

Michael Karcher has debugged the problem and has written a small example code
which allows to reproduce the issue. He found out that the problem goes away
when using the linker options "-Wl,-traditional":

address@hidden:~$ gcc -c test1.cpp test2.cpp
address@hidden:~$ gcc -shared -o test.so test1.o test2.o
/usr/bin/ld.bfd.real: .eh_frame_hdr table[0] FDE at 00000978 overlaps table[1]
FDE at 000009a0.
collect2: error: ld returned 1 exit status
address@hidden:~$ rm -f *.o
address@hidden:~$ gcc -c test1.cpp test2.cpp
address@hidden:~$ gcc -shared -o test.so test1.o test2.o -Wl,-traditional
address@hidden:~$

I am attaching his sample code in the hope it will be helpful to find the bug
and fix it.

Thanks,
Adrian

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