public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Dynamic linker issue with bind now?
@ 2014-08-20  0:11 Petar Jovanovic
  2014-08-20  0:11 ` [PATCH] Fix dynamic linker issue with bind-now Petar Jovanovic
  2014-08-20 17:08 ` Dynamic linker issue with bind now? Roland McGrath
  0 siblings, 2 replies; 28+ messages in thread
From: Petar Jovanovic @ 2014-08-20  0:11 UTC (permalink / raw)
  To: libc-alpha; +Cc: petar.jovanovic, davem, Petar Jovanovic

Hello everyone,

Is it possible that someone familiar enough with elf/dynamic-link.h
takes a look at _ELF_DYNAMIC_DO_RELOC macro?
I am under impression that the macro does not correctly handle a case
when DT_REL* and DT_JMPREL are completely separated and there is a gap
between them.
Previously, David S. Miller's patch [1] aimed to fix that case.

Ergo, the code will work in the lazy-bound case, but not in the
bind-now case, and DT_JMPREL section will not be processed. In a
particular case that I have come across, this caused a crash in
_PROCEDURE_LINKAGE_TABLE_, since plt entry for libc_start_main function
did not get updated.

If my assumptions are correct, I would propose a patch that will resolve
the case. Otherwise, I would appreciate explanation how that case gets
resolved correctly.

Thank you.

Regards,
Petar

[1] ld.so regression patch,
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d7dd44133f53e8bcc81e18c11694bee985cd86d0

Petar Jovanovic (1):
  Fix dynamic linker issue with bind-now

 elf/dynamic-link.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
1.7.9.5

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

end of thread, other threads:[~2015-03-23 20:08 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20  0:11 Dynamic linker issue with bind now? Petar Jovanovic
2014-08-20  0:11 ` [PATCH] Fix dynamic linker issue with bind-now Petar Jovanovic
2014-09-10 14:44   ` Petar Jovanovic
2014-10-16  1:05   ` Petar Jovanovic
2014-10-21 21:33     ` Mike Frysinger
2014-10-31  2:47       ` Petar Jovanovic
2014-11-14  2:08       ` Petar Jovanovic
2014-12-02 23:27       ` Petar Jovanovic
2014-12-03  9:36         ` Will Newton
2014-12-06  0:47           ` Petar Jovanovic
2014-12-06  9:38             ` Andreas Schwab
2014-12-07  1:04               ` Petar Jovanovic
2015-03-02  6:29                 ` Mike Frysinger
2015-03-02 16:20                   ` Petar Jovanovic
2015-03-02 17:36                     ` Mike Frysinger
2015-03-03 18:48                       ` Petar Jovanovic
2015-03-23 20:08                   ` Maciej W. Rozycki
2014-12-16 23:26               ` Petar Jovanovic
2015-01-06  1:13               ` Petar Jovanovic
2015-01-15 19:26               ` Petar Jovanovic
2015-01-29  2:57               ` Petar Jovanovic
2015-02-13  0:35               ` Petar Jovanovic
2014-08-20 17:08 ` Dynamic linker issue with bind now? Roland McGrath
2014-08-20 18:19   ` Petar Jovanovic
2014-08-20 19:02     ` Rich Felker
2014-08-20 19:21       ` Petar Jovanovic
2014-08-20 19:32         ` 'Rich Felker'
2014-08-20 22:08           ` Petar Jovanovic

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).