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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-12
           Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com
     Ever confirmed|0                           |1

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andreas Krebbel from comment #8)
> (In reply to H.J. Lu from comment #7)
> > Please provide a testcase I can reproduce it on x86-64 with
> > only cross binutils.
> 
> The testcase I've attached fails the same way with cross binutils:
> 
> install-s390x/bin/s390x-ibm-linux-ld -melf64_s390 b.os
> Segmentation fault (core dumped)

[hjl@gnu-6 pr19073]$ cat xxx.c
void
__foo ()
{
}

asm (".weak foo_v1");
asm (".globl foo_v1");
asm (".set foo_v1, __foo");
asm (".weak foo_v2");
asm (".globl foo_v2");
asm (".set foo_v2, __foo");
asm (".symver foo_v2,foo@VERS.2");
asm (".symver foo_v1,foo@@VERS.1");
asm (".globl foo");
asm (".weak foo");
asm (".set foo, __foo");
[hjl@gnu-6 pr19073]$ make libfoo.so
gcc -B./ -fPIC   -c -o xxx.o xxx.c
./ld -o foo.o -r xxx.o
./ld -o libfoo.so -shared foo.o --version-script foo.v
Makefile:12: recipe for target 'libfoo.so' failed
make: *** [libfoo.so] Segmentation fault
make: *** Deleting file 'libfoo.so'
[hjl@gnu-6 pr19073]$ 

There is a bug in sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S
which defines both getcontext@@GLIBC_2.2 and getcontext.  But linker
shouldn't crash.

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