OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbfc05d
)
fix dl_iterate_phdr() for FDPIC systems
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 23 Jul 2009 09:27:24 +0000
(
05:27
-0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 23 Jul 2009 09:41:35 +0000
(
05:41
-0400)
The dlpi_addr isn't a simple Elf_Addr type for FDPIC systems, so we can't
just assign 0 to it to initialize.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/misc/elf/dl-iterate-phdr.c
patch
|
blob
|
history
diff --git
a/libc/misc/elf/dl-iterate-phdr.c
b/libc/misc/elf/dl-iterate-phdr.c
index
6561ed6
..
a7677f1
100644
(file)
--- a/
libc/misc/elf/dl-iterate-phdr.c
+++ b/
libc/misc/elf/dl-iterate-phdr.c
@@
-62,7
+62,12
@@
dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
/* This entry describes this statically-linked program itself. */
struct dl_phdr_info info;
int ret;
+#ifdef __FDPIC__
+ info.dlpi_addr.map = NULL;
+ info.dlpi_addr.got_value = NULL;
+#else
info.dlpi_addr = 0;
+#endif
info.dlpi_name = "";
info.dlpi_phdr = _dl_phdr;
info.dlpi_phnum = _dl_phnum;