summaryrefslogtreecommitdiffstats
path: root/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Switch mips architectures back to libgcc.kan2010-12-291-1/+1
| | | | | | MIPS64 n64 binaries are broken with libcompiler_rt at this time. Switch mips back to libgcc until the cause of breakage is analyzed and fixed.
* Unbreak amd64<->i386 cross builds.nwhitehorn2010-12-021-2/+3
|
* The driver-XXX.c files used for host CPU detection with -march=nativenwhitehorn2010-12-021-1/+2
| | | | | should not be compiled in the cross-tools case (where -march=native makes no sense). This fixes cross-building x86 toolchains on non-x86 systems.
* Add the ability for GDB to printout the thread name along with otherattilio2010-11-221-3/+44
| | | | | | | | | | | | | | | | | | | | thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
* Let gcc and ld know where to find 32 bit libraries on amd64.tijl2010-11-172-2/+2
| | | | | Reviewed by: arch@ Approved by: kib (mentor)
* Garbage-collect some code made obsolete by the TBEMD import.nwhitehorn2010-11-155-16/+1
|
* Try including Makefile.${TARGET_ARCH} before Makefile.${TARGET_CPUARCH} ifnwhitehorn2010-11-151-17/+4
| | | | | | | it exists in order to allow arch-specific overrides. This fixes the binutils (and world) build on powerpc64 after recent TBEMD merges. Reviewed by: imp
* Add missing '/'.nyan2010-11-142-2/+2
|
* We need to add powerpc64->powerpc translations (I knew I hated copyingimp2010-11-144-5/+5
| | | | | | | | this code in the first place). Also MACHINE_ARCH powerpc is 32-bit, not MACHINE_CPUARCH == powerpc. Submitted by: nathanw
* These two cases should be different...imp2010-11-141-2/+2
| | | | Submitted by: nathanw@
* Revert to libgcc for sparc64.ed2010-11-121-0/+4
| | | | | | | | | I've had a report of a sparc64 system where cc1 generates illegal instructions. We still have to diagnose this properly, but instead of hosing all sparc64 boxes out there, fall back to libgcc to prevent more damage. Reported by: Florian Smeets
* Garbage collect gnu/usr.bin/binutils/{gasp,gdb,gdbreplay}, as these havedim2010-11-1126-3330/+0
| | | | | | not been connected to the build for more than 6 years. Obtained from: projects/binutils-2.17
* Do not build or install gasp.info anymore, as gasp has not been built ordim2010-11-111-2/+1
| | | | | | installed for more than 6 years. Obtained from: projects/binutils-2.17
* Replace libgcc.a by libcompiler_rt.a.ed2010-11-111-1/+0
| | | | | | | | | | | | | | | libcompiler_rt.a is a BSD licensed C language runtime, which implements many routines which are linked into binaries on architectures where certain functionality is missing (e.g. 64 bits mul/div on i386). Unfortunately, libcompiler_rt cannot replace libgcc entirely. Certain features, such as an unwinder for exception handling, are missing. That's why only libgcc.a is replaced for now, because this one does seem to be complete. Tested by: rene (amd64), nwhitehorn (powerpc), droso (i386 exprun) and many others. Thanks! Obtained from: user/ed/compiler-rt
* Don't use ${LIB} to obtain the library name.ed2010-11-111-9/+9
| | | | | | | Once we use libcompiler_rt, the LIB-line must go, to prevent libgcc.a from being built. Therefore, just hardcode the name. Obtained from: user/ed/compiler-rt
* Complete the integration of tbemd branch into head.imp2010-11-1014-67/+83
| | | | | | | | | | | | | | | | TARGET_BIG_ENDIAN is now completely dead, except where it was originally supposed to be used (internally in the toolchain building). TARGET_ARCH has changed in three cases: (1) Little endian mips has changed to mipsel. (2) Big endian mips has changed to mipseb. (3) Big endian arm has changed to armeb. Some additional changes are needed to make 'make universe' work on arm and mips after this change, so those are commented out for now. UPDATING information will be forthcoming. Any remaining rough edges will be hammered out in -current.
* Fix cross-debugger buildgonzo2010-11-071-0/+8
|
* Fix initialization order:_initialize_svr4_solib shouldgonzo2010-11-071-2/+2
| | | | be called before _initialize_thread_db
* - Use proper constant for accessing PCB intead of hardcoded numbersgonzo2010-11-071-15/+18
| | | | - Minor clean-up
* Link threads support to the buildgonzo2010-11-072-1/+2
|
* Add FreeBSD 8.2.jh2010-10-141-0/+1
| | | | | Reviewed by: ru MFC after: 3 days
* Add definition for FreeBSD 7.4, which will be used in a manual page change.delphij2010-10-061-0/+1
| | | | | Reviewed by: ru MFC after: 3 days
* Retire GNU man in favor of the newly written BSDL version.gordon2010-10-031-5/+0
| | | | Approved by: wes (mentor)
* Remove target peigen.c so that make doesn't warn us about it.rpaulo2010-09-301-2/+0
|
* Add support for the BFD target efi-app-x86_64.rpaulo2010-09-291-2/+11
| | | | | This uses only GPL2 source code and is a requirement for a 64 bit EFI boot loader.
* Move test for zero bufp or size before rseq and wseq calculation. Thisemaste2010-09-221-1/+3
| | | | | avoids spinning in an infinite loop for some (possibly corrupt?) core files at work.
* When building world with clang, for gnu/lib/libobjc, sys/boot/i386/boot2dim2010-09-211-3/+1
| | | | | | | | | | | | and sys/boot/pc98/boot2, do not simply assign 'gcc' to CC, since compile flags are sometimes passed via this variable, for example during the build32 stage on amd64. This caused the 32-bit libobjc build on amd64 to fail. Instead, only replace the first instance of clang (if any, including optional path) with gcc, and leave the arguments alone. Approved-by: rpaulo (mentor)
* GCC defines built-ins for atomic instructions found on i486 and higher.tijl2010-09-072-2/+2
| | | | | | | | | | | | | | 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> Reviewed by: kan Approved by: kib (mentor) MFC after: 2 weeks
* Use a more robust way to substitute gcc for clang, when compilingdim2010-08-311-1/+3
| | | | | | | gnu/lib/libobjc and sys/boot/i386/boot2, so it also works when using absolute paths and/or options, as in CC="/absolute/path/clang -foo". Approved by: rpaulo (mentor)
* Repair some build breakage introduced in r211725 and garbage collect somenwhitehorn2010-08-281-1/+1
| | | | code made obsolete in the same commit.
* Create a checklist and call one of the *printw() functions from theimp2010-08-241-0/+18
| | | | | | | | | | | | | | | | | selected() callback. When the dialog first appears, you will not see the printed statement on the dialog, if you move down one, you will, move up again and it now appears. I am assuming that you call a *printw() function on a line in the dialog box of course. The fix, from the pr: This is a hack at best, I looked at the redraw code in dialog_checklist() and took the minimal amount of it out to do a simple "refresh" right after the items are drawn. This doesn't hurt anything and makes the library work like it should. There is probably a better way however =). PR: 148609 Submitted by: John Hixson
* MFtbemd:imp2010-08-236-31/+21
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* - Change default grep back to GNU version. BSD grep can be built with thegabor2010-08-231-4/+4
| | | | | | | | WITH_BSD_GREP knob. - Bump __FreeBSD_version Requested by: dougb Approved by: delphij (mentor)
* We need to pull bsd.own.mk before modifying the CC variable. Otherwiserpaulo2010-08-211-0/+2
| | | | | | it will be overwritten when we include bsd.lib.mk. Pointed out by: Dimitry Andric <dimitry at andric.com>
* Fix buildworld -DNO_CLEAN when using with Perforce, which marks files aswill2010-08-124-5/+5
| | | | | | | read-only by default, meaning files copied can't be overwritten next time. Reviewed by: imp Approved by: ken (mentor)
* Change kgdb_lookup() to resolve symbols via GDB instead of via libkvm(3).jhb2010-08-043-29/+23
|
* Give kgdb(1) a chance to take a look at FPU state.jkim2010-08-021-0/+1
|
* Fix case for library macrosuqs2010-08-021-1/+1
|
* Add libproc.rpaulo2010-07-311-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Add librtld_db.rpaulo2010-07-311-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* kgdb: correctly map sections to addresses in elf object modules (amd64)avg2010-07-231-6/+28
| | | | | | | | | | | | | Unlike for modules with dso type, in elf object modules all the sections have virtual address of zero. So, it is insufficient to add module base address to section virtual address (as recorded in section header) to get section address in kernel memory. Instead, we should apply the same calculations that are performed by kernel loaders (in boot code and in kernel) when they lay out sections in memory. Discussed with: jhb, np MFC after: 3 weeks
* Disable building libobjc with clang as it's not yet supported.rpaulo2010-07-221-0/+3
| | | | Submitted by: Dimitry Andric <dimitry at andric.com>
* Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPICmarcel2010-07-151-1/+1
| | | | as compiler options resulted in an invalid executable on PowerPC.
* Teach our toolchain how to generate 64-bit PowerPC binaries. This fixesnwhitehorn2010-07-1018-6/+1096
| | | | | | | | a variety of bugs in binutils related to handling of 64-bit PPC ELF, provides a GCC configuration for 64-bit PowerPC on FreeBSD, and associated build systems tweaks. Obtained from: projects/ppc64
* Mention the radiolist option in the man page. It is being listed whenbcr2010-07-061-0/+10
| | | | | | | | | | | | | dialog(1) is run without arguments and works as expected. Therefore, it should be part of the manual as well. Note: dialog(1) has not been updated for many years and is not actively maintained at the moment. PR: docs/139682 Submitted by: manolis@ Discussed with: jkim@ MFC after: 2 weeks
* For "thread signal" command, print some information from siginfo whenkib2010-07-041-0/+37
| | | | | | | available. Suggested by: davidxu MFC after: 2 weeks
* Add an alignment of 8 for sections in the n32 ABI. The default alignmentjchandra2010-06-252-0/+2
| | | | | | | | | of of 4 causes _end to be word aligned, which will be returned by sbrk. malloc(3), when compiled for n32, expects sbrk to return an 8-byte aligned value. Approved by: rrs (mentor)
* Often reported issue with newer ld is:kib2010-06-181-1/+2
| | | | | | | | | | | | | | | | | error in /usr/lib/crtendS.o(.eh_frame); no .eh_frame_hdr table will be created. The issue is that crtend is compiled with unwind table, and also it places the special CIE into the .eh_frame indicating the end of section, that is located before generated unwind table. New ld has assertion that verifies that closing CIE is indeed the last CIE, causing the crypting message to be issued, and refusing to generate dwarf unwind. Add -fno-asynchronous-unwind-tables to disable unwind table generation for crtbegin/crtend. While there, disable omitting the frame pointer [1]. Requested by: kan [1] Reviewed by: kan MFC after: 2 weeks
* Make all tests in libdialog compilable.ae2010-06-154-7/+7
| | | | | | Fix coredump in menu3.c. Approved by: kib (mentor)
* Connect FDT infrastructure to the build system.raj2010-06-131-0/+5
| | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud