Skip to content

Commit

Permalink
src/rtld/dl-open.c: Change to work with older compilers
Browse files Browse the repository at this point in the history
2016-08-17   Mark Hatle <[email protected]>
       * src/rtld/dl-open.c: Change to work with older compilers

Signed-off-by: Mark Hatle <[email protected]>
  • Loading branch information
Mark Hatle committed Aug 17, 2016
1 parent 33be255 commit e09997c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2016-08-17 Mark Hatle <[email protected]>
* src/rtld/dl-open.c: Change to work with older compilers

2016-06-03 Dave Lerner <[email protected]>
* src/exec.c: New check_reorder_needed, section_reorder_fix functions

Expand Down
3 changes: 3 additions & 0 deletions src/rtld/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2016-08-17 Mark Hatle <[email protected]>
* dl-open.c: Change function to work with older compilers

2016-03-18 Donn Seeley <[email protected]>
* rtld.c: rewrite build_local_scope to ensure breadth-first
processing
Expand Down
9 changes: 6 additions & 3 deletions src/rtld/dl-open.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ _dl_show_scope (struct link_map *l, int from)
{
_dl_debug_printf ("object=%s [%lu]\n",
DSO_FILENAME (l->l_name), 0UL);
if (l->l_local_scope != NULL)
for (int scope_cnt = from; l->l_local_scope[scope_cnt] != NULL; ++scope_cnt)
if (l->l_local_scope != NULL) {
int scope_cnt;
for (scope_cnt = from; l->l_local_scope[scope_cnt] != NULL; ++scope_cnt)
{
_dl_debug_printf (" scope %u:", scope_cnt);

for (unsigned int cnt = 0; cnt < l->l_local_scope[scope_cnt]->r_nlist; ++cnt)
unsigned int cnt;
for (cnt = 0; cnt < l->l_local_scope[scope_cnt]->r_nlist; ++cnt)
if (*l->l_local_scope[scope_cnt]->r_list[cnt]->l_name)
_dl_debug_printf_c (" %s",
l->l_local_scope[scope_cnt]->r_list[cnt]->l_name);
Expand All @@ -39,6 +41,7 @@ _dl_show_scope (struct link_map *l, int from)

_dl_debug_printf_c ("\n");
}
}
else
_dl_debug_printf (" no scope\n");
_dl_debug_printf ("\n");
Expand Down

0 comments on commit e09997c

Please sign in to comment.