diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-07-05 19:17:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-07-05 19:17:19 +0000 |
commit | a60180c2655f71ba2f9ed3ab66d328f48d9ad772 (patch) | |
tree | 88821df1bfa057ace424461ae446e7bc8bb45997 /ldso/include/dl-defs.h | |
parent | b536763f513920b64d73ead1bd7b083159866a85 (diff) |
patch from Bernd Schmidt to abstract away load address types
Diffstat (limited to 'ldso/include/dl-defs.h')
-rw-r--r-- | ldso/include/dl-defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ldso/include/dl-defs.h b/ldso/include/dl-defs.h index 18f718bef..5cf260183 100644 --- a/ldso/include/dl-defs.h +++ b/ldso/include/dl-defs.h @@ -66,6 +66,15 @@ typedef struct { #endif +/* Machines in which different sections may be relocated by different + * amounts should define this and LD_RELOC_ADDR. If you change this, + * make sure you change struct link_map in include/link.h accordingly + * such that it matches a prefix of struct elf_resolve. + */ +#ifndef DL_LOADADDR_TYPE +# define DL_LOADADDR_TYPE ElfW(Addr) +#endif + /* Initialize a LOADADDR representing the loader itself. It's only * called from DL_BOOT, so additional arguments passed to it may be * referenced. |