[Linux-ia64] IP-relative calls in start.S and initfini.c

From: Omar Stradella <omar_at_sgi.com>
Date: 2000-05-03 07:36:28
I'm trying to build a large program but the executable coredumps in
_start. The reason is that _start (start.S) calls __libc_start_main using
a IP-relative call instruction. libc is inserted after all the object
files at an address that is more than 16MB away from the call instruction.
Same happens in _init (initfini.c). Could be possible to load the address
in a register and do an indirect call instead ?

Thanks,

Omar.
+---------------------------------------------------------------------+
Omar G. Stradella, Ph.D.                    
SGI / Chemistry and Biology Applications Group
1 Cabot Rd, Suite 250, Hudson, MA 01749, USA    N 42 22'40" W 71 33'44"
E-mail: omar@sgi.com        Phone: +1-781-839-2258 FAX: +1-978-562-7450 
http://www.sgi.com/chembio                  http://reality.sgi.com/omar 
+--------  Ph-nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn  -------+
Received on Tue May 02 14:37:13 2000

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:19:58 EST