This is the mail archive of the binutils@sourceware.cygnus.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 broken on Solaris 8



Hello,

I've been testing the binutils CVS code on Solaris 8. (I have done my
checkout from the head branch, not the 2.10 branch.) Both the elf64_sparc
and elf32_sparc ld emulations appear to be broken in this environment.

The elf64 target produces binaries that die with a signal 9, apparently
without returning from execve().

The elf32 target mostly works, but there is a problem with destructors:

nbryant@sirius:~$ ./hello 
Hello, World!
Segmentation Fault (core dumped)

nbryant@sirius:~$ gdb ./hello core
GNU gdb 4.18
Copyright 1998 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 "sparc-sun-solaris2.8"...
Core was generated by `./hello'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
#0  0x10480 in __do_global_dtors_aux ()
(gdb) bt
#0  0x10480 in __do_global_dtors_aux ()
#1  0x105e8 in _fini ()
#2  0xff29b2c0 in _exithandle () from /usr/lib/libc.so.1
#3  0xff319fd8 in exit () from /usr/lib/libc.so.1
(gdb) list
1       #include <stdio.h>
2
3       int main(void) {
4               printf("Hello, World!\n");
5               return 0;
6       }
(gdb) quit


Cheers,
Nathan Bryant


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