ARM thumb: why call_via_rX?

Adrian von Bidder avbidder@acter.ch
Fri Jan 25 04:31:00 GMT 2002


Heyho!

Why are calls through function pointers made with the call_via_rX stubs
on ARM/thumb? couldn't gcc just generate the bx rX operation inline?

The call_via_rX stubs are problematic for me because one program I
should get to work does some fancy copying of code at runtime - where,
of course, calls with relative addresses fail. Calls through function
pointers have so far (in ARM) worked.

greets from Zürich
-- vbi



More information about the Gcc mailing list