This is the mail archive of the gcc-patches@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]

Re: [PATCH] Add support for R_MIPS_JALR


Adam Nemet <anemet@caviumnetworks.com> writes:
> Richard Sandiford writes:
>> Adam Nemet <anemet@caviumnetworks.com> writes:
>> > +mrelax-pic-calls
>> > +Target Report Mask(RELAX_PIC_CALLS)
>> > +Try to turn PIC (indirect) calls into direct calls
>> 
>> "Try to allow the linker to turn PIC calls into branches"?  Bit clumsy,
>> I know, but the current version seems to suggest that GCC can do the
>> change itself, rather than simply emitting a hint for the linker.
>> 
>> Better suggestions welcome!
>
> I think yours is better.  If we extend binutils to also transform jalr->jal
> and jr->j in -mno-plt executables we technically wouldn't be creating
> "branches" anymore [...]

Good point.  OK, let's leave it as "direct calls".

Richard


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