Bug 37246 - Updated spec for freebsd7.0
Summary: Updated spec for freebsd7.0
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.1
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: patch
Depends on:
Blocks:
 
Reported: 2008-08-26 20:28 UTC by Javier Villavicencio
Modified: 2009-12-28 23:05 UTC (History)
1 user (show)

See Also:
Host: i686-gentoo-freebsd7.0
Target: i686-gentoo-freebsd7.0
Build: i686-gentoo-freebsd7.0
Known to work:
Known to fail:
Last reconfirmed: 2008-09-14 05:04:21


Attachments
patch against gcc-4.3.1 (2.16 KB, patch)
2008-08-26 20:28 UTC, Javier Villavicencio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Villavicencio 2008-08-26 20:28:12 UTC
The diff adds support for dl_iterate_phdr from FreeBSD 7.0 libc, and also uses --as-needed when linking to libgcc_s. 
The main spec source is the FreeBSD spec from their cvs.
The extras for dl_iterate_phdr adapted (they set -D__GLIBC__=3 on the cmdline/Makefile) on the code/config.
This is only for i[3456]86 tho. Don't have the hardware to complete/test the x64/sparc64 (missing) parts.
Comment 1 Javier Villavicencio 2008-08-26 20:28:45 UTC
Created attachment 16152 [details]
patch against gcc-4.3.1
Comment 2 Andrew Pinski 2008-08-26 20:39:24 UTC
Patches go to gcc-patches@.
Comment 3 Javier Villavicencio 2008-08-26 21:43:32 UTC
My bad, sent.
http://gcc.gnu.org/ml/gcc-patches/2008-08/msg01988.html
Comment 4 kargls 2009-12-16 18:53:23 UTC
I followed the discussion pointed to by the URL in comment #3,
but I could not find if the final version of the patch has
been accepted or rejected.  Is this PR still relevant or should
it be closed?
Comment 5 Javier Villavicencio 2009-12-17 02:39:43 UTC
Hi, there is no final version of this patch, it's current state is incomplete, but good enough to work for Gentoo/FreeBSD-x86 which is were we actively use it.

Lacking other architectures (x64, sparc) to test this and make this a proper "add new feature" patch (it's not /really/ a bugfix, just adds dl_iterate_phdr support from FreeBSD's-7 and above libc) was the showstopper here.

Feel free to close as you see fit, or perhaps continue on bug 33417.

Just for reference, the patches we are using are here:
http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.2/gentoo/90_all_gcc-freebsd.patch?rev=1.1&view=markup
http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.2/gentoo/91_all_gcc-freebsd.patch?rev=1.1&view=markup
Comment 6 Loren Rittle 2009-12-28 23:05:37 UTC
Alternate patch was generated and installed on mainline (4.5) to address lack of support for dl_iterate_phdr from FreeBSD 7.0 libc.