Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223249 - sys-devel/binutils-2.18{,-r1} does not recognize SYSV objects on freebsd
Summary: sys-devel/binutils-2.18{,-r1} does not recognize SYSV objects on freebsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All FreeBSD
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 19:07 UTC by Alexis Ballier
Modified: 2008-06-23 02:06 UTC (History)
2 users (show)

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


Attachments
backported patch (92_all_pr4424.patch,8.45 KB, patch)
2008-05-22 19:09 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-05-22 19:07:11 UTC
So... I decided to tackle the reason why we were slacking on bsd for binutils.

Basically, 2.18 isn't keyworded because we cannot build the kernel with it.
The reason is that it needs to link SYSV object which 2.18 does not recognize; snapshots of binutils are fixed in that regard:

Changes from binutils 2.18.50.0.2:
[...]
2. Support link in Linux object files on FreeBSD.  PR 4424.
[...]

The error is the same as on:
http://sourceware.org/bugzilla/show_bug.cgi?id=5179


The original bug report is at:
http://sourceware.org/bugzilla/show_bug.cgi?id=4424

The discussion:
http://sourceware.org/ml/binutils/2007-10/msg00215.html

And the final patch:
http://sourceware.org/ml/binutils/2007-10/msg00262.html

I've backported it and that would allow us to rekeyword 2.18 if it could be merged, I'll attach the patch in a minute.
Comment 1 Alexis Ballier gentoo-dev 2008-05-22 19:09:30 UTC
Created attachment 153975 [details, diff]
backported patch

If that is acceptable to merge in 2.18, please add ~x86-fbsd keyword to it while adding the patch or poke me for doing it. I'll test/get somebody to test sparc-fbsd later.
Comment 2 Jose Quinteiro 2008-05-24 23:26:08 UTC
Patch applied cleanly and yielded a working linker for me.  I emerged and ran emacs to test it.

It's cool that all you have to do is drop the patch file in /etc/portage/patches/i686-gentoo-freebsd6.2/sys-devel/binutils-2.18 and it will be automagically applied when you emerge binutils.
Comment 3 SpanKY gentoo-dev 2008-06-23 02:06:18 UTC
patch added to binutils-2.18-r2