summaryrefslogtreecommitdiff
path: root/ldso/ldso/dl-elf.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-10-29 13:46:25 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-10-29 13:46:25 +0000
commitc4f31d2e430ec265ee528b91d87f1d3d8c64997e (patch)
tree6847d1c2ca7f5eec36fc4dbc69f39a4e9e68d872 /ldso/ldso/dl-elf.c
parent30c664f0a795bace5c99bedc936228780dba3256 (diff)
Hopefully fix the bug Oleg reported in http://uclibc.org/lists/uclibc/2005-October/012809.html
This will only fix powerpc. Should be easy to fix the other arches.
Diffstat (limited to 'ldso/ldso/dl-elf.c')
-rw-r--r--ldso/ldso/dl-elf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index 28b3094d1..6c9a1fd44 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -631,7 +631,9 @@ int _dl_fixup(struct dyn_elf *rpnt, int now_flag)
ElfW(Addr) reloc_addr;
if (rpnt->next)
- goof += _dl_fixup(rpnt->next, now_flag);
+ goof = _dl_fixup(rpnt->next, now_flag);
+ if (goof)
+ return goof;
tpnt = rpnt->dyn;
if(!(tpnt->init_flag & RELOCS_DONE))