Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366025 - [TRACKER] sys-devel/binutils: problems with --relax on alpha
Summary: [TRACKER] sys-devel/binutils: problems with --relax on alpha
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: Normal normal (vote)
Assignee: Alpha Porters
URL: http://sources.redhat.com/bugzilla/sh...
Whiteboard:
Keywords: Tracker
Depends on:
Blocks:
 
Reported: 2011-05-04 23:38 UTC by Matt Turner
Modified: 2017-01-19 18:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2011-05-04 23:38:14 UTC
http://sourceware.org/bugzilla/show_bug.cgi?id=5276
http://sourceware.org/bugzilla/show_bug.cgi?id=12608
http://lists.debian.org/debian-alpha/2011/05/msg00000.html

Once these issues are worked out, we should patch our binutils and remove the use alpha && append-ldflags "-Wl,--no-relax" work-arounds from the following packages:

dev-lang/ocaml
mail-client/thunderbird
net-libs/webkit-gtk
net-libs/xulrunner
sys-fs/jfsutils
www-client/firefox
www-client/icecat
www-client/seamonkey
Comment 1 Matt Turner gentoo-dev 2011-06-24 18:47:29 UTC
The problem in binutils has been fixed, see http://sourceware.org/bugzilla/show_bug.cgi?id=12928
Comment 2 SpanKY gentoo-dev 2011-06-24 18:55:15 UTC
there an easy patch we can put into binutils-2.21 ?  and i wonder if upstream has added this for 2.21.1 ...
Comment 3 Matt Turner gentoo-dev 2011-06-24 19:48:39 UTC
The patch (http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-alpha.c.diff?cvsroot=src&r1=1.179&r2=1.180) applies cleanly (offset 82 lines) to binutils-2.21. I'll do some testing on alpha and verify that it fixes some of the --relax problems seen with the packages we have workarounds in place for.
Comment 4 Michael Cree 2011-06-24 20:02:20 UTC
No, ld PR/12928 only fixes a problem that was introduced upstream about a year ago.  It's not the big one causing the GPREL16 relocation errors on large C++ packages.

You can also libreoffice (IIRC it is the sc and sm components) to your list of packages that need --no-relax.

RTH also admitted to me that --no-relax is used in linking the kernel.
Comment 5 SpanKY gentoo-dev 2011-06-28 00:33:48 UTC
ive added the patch for pr12608 to 2.21 and 2.21.1
Comment 6 Matt Turner gentoo-dev 2014-05-28 20:15:00 UTC
binutils-2.25 contains a fix for this. The bug in $URL is now marked as fixed.