[PATCH] ldso: fix fdpic support broken from prelink patch

Filippo ARCIDIACONO filippo.arcidiacono at st.com
Wed Mar 7 07:25:08 UTC 2012



> -----Original Message-----
> From: Henderson, Stuart [mailto:Stuart.Henderson at analog.com]
> Sent: Tuesday, March 06, 2012 7:23 PM
> To: Filippo ARCIDIACONO; uclibc at uclibc.org
> Subject: RE: [PATCH] ldso: fix fdpic support broken from prelink patch
> 
> >> In the meantime any comments are welcome.
> 
> bfin fdpic build fails with error:
> 
> In file included from ldso/ldso/ldso.c:1432:
> ldso/ldso/dl-elf.c: In function '_dl_load_elf_shared_library':
> ldso/ldso/dl-elf.c:757: error: request for member 'map' in something
> not a structure or union
> 
> e.g.
> tpnt->ppnt = (ElfW(Phdr) *) DL_RELOC_ADDR(tpnt->mapaddr, epnt-
> >e_phoff);
> so
> epnt->e_phoff is an Elf32_Off and DL_RELOC_ADDR on fdpic tries:
> #define DL_RELOC_ADDR(LOADADDR, ADDR) ((ElfW(Addr))__reloc_pointer
> ((void*)(ADDR), (LOADADDR).map))

Yes you are right, I missed this one, for these archs has to be use the
tpnt->loadaddr.
I'll post another version of the patch.

> 
> Stu

Thanks,
Filippo.



More information about the uClibc mailing list