[Linux-ia64] Linker error : linking constant-gp files with non-constant gp fil es

From: Sistla, Krishnakanth V <krishnakanth.v.sistla_at_intel.com>
Date: 2001-05-08 12:00:03
Hi all,

	I am trying to write a miscellanious driver and compile it into the
	kernel. When i try to link two object files created by the below
	commands (during a build) i get the following error. could some help
      please ?

Thanx in advance

kernel version 


--------------------------command sequence--

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -Wa,-x -ffixed-r13 -mfixed-range=f10-f15,f32-f127
-mconstant-gp   -c -o ia64pmon.o test.c

gcc  -D__KERNEL__ -I/usr/src/linux/include  -c -o ia64pmon_s.o test_s.S

ld  -r -o misc.o test.o test_s.o

ld: test_s.o: linking constant-gp files with non-constant-gp files
Bad value: failed to merge target specific data of the file test_s.o

Received on Mon May 07 19:00:11 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:03 EST