This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling wiht -fPIE


On Wed, 2009-01-21 at 12:24 -0800, Roland McGrath wrote:
> > systemtap uses something a bit more involved, but the above triggers the
> > TEXTREL check for me on i386.
> 
> On x86_64 it doesn't even get that far:
> 
> /usr/bin/ld: libelf_pic.a(elf_error.os): relocation R_X86_64_TPOFF32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> libelf_pic.a(elf_error.os): could not read symbols: Bad value
> collect2: ld returned 1 exit status
> 
> So, um.  Is there something wrong with, "So don't do that!"?
> 
> If you used that configure line for any other package that builds libraries
> you would probably break its build too.

Yeah, I guess that is the correct response. It never registered before
that -fPIE doesn't make sense for shared libraries, only for
executables.

Thanks,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]