Subject: bin/1149: Strange behavior of ld
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Tatoku Ogaito <tacha@nuclth12.phys.sci.osaka-u.ac.jp>
List: netbsd-bugs
Date: 06/20/1995 05:20:28
>Number:         1149
>Category:       bin
>Synopsis:       Strange behavior of ld
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 20 05:20:25 1995
>Originator:     Tatoku Ogaito
>Organization:
Tatoku Ogaito		| Email: tacha@tera.phys.sci.osaka-u.ac.jp
Department of Physics   | WWW:   http://tera.phys.sci.osaka-u.ac.jp/~tacha/
Faculty of Science      | Tel  : +81 6-850-5346 (dial in)
Osaka University  	| Fax  : +81 6-850-5529
>Release:        NetBSD-current June. 09
>Environment:
	
System: NetBSD tera.phys.sci.osaka-u.ac.jp 1.0A NetBSD 1.0A (TERA) #10: Sat Jun 10 00:34:54 JST 1995 root@tera.phys.sci.osaka-u.ac.jp:/usr/src/current/src/sys/arch/i386/compile/TERA i386


>Description:
  The dynamical linked binary created by ld with long library search path, 
such as -L/usr/local/lib/gcc-lib/i586-ibm-netbsd/2.6.3, crashes with bus 
error. I guess the maximum allowed path length is 29. But, static linked 
binary has no problem.

>How-To-Repeat:

   ld -e start -dc -dp /usr/lib/crt0.o  -L/the/long/long/path/more/than/29 \
   hello.o -lgcc -lc -lgcc

>Fix:

>Audit-Trail:
>Unformatted: