mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
Include sys/param.h. (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
This commit is contained in:
parent
c7e23b4b05
commit
f8580b753a
@ -24,6 +24,7 @@
|
||||
#include <unistd.h>
|
||||
#include <ldsodefs.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include "dynamic-link.h"
|
||||
|
||||
@ -47,8 +48,10 @@ _dl_resolve_conflicts (struct link_map *l, ElfW(Rela) *conflict,
|
||||
#define RESOLVE_CONFLICT_FIND_MAP(map, r_offset) \
|
||||
do \
|
||||
{ \
|
||||
while (resolve_conflict_map->l_map_end < (r_offset) \
|
||||
|| resolve_conflict_map->l_map_start > (r_offset)) \
|
||||
while ((resolve_conflict_map->l_map_end \
|
||||
< (ElfW(Addr))(r_offset)) \
|
||||
|| (resolve_conflict_map->l_map_start \
|
||||
> (ElfW(Addr))(r_offset))) \
|
||||
resolve_conflict_map \
|
||||
= resolve_conflict_map->l_next; \
|
||||
(map) = resolve_conflict_map; \
|
||||
|
Loading…
Reference in New Issue
Block a user