[Patch ][RFC] [ARM] Remove use of real start of function for ARM EABI configurations.

Ramana Radhakrishnan ramana.radhakrishnan@arm.com
Fri Mar 27 14:34:00 GMT 2009


Hi,

If you have a bl or a branch from a function in Thumb ISA mode to a local
function in Thumb ISA mode, gas prints a warning about not being able to
find the real start of function. 

This is an artefact of the ".real_start_of" prefix is applied only for
functions that have the "interfacearm" attribute specified. Since the
"interfacearm" attribute for functions in C can only be applied by the PE
configuration of GCC, I'd like to remove support for this from the ELF
configurations. 

Tested with the binutils testsuite with no regressions.

I should point out that the assembler doesn't handle branches or calls to
local functions defined to be in Thumb ISA from functions written in ARM ISA
and vice versa that will do the right thing according to the ABI. I am
working on a follow up patch to handle those cases.

Ok to commit ?
 
2009-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
        (find_real_start): Likewise.
        * config/tc-arm.h (TC_VALIDATE_FIX): Likewise.

Cheers
Ramana

Ramana Radhakrishnan
ARM Ltd. (www.arm.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: real-remove.patch
Type: application/octet-stream
Size: 1980 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090327/cdc30d0f/attachment.obj>


More information about the Binutils mailing list