This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: hurd: missing some PLT refs?!
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 18 Jun 2018 11:27:10 +0000
- Subject: Re: hurd: missing some PLT refs?!
- References: <20180616011353.vcrydpiz3rpsxc2o@var.youpi.perso.aquilenet.fr>
On Sat, 16 Jun 2018, Samuel Thibault wrote:
> Hello,
>
> check-localplt currently emits:
>
> Missing required PLT reference: libc.so: free
> Missing required PLT reference: libc.so: malloc
> Missing required PLT reference: ld.so: free
>
> but there are PLT references in libc.so, e.g.:
>
> ./stdlib/exit.os:
> 0000017b R_386_PLT32 free
>
> so I don't understand why check-localplt doesn't see them. Any idea?
Because you end up with a dynamic R_386_GLOB_DAT relocation, so need to
allow for that. See the "+ REL R_386_GLOB_DAT" in
sysdeps/unix/sysv/linux/i386/localplt.data to allow for that (of course,
such annotations naming an architecture-specific relocation require an
architecture-specific localplt.data file, not an OS-specific but
architecture-independent one such as you presently have for Hurd).
--
Joseph S. Myers
joseph@codesourcery.com