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

--- Comment #6 from glaubitz at physik dot fu-berlin.de <glaubitz at physik dot 
fu-berlin.de> ---
Some further tests with the same version of binutils on both sh4 and
cross-building on x86_64 using the two object files attached to this bug report
with the linking working fine on x86_64 while failing on sh4.

As you can see, the eh_frame sizes differ for test2.o, for test1.o they are
unrelaxed and identical.

We are currently speculating whether this is a bug in binutils or in the
compiler used to compile this particular version of binutils on sh4 is to be
blamed since the earlier, working version of binutils on sh4 was compiled with
an older version of gcc.

glaubitz@yamato:~/ldtest$ uname -a
Linux yamato 3.2.44-00829-g14e6110 #3901 PREEMPT Tue Jun 18 08:54:19 JST 2013
sh4a GNU/Linux
glaubitz@yamato:~/ldtest$ ld -c
ld: unrecognized option '-c'
ld: use the --help option for usage information
glaubitz@yamato:~/ldtest$ ld -v
GNU ld (GNU Binutils for Debian) 2.24.90.20141023
glaubitz@yamato:~/ldtest$ ld -shared --eh-frame-hdr -o test.so test1.o test2.o
--print-map | grep -B1 relaxing
ld: .eh_frame_hdr table[0] FDE at 00000500 overlaps table[1] FDE at 00000528.
 .eh_frame      0x00000500       0x80 test2.o
                                 0xb0 (size before relaxing)

mkarcher@aquila:/tmp/sh4$ uname -a
Linux aquila 3.13.0-rc1+ #7 SMP Fri Nov 22 23:16:16 CET 2013 x86_64 GNU/Linux
mkarcher@aquila:/tmp/sh4$
/home/karcher/src/Development/binutils/binutils-2.24.90.20141023/builddir-sh4-linux-gnu/ld/ld-new
-v
GNU ld (GNU Binutils for Debian) 2.24.90.20141023
mkarcher@aquila:/tmp/sh4$
/home/karcher/src/Development/binutils/binutils-2.24.90.20141023/builddir-sh4-linux-gnu/ld/ld-new
-shared --eh-frame-hdr -o test.so test1.o test2.o --print-map | grep -B1
relaxing
 .eh_frame      0x00000000000004f0       0x2c test2.o
                                         0xb0 (size before relaxing)

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