8173941 Re: SA does not work if executable is DSO

Andrew Haley aph at redhat.com
Thu Feb 9 14:49:32 UTC 2017


On 09/02/17 14:40, Yasumasa Suenaga wrote:
> Hi Andrew,
> 
> I checked with GDB, readelf and libsaproc debug message.
> I found that we should calculate .dynamic address from entry point in ELF.
> 
> I uploaded webrev. This patch works fine on JDK 9 and JDK 10.
> 
>    http://cr.openjdk.java.net/~ysuenaga/JDK-8173941/webrev.00/

Very cool, thanks!

One clarification:

+            // Align page size
+            ph->core->dynamic_addr = auxv->a_un.a_val & ~(uintptr_t)0xfff;

I guess this isn't the physical page size, but some notional 4k page,
which may or may not correspond to the real page size?

Thanks,

Andrew.



More information about the serviceability-dev mailing list