From 2e9c1dc78eedd055b5db779aadf0d09cf70c6710 Mon Sep 17 00:00:00 2001 From: Filippo Arcidiacono Date: Fri, 6 Apr 2012 11:18:35 +0200 Subject: ldso: fix fdpic support broken from prelink patch The fdpic support has been broken since the prelink support was added, because it didn't take into account DL_LOADADDR_TYPE could be a different type of ElfW(Addr). Signed-off-by: Filippo Arcidiacono Signed-off-by: Mike Frysinger --- ldso/ldso/fdpic/dl-sysdep.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ldso/ldso/fdpic/dl-sysdep.h') diff --git a/ldso/ldso/fdpic/dl-sysdep.h b/ldso/ldso/fdpic/dl-sysdep.h index 75d7951ac..546811ad0 100644 --- a/ldso/ldso/fdpic/dl-sysdep.h +++ b/ldso/ldso/fdpic/dl-sysdep.h @@ -115,6 +115,18 @@ struct funcdesc_ht; #define DL_GET_READY_TO_RUN_EXTRA_ARGS \ , dl_boot_progmap, dl_boot_got_pointer +/* Define this to declare the library offset. */ +#define DL_DEF_LIB_OFFSET + +/* Define this to get the library offset. */ +#define DL_GET_LIB_OFFSET() 0 + +/* Define this to set the library offset. */ +#define DL_SET_LIB_OFFSET(offset) + +/* Define this to get the real object's runtime address. */ +#define DL_GET_RUN_ADDR(loadaddr, mapaddr) (loadaddr) + #ifdef __USE_GNU # include #else -- cgit v1.2.3