summaryrefslogtreecommitdiff
path: root/ldso/ldso/frv/dl-inlines.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-11 12:23:37 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-11 12:23:37 +0000
commita56073a28beba540347846a193d25fd61584c2af (patch)
tree5c22cb4bc0d147e50df51730aa27adf172c15ae7 /ldso/ldso/frv/dl-inlines.h
parentfb6f30cabdaa0ed74d0f7ec9d1feb137260e37aa (diff)
Partial commit of a patch from Alexandre Oliva:
Here's an updated version of the patch I posted about a month ago. It leaves -nostdinc alone, and uses -print-file-name=include instead of -print-search-dirs to figure out where GCC's internal headers are. Please let me know whether there are any portions of this patch you'd like me to break into smaller pieces, to rework, or to give up trying to get into uClibc :-) Thanks,
Diffstat (limited to 'ldso/ldso/frv/dl-inlines.h')
-rw-r--r--ldso/ldso/frv/dl-inlines.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ldso/ldso/frv/dl-inlines.h b/ldso/ldso/frv/dl-inlines.h
index f09c8b93a..855362e10 100644
--- a/ldso/ldso/frv/dl-inlines.h
+++ b/ldso/ldso/frv/dl-inlines.h
@@ -414,11 +414,11 @@ _dl_funcdesc_for (void *entry_point, void *got_value)
return _dl_stabilize_funcdesc (*entry);
}
-inline static void *
-_dl_lookup_address (void *address)
+inline static void const *
+_dl_lookup_address (void const *address)
{
struct elf_resolve *rpnt;
- struct funcdesc_value *fd;
+ struct funcdesc_value const *fd;
/* Make sure we don't make assumptions about its alignment. */
asm ("" : "+r" (address));
@@ -427,7 +427,7 @@ _dl_lookup_address (void *address)
/* It's not a function descriptor. */
return address;
- fd = (struct funcdesc_value *)address;
+ fd = (struct funcdesc_value const *)address;
for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
{
@@ -439,9 +439,9 @@ _dl_lookup_address (void *address)
address = htab_find_slot (rpnt->funcdesc_ht, (void*)fd->entry_point, 0);
- if (address && *(struct funcdesc_value **)address == fd)
+ if (address && *(struct funcdesc_value *const*)address == fd)
{
- address = (*(struct funcdesc_value **)address)->entry_point;
+ address = (*(struct funcdesc_value *const*)address)->entry_point;
break;
}
else