Subject: bin/7472: as on arm32: Can not represent OFFSET_IMM relocation in this object file format (1)
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: netbsd-bugs
Date: 04/25/1999 20:20:57
>Number:         7472
>Category:       bin
>Synopsis:       as on arm32: Can not represent OFFSET_IMM relocation in this object file format (1)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 25 20:05:00 1999
>Last-Modified:
>Originator:     Hubert Feyrer
>Organization:
-- 
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
>Release:        19990426
>Environment:
	
System: NetBSD nc 1.4_BETA NetBSD 1.4_BETA (NC) #32: Sat Apr 24 14:00:42 MEST 1999     feyrer@nc:/usr/cvs/src/sys/arch/arm32/compile/NC arm32

nc# as -v </dev/null
GNU assembler version 2.9.1 (arm--netbsd), using BFD version 2.9.1
nc# gcc -v
Using builtin specs.
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)


>Description:
	while compiling pkgsrc/devel/glib on 1.4_BETA on a Shark,
	the build bombs out:

Making all in .
cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib    -O2 -Wall -c testglib.c
/tmp/ccOoeA0t.s: Assembler messages:
/tmp/ccOoeA0t.s:4569: Error: Can not represent OFFSET_IMM relocation in this object file format (1)
*** Error code 1

	recompiling this with -O1, -O2, -O3 results in the same error
	message, compiling without -O[123] works.

	The offending line 4569 is:
        ldrb    r3, LC181


>How-To-Repeat:
	Get a Shark aithe 1.4_BETA
	cd /usr/pkgsrc/devel/glib
	make

>Fix:
	Unknown.
>Audit-Trail:
>Unformatted: