Problems with GNU ld

  • Permalink
  • submit to reddit
  • Email
  • Follow


I am using ld from binutils 2.15.  It bombs on multiple solaris 8
systems, always while accessing /usr/lib/libm.so (I know this from
truss).  When I compile, I see one of these:

collect2: ld terminated with signal 10 [Bus Error]
collect2: ld terminated with signal 11 [Segmentation Fault]

When running truss on 1 system, I get:

6857:   read(9, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)     = 8192
6857:       Incurred fault #5, FLTACCESS  %pc = 0x0005DCCC
6857:         siginfo: SIGBUS BUS_ADRALN addr=0x1200001A
6857:       Received signal #10, SIGBUS [default]
6857:         siginfo: SIGBUS BUS_ADRALN addr=0x1200001A

and on another I get

13980:  read(10, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)    = 8192
13980:  brk(0x008A2478)                                 = 0
13980:  brk(0x008A4478)                                 = 0
13980:      Incurred fault #6, FLTBOUNDS  %pc = 0x0005DB4C
13980:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000018
13980:      Received signal #11, SIGSEGV [default]
13980:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000018

In both cases, they occur while reading libm.so (and the same number
of read() calls at that.)  I tried installing the latest libm.so from
Sun, but it didn't help.  If I use the solaris ld, all is fine.

Anyone have any ideas how to correct this?

Thanks,
Bob
0
Reply huffypuffy2k4 10/21/2004 2:14:00 PM

See related articles to this posting

comp.sys.sun.admin 3733 articles. 4 followers. Post

0 Replies
191 Views

Similar Articles

[PageSpeed] 42


Reply:

Similar Artilces:

Problem with 64 bit gnu ld on sparc (sol8)
I'm using solaris 8 and have a problem with the installed gnu ld linker: Having downloaded gcc-3.3.2 http://www.sunfreeware.com/programlistsparc8.html#gcc33 it seems there are a few weird things going on: ld -r temp/SunOS_sparc/to_be_fixed.o temp/SunOS_sparc/cinclude.o -o temp/SunOS_sparc/rtw.o ld: warning: sparc:v9 architecture of input file `temp/SunOS_sparc/to_be_fixed.o' is incompatible with sparc output If both files are 64 bit why does it try to default to 32 bit output? Is there a switch to change it to 64 bit? Thanks in advance. -- Henrik On Sun, 02 Apr 2006 16:38:23 ...

GNU ld
hi falks still fihting to bild that php 5.2.3, I'm in need of GNU ld. Does anybody know where to get it for AiX 5.2? thx Michael ...

Problem with GNU AS
Hello, I compiled the below small ASM code on Linux with GNU AS and command: gcc -nostdlib a.s. I got the error: "relocation truncated to fit R_386_16 against data". Please anybody tells me how to fix it? Thank you a lot, //////////// /* a.s */ ..data ok_msg: .string "OK\n" ..text ..code16 ..global _start _start: .code16 movw $ok_msg, %ax ret ////// On Wed, 23 Jan 2008 05:31:15 -0800, junkoi wrote: > Hello, > > I compiled the below small ASM code on Linux with GNU AS and command: > > gcc -nostdlib a.s. > > I got the error: "relocat...

ld problems
I've got two servers with (almost) identical software. However, on one of them I recently tried to tweak some /lib-libraries. This monday I experienced troubles with a particular executable on one of the server (the server, where I tweaked previously) resulting in a "segmentation fault" I've tried to debug with ldd, and obtain different results at server A (where the executable runs succesfully) and server B (where I experience the segmentation fault). I.e.: A: $ ldd /path/to/binary/executable libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40027000...

extending emacs, installing *.el, GNU ld mode? GNU as mode?
Hi, on www.koders.com there are some extensions for emacs/xemacs. For example for "GNU as" and "GNU ld" files. If anybody has some more hints on modes for these files that would be great, by the way. How do i install these files on Unix and on Windows? It looks like these files all go in their own subdirectory and there has to be some autoload.el and _pkg.el, is that correct? What do i need to put into them? Best regards, Torsten. Torsten Mohr <tmohr@s.netic.de> writes: > Hi, > > on www.koders.com there are some extensions for...

DLL Problem with the GNU gfortran linker when MinGW (GNU) from version 4.5 to 4.8
Hi to all Can someone help - having a problem in the upgrading of MinGW platform for = gfortran from v4.5 to 4.8 Programs written in gfortran (to produce a fortran dll callable from window= s) under the earlier version will no longer successfully compile and link u= sing the latest version. For some reason the link/assembler is not recogniz= ing the " --input-def dgeto2.def" file referenced below which exports only = "dget02". I've tried several different updates to fortran, libraries etc to= no avail. Here are the two main statements: The defined target...

Problems with GNU linker
Hi, i have a problem with linking under linux. I have written a C++ library and a C++ program that uses that library (i use Eclipse IDE under Mandriva under Virtual Box..). I succesfully compile the library, obtaining the file libfvlib.a (one under the Debug directory, the other under the Release directory). After that, i have created a new C++ project that uses that library. I have added the library path of the debug (release) version of libfvlib.a for the debug (release) version of the program. I have added the .a file with -l option (to be used in the linking process). ...

make + ld problem
Hi!!! I am using a make file for creating a bin file out of many C files. I am using win2k cmd shell with djpp gcc version 3.1 installed with GNU Make version 3.79. The version of ld is 2.13. My src for the makefile is ---------- objects = kernel32.o pic.o stdio.o keyboard.o gdt.o string.o idt.o asm_c.o screen.o writexy.o login.o allobjects = $(objects) asm.o header = include/stdio.h \ include/pic.h \ include/gdt.h \ include/types.h \ include/string.h \ include/idt.h \ include/asm.h \ include/screen.h \ include/keyboard.h \ include/keydefs.h \ include/login.h \ include/writex...

A GNU automake problem
Hello, I'm trying to get automake to set a compiler flag when compiling a specific binary. My Makefile.am looks (in part) like this: ------------ CFLAGS = -W -Wall -ansi -pedantic -g [...] bin_PROGRAMS = ctops-gui gen_gui_data gen_gui_data_SOURCES = \ gen_gui_data.c \ [...] ctops_gui_SOURCES = \ main.c \ [...] gui_data.c gui_data.h : gen_gui_data ./gen_gui_data gen_gui_data_CFLAGS = -DCODE_GENERATOR [...] ------------ Well, this doesn't work right. The -DCODE_GENERATOR option isn't set when compiling the sources for gen_gui_data. I looked at the resulting Makefil...

gnu make problem
I am trying to make a .o file from a .cpp file using implicit rules but gmake is always asking for a .c file. I have set .SUFFIXES: .cpp .c Supplied a .o.cpp: rule. But still it wants a .c file. Help, Aaron Aaron Gray wrote: > I am trying to make a .o file from a .cpp file using implicit rules but > gmake is always asking for a .c file. > > I have set .SUFFIXES: .cpp .c > > Supplied a .o.cpp: rule. > > But still it wants a .c file. it should be ..cpp.o: instead of ..o.cpp: -- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 1...

ld problem in solaris
I use gperf to generate some files for hash lookups. One file hash.cxx for verilog-95 and other file hashPSL.cxx for verilog-2000 PSL (You dont need to worry about verilog ! :) ) gcc -c -g -Wall -fPIC -DVE_DUMP_X86 -DVE_DEBUG -I. -I../include - I../../om/include -I../../pi/include -I../../superlog/include -I../../ utils/include -I../../../obj/linux-gcc3.2.3-32-debug hash.cxx - o ../../../obj/linux-gcc3.2.3-32-debug/hash.o gcc -c -g -Wall -fPIC -DVE_DUMP_X86 -DVE_DEBUG -I. -I../include - I../../om/include -I../../pi/include -I../../superlog/include -I../../ utils/include -I../../../o...

Gnu make problems
I'm using gmake 3.79.1 to try and build a source package I was given. In the make file there are targets that I've never come across before. The general format of these bizarre (to me) targets is as follows: target1 : target/dependency : target/dependency I've never seen anything specified this way before. I've only ever seen 1 "set" of dependencies on the right of the leftmost colon. I've never seen an additional target/dependency added on like this. Can someone explain to me what this means? Thanks. Les ...

Problem with (gnu) tar
On two different Linux systems -- one based on RedHat 6.2 and the other based on RedHat 7.2 -- we have a problem with the tar utility using the tar command : tar -z -P -cvf /z/raft.gz /raft/* The specific file that presents a problem is /raft/library.raft/_divdi3.o and ls -l pf this file produces the following information -rwxr-xr-x 1 root root 14900 Nov 16 15:10 _divdi3.o* On both systems this file is *never* included in the archive! This is a continuing problem that has spanned several years of use and it is the only file in the entire ...

ld -Tdata problem
Refer to vxworks documents,"ld -Tdata xxx" can set data segment at a defined address.But after I modified defs.bsp like "LD_LOW_FLAGS = -Ttext $(RAM_LOW_ADRS) -Tdata 180000",the image can't work. I checked vxworks.st, the header and sector headers are all correct,text end is below 180000.Why the image can't work correctly? ...

GNU tar problem
I've been using a 1998 version of Gnu tar for years and it has worked fine. Recently, it has started balking at working correctly. It's suffering from bit rot with age? The specific problem is that (almost) regardless of the file it's told to archive, it returns an error message of "<file name>: Unknown file type; file ignored." What's really mystifying is how a file can be of the wrong type for tar since tar shouldn't be concerned with a file "type". [I strongly suspect the error message is erroneous.] Has anyone else encountered this problem...

Problems with GNU make
Dear all, I'm using GNU make on Minix 3.1.2, but it is failing and i cannot find why. I'm trying with the following Makefile: all: echo Hello world This is what i'm doing and the results i'm seeing: # PATH=$PATH:/usr/gnu/bin # gmake all gmake: getcwd: : No such file or directory gmake: *** No rule to make target 'all'. Stop. I'm using GNU make to compile a program that requires GCC and the other GNU utilities to be built. I know that this must be possible, as it succeeded once before, on another virtual machine. I've installed the following packages using...

Problems with LD driver
Vax 3100 Model 80 VMS 7.3 LD driver v8.3 Raid version 2.6 When ever I try to create a volume on a RAID 0 set I get the following pluto> ld create/size=3000000 pwrkv61.dsk pluto> ld connect lda1 pluto> init/system lda1: pwrkv61 pluto>mount/system lda1: pwrkv61 %systen-i-mountver, $101$lda1: (pluto) has been write-locked. Mount verification in progress %%%%%%%%%%% opcom 30-dec-2010 12:55:22.23%%%%%%%%%%% device $101$lda1: (pluto) has been write locked. mount verification is in progress The system then locks up and I need to reset the system. LDA1 is a 300000 block file. DPA100 wh...

Gnu sort problem
This is in.txt. B 35 world B 123 abc A 79 world A 123 hello B 35 abc A 79 hello The goal is to sort the 1st field alpahbetically, then 2nd numerically, then 3rd alphabetically. Gnu versions 5.97 and 8.15 give correct result. $ sort +0 -1 +1 -2n +2 -3 in.txt A 79 hello A 79 world A 123 hello B 35 abc B 35 world B 123 abc However, version 7.4 gives wrong (or different) result. $ sort +0 -1 +1 -2n +2 -3 in.txt A 123 hello A 79 hello A 79 world B 123 abc B 35 abc B 35 world Is this a bug or something else? TIA James In article <a810129c-2b11-4eb3-b4...

ld problems #2
I've got two servers with (almost) identical software. However, on one of them I recently tried to tweak some /lib-libraries. This monday I experienced troubles with a particular executable on one of the server (the server, where I tweaked previously) resulting in a "segmentation fault" I've tried to debug with ldd, and obtain different results at server A (where the executable runs succesfully) and server B (where I experience the segmentation fault). I.e.: A: $ ldd /path/to/binary/executable libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40027000...

[ot]? problem with ld
Hi, I'm trying to link a program in FreeBSD, but I get the following error: /usr/libexec/elf/ld: final link failed: File too large As the text shows, the disk is filled with the binary generated, so it seems that ld gets confused with the link script provided: -- paddr = 0x00100000; vaddr = 0x80000000; entry = start - vaddr + paddr; OUTPUT_FORMAT("elf32-i386") OUTPUT_ARCH(i386) ENTRY (entry) PHDRS { code PT_LOAD; data PT_LOAD; bss PT_LOAD; } SECTIONS { .text vaddr + SIZEOF_HEADERS : AT(paddr + SIZEOF_HEADERS) { *(.text) ...

Linking objects with GNU LD
Hi everybody, I am using the GNU GCC toolchain configured for m68k (cross compiler). I want to link several objects into an executable file. Unfortunately there are several c-functions compiled into one object but I don't want to use all functions in my executable. Looking into the map file I can see the unused functions in my executable. Is there a way to avoid this functions being in the executable (apart from splitting the functions in the c file)? Thanks in advance Karl-Heinz wrote: > Hi everybody, > > I am using the GNU GCC toolchain configured for m68k (cross compiler)...

GCC and LD install problem.
Hi, I just downloaded and run a script to build a strange gcc (and ld) version on my system, presumably for ARM. However, now my normal gcc and ld stoped to work. I am using FC2, updated. I think I will need to reinstall gcc and related files to get it back to work, but I don't know how. Where I can find the appropriated RPMs files for gcc on FC2? I don't know that much on using "rpm". Thank you. Roberto Gallo wrote: > > Hi, > > I just downloaded and run a script to build a strange gcc (and ld) version > on my system, presumably for ARM. However, now...

problem using GNU Pascal
I have installed MinGW and GNU Pascal on a PC running Windows XP Home edition. When I compile the demo program "hello.pas" that comes with the compiler <begin hello.pas> program Hello (Output); begin WriteLn ('Hello, world.') end. <end hello.pas> I get the error message GPCC (Win32 (Mingw) build), v2.18: BP-compatibility shell for GNU Pascal. (c) 11th May 2002, Prof. A Olowofoyeku (The African Chief). Compiling PROGRAM "hello.pas" ... CFG file = c:\programs\mingw\bin\gpcc.cfg Args = [gpc --automake -s --no-typed-address --extended-syntax --ignore...

LD linker scripts problem ...
hi, has anyone ever succeeded in using the INCLUDE clause in a linker script? I have tried every syntax I could imagine from the bare INCLUDE filename as said in the infopage to an hypothetic INCLUDE("filename") but ld always cry about a syntax error. has someone a clue about this? thanks Laurent ...