mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-07 12:21:14 +03:00
Don't crash on unresolved weak symbol reference
This commit is contained in:
committed by
Ulrich Drepper
parent
3d04ff3a5d
commit
9acbe24da8
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-19 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
|
||||||
|
symbol reference.
|
||||||
|
|
||||||
2010-05-21 Andreas Schwab <schwab@redhat.com>
|
2010-05-21 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
|
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* On-demand PLT fixup for shared objects.
|
/* On-demand PLT fixup for shared objects.
|
||||||
Copyright (C) 1995-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
Copyright (C) 1995-2009, 2010 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -144,7 +144,8 @@ _dl_fixup (
|
|||||||
/* And now perhaps the relocation addend. */
|
/* And now perhaps the relocation addend. */
|
||||||
value = elf_machine_plt_value (l, reloc, value);
|
value = elf_machine_plt_value (l, reloc, value);
|
||||||
|
|
||||||
if (__builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0))
|
if (sym != NULL
|
||||||
|
&& __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0))
|
||||||
value = ((DL_FIXUP_VALUE_TYPE (*) (void)) DL_FIXUP_VALUE_ADDR (value)) ();
|
value = ((DL_FIXUP_VALUE_TYPE (*) (void)) DL_FIXUP_VALUE_ADDR (value)) ();
|
||||||
|
|
||||||
/* Finally, fix up the plt itself. */
|
/* Finally, fix up the plt itself. */
|
||||||
|
Reference in New Issue
Block a user