hurd: missing some PLT refs?!
Joseph Myers
joseph@codesourcery.com
Mon Jun 18 11:27:00 GMT 2018
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
More information about the Libc-alpha
mailing list