[aarch64-port-dev ] Help debugging problem with large code cache
Andrew Dinn
adinn at redhat.com
Thu Dec 3 11:02:46 UTC 2015
On 03/12/15 10:15, Edward Nevill wrote:
> On Thu, 2015-12-03 at 09:36 +0000, Andrew Haley wrote:
>> On 03/12/15 07:41, Edward Nevill wrote:
>>> Because if the code has not been relocated yet, then the adrp could be pointing somewhere randomly within the code buffer, and it just happens sometimes to point to a valid trampoline stub.
>>
>> If you can catch adrp being used where it randomly points somewhere
>> in a code buffer, then that undoubtedly would be a bug.
>
> I assert it is
>
> I have trapped it in gdb at the point where it is making the incorrect relocation.
<snip>
Hmm, that looks like to me like it is the cause of the problem.
Interestingly, I just glanced at what the ppc code does and I am not
clear why it is not subject to the same problem -- admittedly only on a
half-arsed understanding of what it is doing. It might be worth you
looking at it to see if it there is something I have missed whihc sheds
light on the AArch64 case.
regards,
Andrew Dinn
-----------
More information about the aarch64-port-dev
mailing list