Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233229 - Mips needs to link against PIC version of libiberty
Summary: Mips needs to link against PIC version of libiberty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: MIPS Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 06:37 UTC by Joshua Kinard
Modified: 2008-10-25 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream patches to add PICFLAG to configure (92_mips_add-picflag.patch,6.65 KB, patch)
2008-07-29 06:38 UTC, Joshua Kinard
Details | Diff
Build libiberty w/ PIC support on mips (93_mips_libiberty-link-pic.patch,3.39 KB, patch)
2008-07-29 06:39 UTC, Joshua Kinard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2008-07-29 06:37:41 UTC
In order for binutils-2.18 to function properly (that is, not segfault on every program), libiberty needs to be built with PIC, as described in the mailing list message below:

http://sourceware.org/ml/binutils/2008-04/msg00077.html

The actual patch to apply is here:
http://sourceware.org/ml/binutils/2008-04/msg00080.html

However, to apply that patch, two changes from Upstream need to be pulled:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/configure.diff?r1=1.89&r2=1.90&cvsroot=src
http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/configure.ac.diff?r1=1.37&r2=1.38&cvsroot=src


Attached to this bug are two patches, one of which combines the above two from binutils upstream, and the other is the one from the mailing list to fix libiberty.
Comment 1 Joshua Kinard gentoo-dev 2008-07-29 06:38:23 UTC
Created attachment 161600 [details, diff]
Upstream patches to add PICFLAG to configure
Comment 2 Joshua Kinard gentoo-dev 2008-07-29 06:39:16 UTC
Created attachment 161601 [details, diff]
Build libiberty w/ PIC support on mips
Comment 3 Joshua Kinard gentoo-dev 2008-10-23 07:26:49 UTC
Ping:

Mips really needs these patches to be able to do much with binutils-2.18:

 * Switching to mips-unknown-linux-gnu-2.18 ...                                                                                                                                                                                    [ ok ]
>>> Regenerating /etc/ld.so.cache...

 * Please remember to run:

 *   # source /etc/profile

>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 5 info files.

[root@dol-guldur babl]# source /etc/profile
[root@dol-guldur babl]# ld
Segmentation fault
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2008-10-25 22:19:06 UTC
In binutils-2.18-r4