Displaying 2 results from an estimated 2 matches for "isprofitabletocallimmediateaddr".
2011 Jul 01
2
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
It seems that the || should be && here?
/// IsLegalToCallImmediateAddr - Return true if the subtarget allows calls
/// to immediate address.
bool X86Subtarget::IsLegalToCallImmediateAddr(const TargetMachine &TM) const {
if (Is64Bit)
return false;
return isTargetELF() || TM.getRelocationModel() == Reloc::Static;
}
For example, if you are doing ELF PIC (i.e. for a shared
2011 Jul 02
0
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
...452: e9 fc ff ff ff jmp 453 <f+0x7>
and readelf shows
00000453 00000802 R_386_PC32 00000458 g
so the dynamic linker will patch the code segment (making it non sharable)
So maybe the problem is that this function is being called in a place
that really wants a "IsProfitableToCallImmediateAddr"?
> - David
Cheers,
Rafael