mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Update.
2001-06-25 Ulrich Drepper <drepper@redhat.com> * elf/dl-deps.c (_dl_map_object_deps): Fix handling of failing _dl_catch_error calls.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-06-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-deps.c (_dl_map_object_deps): Fix handling of failing
|
||||||
|
_dl_catch_error calls.
|
||||||
|
|
||||||
2001-06-22 Jakub Jelinek <jakub@redhat.com>
|
2001-06-22 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* posix/regex.c (regex_compile, re_match_2_internal): Fix comment
|
* posix/regex.c (regex_compile, re_match_2_internal): Fix comment
|
||||||
|
@@ -222,16 +222,18 @@ _dl_map_object_deps (struct link_map *map,
|
|||||||
{
|
{
|
||||||
/* Map in the needed object. */
|
/* Map in the needed object. */
|
||||||
struct link_map *dep;
|
struct link_map *dep;
|
||||||
|
int err;
|
||||||
|
|
||||||
/* Recognize DSTs. */
|
/* Recognize DSTs. */
|
||||||
name = expand_dst (l, strtab + d->d_un.d_val, 0);
|
name = expand_dst (l, strtab + d->d_un.d_val, 0);
|
||||||
/* Store the tag in the argument structure. */
|
/* Store the tag in the argument structure. */
|
||||||
args.name = name;
|
args.name = name;
|
||||||
|
|
||||||
if (_dl_catch_error (&objname, &errstring, openaux, &args))
|
err = _dl_catch_error (&objname, &errstring, openaux, &args);
|
||||||
|
if (__builtin_expect (errstring != NULL, 0))
|
||||||
{
|
{
|
||||||
if (errno)
|
if (err)
|
||||||
errno_reason = errno;
|
errno_reason = err;
|
||||||
else
|
else
|
||||||
errno_reason = -1;
|
errno_reason = -1;
|
||||||
goto out;
|
goto out;
|
||||||
@@ -273,6 +275,8 @@ _dl_map_object_deps (struct link_map *map,
|
|||||||
|
|
||||||
if (d->d_tag == DT_AUXILIARY)
|
if (d->d_tag == DT_AUXILIARY)
|
||||||
{
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
/* Say that we are about to load an auxiliary library. */
|
/* Say that we are about to load an auxiliary library. */
|
||||||
if (__builtin_expect (_dl_debug_mask & DL_DEBUG_LIBS, 0))
|
if (__builtin_expect (_dl_debug_mask & DL_DEBUG_LIBS, 0))
|
||||||
_dl_debug_printf ("load auxiliary object=%s"
|
_dl_debug_printf ("load auxiliary object=%s"
|
||||||
@@ -282,7 +286,9 @@ _dl_map_object_deps (struct link_map *map,
|
|||||||
|
|
||||||
/* We must be prepared that the addressed shared
|
/* We must be prepared that the addressed shared
|
||||||
object is not available. */
|
object is not available. */
|
||||||
if (_dl_catch_error (&objname, &errstring, openaux, &args))
|
err = _dl_catch_error (&objname, &errstring, openaux,
|
||||||
|
&args);
|
||||||
|
if (__builtin_expect (errstring != NULL, 0))
|
||||||
{
|
{
|
||||||
/* We are not interested in the error message. */
|
/* We are not interested in the error message. */
|
||||||
assert (errstring != NULL);
|
assert (errstring != NULL);
|
||||||
@@ -295,6 +301,8 @@ _dl_map_object_deps (struct link_map *map,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
/* Say that we are about to load an auxiliary library. */
|
/* Say that we are about to load an auxiliary library. */
|
||||||
if (__builtin_expect (_dl_debug_mask & DL_DEBUG_LIBS, 0))
|
if (__builtin_expect (_dl_debug_mask & DL_DEBUG_LIBS, 0))
|
||||||
_dl_debug_printf ("load filtered object=%s"
|
_dl_debug_printf ("load filtered object=%s"
|
||||||
@@ -303,10 +311,12 @@ _dl_map_object_deps (struct link_map *map,
|
|||||||
? l->l_name : _dl_argv[0]);
|
? l->l_name : _dl_argv[0]);
|
||||||
|
|
||||||
/* For filter objects the dependency must be available. */
|
/* For filter objects the dependency must be available. */
|
||||||
if (_dl_catch_error (&objname, &errstring, openaux, &args))
|
err = _dl_catch_error (&objname, &errstring, openaux,
|
||||||
|
&args);
|
||||||
|
if (__builtin_expect (errstring != NULL, 0))
|
||||||
{
|
{
|
||||||
if (errno)
|
if (err)
|
||||||
errno_reason = errno;
|
errno_reason = err;
|
||||||
else
|
else
|
||||||
errno_reason = -1;
|
errno_reason = -1;
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user