This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ld sig11 while compiling asmutils-0.14 on RedHat-7.1


Hello,

I'm trying to compile asmutils-0.14 (the set of system utilities
written in x86 asm - see http://www.linuxassembly.org/asmutils.html
for details) and got the fatal error from ld:

[skipped]

gmake[1]: Entering directory
`/home/antipov/work/stuff/asmutils-0.14/lib'
nasm -w+orphan-labels -w+macro-params -i../inc/ -g -f elf -D__LINUX__
-D__OPTIMIZE__=__O_SIZE__ -DDEBUG -D__KERNEL__=24  libc.asm
libc.asm:155: warning: section attributes ignored on redeclaration of
section `.text'
nasm -w+orphan-labels -w+macro-params -i../inc/ -g -f elf -D__LINUX__
-D__OPTIMIZE__=__O_SIZE__ -DDEBUG -D__KERNEL__=24  libc_stub.asm
libc_stub.asm:11: warning: section attributes ignored on redeclaration
of section `.text'
ar rcv libc.a libc.o
a - libc.o
ld  -shared -soname ./libc.so.0 \
        -o ./libc.so.0 libc.o
gmake[1]: *** [libc] Segmentation fault (core dumped)
gmake[1]: Leaving directory `/home/antipov/work/stuff/asmutils-0.14/lib'
[antipov@gussie asmutils-0.14]$

When I'm running gdb, I see:

[antipov@gussie asmutils-0.14]$ cd lib
[antipov@gussie lib]$ gdb /usr/bin/ld core
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
Core was generated by `ld -shared -soname ./libc.so.0 -o ./libc.so.0
libc.o'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libbfd-2.10.91.0.2.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libbfd-2.10.91.0.2.so
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x40047ea5 in elf_i386_check_relocs () at eval.c:41
41      eval.c: No such file or directory.
        in eval.c
(gdb) bt
#0  0x40047ea5 in elf_i386_check_relocs () at eval.c:41
#1  0x4004e31d in elf_link_add_object_symbols () at eval.c:41
#2  0x0805121e in bfd_link_hash_lookup () at eval.c:41
#3  0x08051972 in bfd_link_hash_lookup () at eval.c:41
#4  0x080540cb in bfd_link_hash_lookup () at eval.c:41
#5  0x080567b5 in bfd_link_hash_lookup () at eval.c:41
#6  0x4009e177 in __libc_start_main (
    main=0x80562d0 <bfd_link_hash_lookup+48284>, argc=7,
ubp_av=0xbffffa2c, 
    init=0x8049e4c <_init>, fini=0x80694e0 <_fini>, 
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffa1c)
    at ../sysdeps/generic/libc-start.c:129

My stuff is RedHat 7.1 with default kernel, gcc, nasm and binutils:
[antipov@gussie lib]$ cat /proc/version 
Linux version 2.4.2-2 (root@gussie.auriga.ru) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-81)) #19 ÷ÔÒ áÐÒ 24 19:56:06 MSD 2001
[antipov@gussie lib]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
[antipov@gussie lib]$ ld -v
GNU ld version 2.10.91 (with BFD 2.10.91.0.2)

`nasm' has no `-v' or `-V' or `--version' - it's version 0.98-6 (as
shown by `rpm -qi nasm').

Thanks,
Dmitry Antipov <dmitry.antipov@auriga.ru>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]