mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
Don't crash on unresolved weak symbol reference when auditing.
This commit is contained in:
parent
9acbe24da8
commit
b32b8b451b
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
|
||||||
|
symbol reference.
|
||||||
|
|
||||||
2010-05-19 Andreas Schwab <schwab@redhat.com>
|
2010-05-19 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
* elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
|
* elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
|
||||||
|
@ -232,8 +232,9 @@ _dl_profile_fixup (
|
|||||||
? LOOKUP_VALUE_ADDRESS (result)
|
? LOOKUP_VALUE_ADDRESS (result)
|
||||||
+ defsym->st_value : 0);
|
+ defsym->st_value : 0);
|
||||||
|
|
||||||
if (__builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
|
if (defsym != NULL
|
||||||
== STT_GNU_IFUNC, 0))
|
&& __builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
|
||||||
|
== STT_GNU_IFUNC, 0))
|
||||||
value = ((DL_FIXUP_VALUE_TYPE (*) (void))
|
value = ((DL_FIXUP_VALUE_TYPE (*) (void))
|
||||||
DL_FIXUP_VALUE_ADDR (value)) ();
|
DL_FIXUP_VALUE_ADDR (value)) ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user