This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hurd: missing some PLT refs?!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]