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

--- Comment #3 from Geir Johansen <geir at cray dot com> ---
Problem still occurs with somewhat more recent software:

$ gcc --version
gcc (GCC) 9.2.0 20190812 (Cray Inc.)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc -c hello.c
$ ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
$ ld -m elf_x86_64 -static /usr/lib64/crt1.o /usr/lib64/crti.o
/opt/gcc/9.2.0/snos/lib/gcc/x86_64-suse-linux/9.2.0/crtbeginT.o
-L/opt/gcc/9.2.0/snos/lib/gcc/x86_64-suse-linux/9.2.0
-L/opt/gcc/9.2.0/snos/lib/lib64 hello.o --start-group -lgcc -lgcc_eh -lc
--end-group /opt/gcc/9.2.0/snos/lib/gcc/x86_64-suse-linux/9.2.0/crtend.o
/usr/lib64/crtn.o -Bdynamic /lib64/libaio.so.1
$ ./a.out
-bash: ./a.out: No such file or directory
$ file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically
linked, interpreter /lib/ld6, for GNU/Linux 3.2.0, with debug_info, not
stripped
$ ldd a.out
        linux-vdso.so.1 (0x00007ffc5a318000)
        libaio.so.1 => /lib64/libaio.so.1 (0x00007f1372c2c000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f1372872000)
        /lib/ld64.so.1 => /lib64/ld-linux-x86-64.so.2 (0x00007f1372e2e000)
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to