aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib
Commit message (Collapse)AuthorAgeFilesLines
* MFC r208737 (required by OCTEON* kernels):Oleksandr Tymoshenko2011-12-082-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain. o) Add TARGET_ABI to the MIPS toolchain build process. This sets the default ABI to one of o32, n32 or n64. If it is not set, o32 is assumed as that is the current default. o) Set the default GCC cpu type to any specified TARGET_CPUTYPE. This is necessary to have a working "cc" if e.g. mips64 is specified, as binutils will refuse to link objects using different ISAs in some cases. o) Add support for n32 and n64 ABIs to binutils and GCC. o) Add additional required libgcc2 stubs for n32 and n64. o) Add support for the "mips64r2" architecture to GCC. Add the "octeon" o) When static linking, wrap default libraries in --start-group and --end-group. This is required for static linking to work on n64 with the interdependencies between libraries there. This is what other OSes that support n64 seem to do, as well. o) Fix our GCC spec to define __mips64 for 64-bit targets, not __mips64__, the former being what libgcc, etc., check and the latter seemingly being a misspelling of a hand merge from a Linux spec. o) When no TARGET_CPUTYPE is specified at build time, make GCC take the default ISA from the ABI. Our old defaults were too liberal and assumed that 64-bit ABIs should default to the MIPS64 ISA and that 32-bit ABIs should default to the MIPS32 ISA, when we are supporting or will support some systems based on earlier 32-bit and 64-bit ISAs, most notably MIPS-III. o) Merge a new opcode file (and support code) from a later version of binutils and add flags and code necessary to support Octeon-specific instructions. This should also make merging opcodes for other modern architectures easier. No objections from: imp, jmallet, jchandra MFC after: 18 months Notes: svn path=/stable/8/; revision=228337
* Merge MIPS platform support to 8-STABLE.Jayachandran C.2010-11-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit merges the MIPS platform changes that was now stable in -CURRENT into 8-STABLE. The MIPS changesets are too many (~400) to list here. But the changesets merged in this commit that affect other platforms are summarized below: r204635 : (changes to sys/dev/hwpmc, lib/libpmc, sys/sys/pmc.h) Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. r205845: (changes to sys/modules/Makefile) Fix for building modules on mips and arm. r204031: (changes to sys/kern/link_elf_obj.c) printf fix, as part of kernel module support for MIPS. r206404: (changes to sys/arm/include/bus.h) Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the other platforms - for arm and mips. r206819: (changes to sys/vm/) Add VMFS_TLB_ALIGNED_SPACE option and kmem_alloc_nofault_space(), which is used to allocate kernel stack address on MIPS. r208165, r211087: (sys/kern/subr_smp.c, sys/kern/sched_ule.c) Enable ULE scheduler for MIPS, Fix for an issue in SMP when 32 cpus are enabled. r208659: (sys/{ia64/ia64,mips/mips,sun4v/sun4v}/pmap.c) Simplify the inner loop of get_pv_entry() r208794: (changes to sys/vm/) Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig() fails to allocate MIPS page table pages. r210327: (changes to sys/vm/) Support for MIPS page table page allocation. Add a new function 'vm_page_t vm_page_alloc_freelist(int flind, int order, int req)' to vm/vm_page.c to allocate a page from a specified freelist, and other related changes. Reviewed by: alc(vm changes only) Approved by: kib(re), alc(vm), imp(mips), jmallett(mips), gnn(mips pmc) Notes: svn path=/stable/8/; revision=215938
* MFC r212286:Tijl Coosemans2010-09-212-2/+2
| | | | | | | | | | | | | | | | GCC defines built-ins for atomic instructions found on i486 and higher. Because FreeBSD no longer supports the 80386 cpu all code targeting FreeBSD/i386 necessarily runs on i486 or higher so the compiler built-ins can be used by default inside libstdc++ and in C++ headers. This allows newly compiled C++ code to inline some atomic operations. Old binaries continue to use libstdc++ functions. PR: 148926 Tested by: Yuri Karaban <tech askold net> Approved by: kib (mentor) Notes: svn path=/stable/8/; revision=212962
* MFC r209294:Konstantin Belousov2010-07-021-1/+2
| | | | | | | | Add -fno-asynchronous-unwind-tables to disable unwind table generation for crtbegin/crtend. While there, disable omitting the frame pointer. Notes: svn path=/stable/8/; revision=209641
* MFC r198471.Alexander Kabaev2009-12-201-0/+1
| | | | | | | | | | | | | Log: Compile libgcov without stack protection. It can be linked into both static and dynamic binaries compiled with or without stack protection and should not depend on libssp_nonshared.a symbols. Discussed with: kib PR: bin/139052 Notes: svn path=/stable/8/; revision=200748
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-195-5/+5
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* Second attempt at eliminating .text relocations in shared librariesAlexander Kabaev2009-07-142-1/+7
| | | | | | | | | | | | | | | | | compiled with stack protector. Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work every time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kib) Notes: svn path=/head/; revision=195697
* Back out previous revision until better tested fix is ready.Alexander Kabaev2009-06-292-8/+2
| | | | | | | Approved by: re (impliciti, by approving previos check-in) Notes: svn path=/head/; revision=195152
* Eliminate .text relocations in shared libraries compiled with stack protector.Alexander Kabaev2009-06-282-2/+8
| | | | | | | | | | | | | | | Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work everys time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kensmith) Notes: svn path=/head/; revision=195151
* Compile static gcov library with -fPIC to match what stock GCC buildsAlexander Kabaev2009-06-211-4/+12
| | | | | | | | | are doing. This is required for libgcov.a to be usable on amd64. Reported by: stas Notes: svn path=/head/; revision=194564
* Restore the install location of libssp.so.0.Ruslan Ermilov2009-02-241-1/+2
| | | | | | | Noticed by: tegge Notes: svn path=/head/; revision=188995
* Fix build when WITH_SSP is set explicitly.Ruslan Ermilov2009-02-212-2/+6
| | | | | | | Submitted by: Jeremie Le Hen Notes: svn path=/head/; revision=188895
* Honor WITHOUT_INSTALLLIB in some places.Jung-uk Kim2009-02-131-0/+2
| | | | Notes: svn path=/head/; revision=188583
* There's no need to redundantly redefine atomicity.h.Warner Losh2008-12-311-1/+0
| | | | Notes: svn path=/head/; revision=186641
* Revert previous commit. The prototype has been moved to unistd.hMarcel Moolenaar2008-09-281-1/+1
| | | | Notes: svn path=/head/; revision=183440
* Add -D_OSRELDATE_H to CFLAGS to prevent the declaration ofMarcel Moolenaar2008-09-261-1/+1
| | | | | | | | | | | getosreldate() in assembler source files. We still get the definition of __FreeBSD_version this way, because it's outside the standard multiple-inclusion protection trick. All this is specific to ia64. Notes: svn path=/head/; revision=183384
* MFP4: Add mips to the list of soft-float platforms.Warner Losh2008-09-191-2/+2
| | | | Notes: svn path=/head/; revision=183167
* mfp4: sort the architectures alphabetically...Warner Losh2008-09-191-1/+1
| | | | Notes: svn path=/head/; revision=183166
* Prefer the patch in p4 to the patch in svn as it properly sorts theWarner Losh2008-09-191-1/+1
| | | | | | | architectures alphabetically. Notes: svn path=/head/; revision=183165
* Add FreeBSD/MIPS support to GCC.David E. O'Brien2008-09-013-3/+3
| | | | Notes: svn path=/head/; revision=182627
* Enable GCC stack protection (aka Propolice) for userland:Ruslan Ermilov2008-06-253-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org> Notes: svn path=/head/; revision=180012
* Install extra include files that were forgotten in original GCC 4.2.xAlexander Kabaev2008-06-161-1/+15
| | | | | | | | | | | import changes. PR: 124647 Submitted by: Vlad GALU MFC after: 2 days Notes: svn path=/head/; revision=179834
* Add MIPS to the list of "no TLS" architectures.Oleksandr Tymoshenko2008-05-031-1/+1
| | | | | | | Approved by: cognet (mentor) Notes: svn path=/head/; revision=178750
* Let PowerPC world optionally build with -msoft-float. For FPU-less PowerPCRafal Jaworowski2008-02-241-1/+1
| | | | | | | | | | | | variations (e500 currently), this provides a gcc-level FPU emulation and is an alternative approach to the recently introduced kernel-level emulation (FPU_EMU). Approved by: cognet (mentor) MFp4: e500 Notes: svn path=/head/; revision=176530
* Remove one more alpha leftover.Ruslan Ermilov2008-01-241-1/+1
| | | | Notes: svn path=/head/; revision=175623
* While checking over the libraries for 7.0-REL Kris found the followingKen Smith2007-11-201-1/+1
| | | | | | | | | | | | | | libraries had not had their versions bumped relative to 6.3-REL but had indeed been changed. We need to bump their version so they can be properly added to the compat6x port: libasn1.so.8 libgssapi.so.8 libhdb.so.8 libkadm5clnt.so.8 libkadm5srv.so.8 libkafs5.so.8 libkrb5.so.8 libobjc.so.2 MFC After: 1 day Notes: svn path=/head/; revision=173767
* Back out last commit -- it breaks sparc64 build which hasRuslan Ermilov2007-10-131-2/+2
| | | | | | | more than one .c file in SRCS. Notes: svn path=/head/; revision=172609
* Minor tweak to finding BEG/END source.David E. O'Brien2007-10-121-2/+2
| | | | Notes: svn path=/head/; revision=172594
* - After gcc 4.2 import, include/objc/objc-api.h requires objc-decls.h whichRong-En Fan2007-10-121-1/+1
| | | | | | | | | | | | we did not install. Install objc-decls.h to fix. PR: 116943 Reported by: beech Submitted by: vanilla on -current, kan MFC after: 1 week Notes: svn path=/head/; revision=172553
* Fix stack overflow with too many items return list in 'dialog' program.Andrey A. Chernov2007-08-241-1/+1
| | | | | | | | | (Noticed in ghostscript-gpl core dump) Approved by: re@ (bmah) Notes: svn path=/head/; revision=171951
* Install etx/numeric_traits.h.Alexander Kabaev2007-08-161-4/+4
| | | | | | | | PR: gnu/115250 Approved by: re (blanket) Notes: svn path=/head/; revision=171864
* Remove comment that was added by mistakes and which prevented _eprintfAlexander Kabaev2007-08-141-1/+1
| | | | | | | | | and gcc_bcmp to be added to static libgcc.a. Approved by: re (kensmith) Notes: svn path=/head/; revision=171846
* - Bump share library version which were missed in last bumpRong-En Fan2007-06-183-3/+3
| | | | | | | | | Reported by: jhb Discussed with: deischen, des, doubg, harti Approved by: re (kensmith) Notes: svn path=/head/; revision=170925
* Install omp.h file.Alexander Kabaev2007-05-311-0/+2
| | | | | | | Submitted by: Pieter de Goeje (pieter at degoejes dot nl) Notes: svn path=/head/; revision=170156
* Don't forget to clean generated ssp.h.Ruslan Ermilov2007-05-221-0/+1
| | | | Notes: svn path=/head/; revision=169862
* Fix the fallout from over-zealous obsolete files removal. Use correctAlexander Kabaev2007-05-191-1/+1
| | | | | | | atomicity.h file for arm and powerpc. Notes: svn path=/head/; revision=169767
* Do not compile hash_compat.c.Alexander Kabaev2007-05-191-1/+1
| | | | Notes: svn path=/head/; revision=169736
* Update bmake glue to build GCC 4.2.Alexander Kabaev2007-05-1913-678/+1396
| | | | | | | | | | | | | | | | | | | | | | | | Also: Switch FreeBSD to use libgcc_s.so.1. Use dl_iterate_phdr to locate shared objects' exception frame info instead of depending on older register_frame_info machinery. This allows us to avoid depending on libgcc_s.so.1 in binaries that do not use exception handling directly. As an additional benefit it breaks circular libc <=> libgcc_s.so.1 dependency too. Build newly added libgomp.so.1 library, the runtime support bits for OpenMP. Build LGPLed libssp library. Our libc provides our own BSD-licensed SSP callbacks implementation, so this library is only built to benefit applications that have hadcoded knowledge of libssp.so and libssp_nonshared.a. When linked in from command line, these libraries override libc implementation. Notes: svn path=/head/; revision=169718
* Change RL_LIBRARY_VERSIONAndrey A. Chernov2006-12-311-1/+1
| | | | Notes: svn path=/head/; revision=165677
* Update configAndrey A. Chernov2006-12-311-3/+33
| | | | Notes: svn path=/head/; revision=165676
* Don't build the libgcc with functions already included in the libc toOlivier Houchard2006-10-121-1/+1
| | | | | | | | | unbreak the build. We'll switch back to the libgcc functions and get rid of the libsoftfloat later. Notes: svn path=/head/; revision=163279
* The ARM platform does the setjmp/longjmp type of exception handling.David E. O'Brien2006-10-051-0/+3
| | | | Notes: svn path=/head/; revision=163043
* Fix build due to the incomplete removal of demangle.h.Ruslan Ermilov2006-09-301-1/+1
| | | | Notes: svn path=/head/; revision=162851
* Reduce diffs with file generated by FSF configure.Alexander Kabaev2006-09-221-12/+18
| | | | Notes: svn path=/head/; revision=162553
* Update libsupc++ to include missing files. This was fixed in libstdc++Alexander Kabaev2006-08-191-5/+6
| | | | | | | | | | a long time ago, but libsupc++ was left out somehow, PR: gnu/99702 Submitted by: George Mitchell Notes: svn path=/head/; revision=161457
* Garbage collect library we did not compile for ages.Alexander Kabaev2006-06-061-7/+0
| | | | Notes: svn path=/head/; revision=159355
* Upgrade to 5.1Andrey A. Chernov2006-03-272-1/+22
| | | | Notes: svn path=/head/; revision=157190
* Convert NO_PROFILE and NO_LIB32 to new style.Ruslan Ermilov2006-03-183-5/+9
| | | | Notes: svn path=/head/; revision=156854
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-172-4/+8
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* NO_MAN is not needed here.Ruslan Ermilov2006-03-161-1/+0
| | | | Notes: svn path=/head/; revision=156775