This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/20045] gcc.dg/ia64-fptr-1.c fails on ia64-hpux


------- Additional Comments From wilson at specifixinc dot com  2005-02-19 23:31 -------
Subject: Re:  New: gcc.dg/ia64-fptr-1.c fails on ia64-hpux

jsm28 at gcc dot gnu dot org wrote:
> ld: Unsatisfied symbol "_GLOBAL_OFFSET_TABLE_" in file /var/tmp//ccU3vrUt.o

DT_PLTGOT will hold the gp value if the program was dynamically linked, 
but it might be too inconvenient to get to this value.  I am not sure 
how to get it other than by running objdump and grepping the output. 
Otherwise, I don't believe the ABI provides a way to get at the value.

Another solution is to use an asm to grab the value from r1.  This 
should work fine as the functions are in the same module, and hence will 
use the same gp value.

Or we could just make this a linux specific testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20045


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]