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":

glaubitz@shinano:~$ gcc -c test1.cpp test2.cpp
glaubitz@shinano:~$ 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
glaubitz@shinano:~$ rm -f *.o
glaubitz@shinano:~$ gcc -c test1.cpp test2.cpp
glaubitz@shinano:~$ gcc -shared -o test.so test1.o test2.o -Wl,-traditional
glaubitz@shinano:~$

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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to