https://sourceware.org/bugzilla/show_bug.cgi?id=32591

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jan Beulich from comment #14)
> (In reply to H.J. Lu from comment #13)
> > I created a testcase which generates a linker error
> > 
> > failed to convert GOTPCREL relocation against '__stack_chk_guard'; relink
> > with --no-relax
> > 
> > similar to
> > 
> > https://lists.xenproject.org/archives/html/xen-devel/2024-12/msg00630.html
> > 
> > based on the xen linker script, xen/arch/x86/xen.lds.  My patch works.
> 
> It doesn't on full Xen. As expected I see
> 
> ASSERT(!SIZEOF(.got),      ".got non-empty")

GOT is used to access local symbol beyond 4GB.  Xen can disallow run-time
relocations in GOT.  But GOT won't be empty.  Xen needs to deal with it if
it wants to access the local stack protector symbol.

> triggering. I wonder whether you actually copied that when deriving the
> linker script from Xen's.

I used section layout in Xen's linker script to have local symbol beyond
4GB.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to