This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
a question about pc-relative branch and function call
- From: Eric Fisher <joefoxreal at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 14 Feb 2006 11:28:07 +0800
- Subject: a question about pc-relative branch and function call
Hi,
Happy Valentine's Day.
Suppose I have only pc-relative branch instructions such as 'b offset'
and don't have pc-region branch instructions such as 'j target'. So
what the function call should be translated? Do I have to always use
two instructions such as 'la reg, func' and 'b reg'? Especially when
call a shared pic object file.
The problem I've got is that when I link with a shared pic object
file, there is a 'relocation truncated to fit' error.
Thanks :-)
Eric