public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* hurd: missing some PLT refs?!
@ 2018-06-16  1:13 Samuel Thibault
  2018-06-18 11:27 ` Joseph Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2018-06-16  1:13 UTC (permalink / raw)
  To: libc-alpha

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?

Samuel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hurd: missing some PLT refs?!
  2018-06-16  1:13 hurd: missing some PLT refs?! Samuel Thibault
@ 2018-06-18 11:27 ` Joseph Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2018-06-18 11:27 UTC (permalink / raw)
  To: Samuel Thibault; +Cc: libc-alpha

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-18 11:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-16  1:13 hurd: missing some PLT refs?! Samuel Thibault
2018-06-18 11:27 ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).