Bug 39024 - static libelf needs to be built PIC
Summary: static libelf needs to be built PIC
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Diego Novillo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-29 16:50 UTC by Rainer Orth
Modified: 2011-07-18 16:54 UTC (History)
1 user (show)

See Also:
Host: sparc-sun-solaris2.11
Target: sparc-sun-solaris2.11
Build: sparc-sun-solaris2.11
Known to work:
Known to fail:
Last reconfirmed: 2009-07-09 05:07:07


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2009-01-29 16:50:00 UTC
I had built the prerequisite libelf 0.8.10 for lto statically to avoid RPATH
issues, but noticed that by default liblto_plugin.so.0 failed to link since
libelf.a contained non-PIC code.  Building with -fPIC fixed this, but the
requirement better be documented.
Comment 1 Rainer Orth 2011-07-18 16:54:01 UTC
Given that mainline doesn't use libelf any longer, there's no point in fixing or
documenting this.