327471 |
01-Jan-2018 |
dim |
MFC r327164:
Fix clang 6.0.0 compiler warnings in binutils
Latest clang git has a warning -Wnull-pointer-arithmetic which will trigger a -Werror failure. Addition and subtraction from a null pointer is undefined behaviour and could be optimized into anything.
Furthermore, using the difference between two pointers and casting the result back to a pointer is not portable since the size of ptrdiff_t does not necessary have to be the same as size of void* (this happens e.g. on CHERI). Using intptr_t instead fixes this portability issue and the compiler warning.
Submitted by; Alexander Richardson Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D12928 |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
300960 |
29-May-2016 |
ed |
Replace local prototype of basename() with an inclusion of <libgen.h>.
libiberty currently defines the prototype for basename() itself instead of using <libgen.h>. It still uses the BSD-style prototype instead of the POSIX one, meaning that if FreeBSD would switch over to the POSIX one, you wouldn't be able to use libiberty.h and libgen.h in a single source file. It turns out that kgdb does this. Patch up libiberty to just include <libgen.h>.
I'm currently talking to upstream to see whether we can come up with a more complete solution that could be integrated, but for our unmaintained copy of GDB in base, let's just apply the simplest workaround possible.
Reviewed by: pfg Differential Revision: https://reviews.freebsd.org/D6631
|
281048 |
03-Apr-2015 |
andrew |
More ARM EABI object attributes in binutils. This adds support to binutils to include the Unaligned Access and Floating-point Half-precision attributes. the former marks ELF objects that may access ARMv6 style unaligned data, the latter that the binary uses the VFPv3/Advanced SIMD half-precision extension.
These may be emmitted by clang so it's best to print a warning when the linker hits one of them.
Differential Revision: http://reviews.freebsd.org/D2194 Submitted by: Michal Meloun <meloun@miracle.cz> MFC after: 1 week
|
275718 |
12-Dec-2014 |
jhibbits |
Add new PowerPC relocations to binutils
Summary: LLVM/Clang generates relocations that our binutils doesn't understand, but newer binutils does. I got permission from the author of a series of patches to relicense them as GPLv2 for use in FreeBSD. The upstream git hashes are:
ac2df442ac7901f00af15b272fc48b594b433713 2b95367962dc14f69d3c338c4d54195266e2e169 102890f04c44b64cf5cef4588267dd9f24086ac7 b7fcf6f6bb53b5027e111107f5416769cb9a5798 1d483afedd5a628dc84fb58d1d570f79fdfbfa7b 90aecf7a80c1cefeb45fc10a6cd02c8338e34b4c 3a71aa26df2a372a58e9c11ef9ba51fd0e83320a 727fc41e077139570ea8b8ddfd6c546b2a55627c
With the import of clang 3.5, and a few backported patches, we should be able to move powerpc and powerpc64 to clang-as-cc soon.
Test Plan: Passes make tinderbox, so no regressions. Binaries built with clang run on powerpc64.
Reviewers: #committers, dim
Reviewed By: dim
Differential Revision: https://reviews.freebsd.org/D1297
Obtained from: Alan Modra, upstream binutils-gdb git MFC after: 3 weeks Relnotes: yes
|
274817 |
21-Nov-2014 |
jhb |
Improve support for XSAVE with debuggers. - Dump an NT_X86_XSTATE note if XSAVE is in use. This note is designed to match what Linux does in that 1) it dumps the entire XSAVE area including the fxsave state, and 2) it stashes a copy of the current xsave mask in the unused padding between the fxsave state and the xstate header at the same location used by Linux. - Teach readelf() to recognize NT_X86_XSTATE notes. - Change PT_GET/SETXSTATE to take the entire XSAVE state instead of only the extra portion. This avoids having to always make two ptrace() calls to get or set the full XSAVE state. - Add a PT_GET_XSTATE_INFO which returns the length of the current XSTATE save area (so the size of the buffer needed for PT_GETXSTATE) and the current XSAVE mask (%xcr0).
Differential Revision: https://reviews.freebsd.org/D1193 Reviewed by: kib MFC after: 2 weeks
|
272524 |
04-Oct-2014 |
andrew |
Silence a warning about Tag_Virtualization_use being unknown. We don't handle merging this tag correctly, however it's unused.
|
255874 |
26-Sep-2013 |
andrew |
Add an elf note on ARM to store the MACHINE_ARCH an executable was built for. This is useful for software needing to know which architecture a binary is built for as arm and armv6 have slight differences meaning only some binaries build for one will work as expected on the other. It is expected pkgng will be able to make use of this to simplify the logic to determine which package ABI to use.
Approved by: re (kib)
|
255522 |
13-Sep-2013 |
emaste |
Improve readelf notes output for Linux ELF files
Add four ELF note constants: - NT_FILE and NT_SIGINFO (core file notes output by recent Linux kernels) - NT_GNU_ABI_TAG (was incorrectly reported as NT_VERSION) - NT_GNU_BUILD_ID (used for locating standalone debug files)
Approved by: re (kib)
|
253451 |
18-Jul-2013 |
emaste |
Handle FreeBSD-specific ELF notes
Add a function to return the specific type, when the note's Name field is 'FreeBSD'.
r249558 added FreeBSD-specific ELF note types that reuse type numbers of existing generic / Linux types. This caused 'readelf -n' to produce incorrect output on FreeBSD core files.
Sponsored by: DARPA, AFRL MFC after: 3 days
|
251665 |
12-Jun-2013 |
emaste |
Handle DW_TAG_rvalue_reference_type
2012-05-21 Jim Ingham <jingham@apple.com>
* dwarf2read.c (process_die): Handle DW_TAG_rvalue_reference_type. (read_type_die): Ditto. (dwarf_tag_name): Ditto.
* elf/dwarf2.h: Add DW_TAG_rvalue_reference_type.
Obtained from: Apple, gdb-1820
|
249603 |
18-Apr-2013 |
andrew |
Fix the value of NT_FREEBSD_TAG to be the same as ABI_NOTRTYPE in lib/csu. Add NT_FREEBSD_NOINIT_TAG for the value of CRT_NOINIT_NOTETYPE. Check for both of these when detecting a FreeBSD binary in gdb.
|
246312 |
04-Feb-2013 |
andrew |
Extend GDB to check the value in the .note.tag section along with the .note.ABI-tag section.
This helps on ARM EABI where the OS/ABI field is zero. It would be better to use the NOTES program header however this would require a more invasive change.
|
239870 |
29-Aug-2012 |
dim |
Teach gdb about the DW_FORM_flag_present dwarf attribute, so it doesn't error out on files that contain it. (This attribute can be emitted by newer versions of clang.)
MFC after: 2 weeks
|
218822 |
18-Feb-2011 |
dim |
Merge binutils 2.17.50 to head. This brings a number of improvements to x86 CPU support, better support for powerpc64, some new directives, and many other things. Bump __FreeBSD_version, and add a note to UPDATING.
Thanks to the many people that have helped to test this.
Obtained from: projects/binutils-2.17
|
215679 |
22-Nov-2010 |
attilio |
Add the ability for GDB to printout the thread name along with other 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
|
213274 |
29-Sep-2010 |
rpaulo |
Add support for the BFD target efi-app-x86_64.
This uses only GPL2 source code and is a requirement for a 64 bit EFI boot loader.
|
208737 |
02-Jun-2010 |
jmallett |
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.
Reviewed by: imp
|
179407 |
29-May-2008 |
obrien |
Bring these back to HEAD. (I thought ncvs@ had rm'ed these MIPS files a long time ago... SVN had better work out - else 7 more files off the vendor branch.)
|
179405 |
29-May-2008 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r179404, which included commits to RCS files with non-trunk default branches.
|
131723 |
06-Jul-2004 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r131722, which included commits to RCS files with non-trunk default branches.
|
130567 |
16-Jun-2004 |
obrien |
Blah, these came back. Use a bigger hammer.
|
130562 |
16-Jun-2004 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r130561, which included commits to RCS files with non-trunk default branches.
|
127106 |
17-Mar-2004 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r127105, which included commits to RCS files with non-trunk default branches.
|
111757 |
02-Mar-2003 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r111756, which included commits to RCS files with non-trunk default branches.
|
107495 |
02-Dec-2002 |
obrien |
GC some stuff I thought was long gone.
|
107493 |
02-Dec-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r107492, which included commits to RCS files with non-trunk default branches.
|
104835 |
11-Oct-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r104834, which included commits to RCS files with non-trunk default branches.
|
102776 |
01-Sep-2002 |
obrien |
Remove these Bintuils 2.11 files that aren't part of 2.12.
|
99462 |
05-Jul-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r99461, which included commits to RCS files with non-trunk default branches.
|
94537 |
12-Apr-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r94536, which included commits to RCS files with non-trunk default branches.
|
92829 |
20-Mar-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r92828, which included commits to RCS files with non-trunk default branches.
|
91042 |
22-Feb-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r91041, which included commits to RCS files with non-trunk default branches.
|
89858 |
27-Jan-2002 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r89857, which included commits to RCS files with non-trunk default branches.
|
85816 |
01-Nov-2001 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r85815, which included commits to RCS files with non-trunk default branches.
|
84866 |
13-Oct-2001 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r84865, which included commits to RCS files with non-trunk default branches.
|
80017 |
20-Jul-2001 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r80016, which included commits to RCS files with non-trunk default branches.
|
78829 |
26-Jun-2001 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r78828, which included commits to RCS files with non-trunk default branches.
|
77299 |
28-May-2001 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r77298, which included commits to RCS files with non-trunk default branches.
|
75399 |
10-Apr-2001 |
obrien |
Removed these old 2.9.x files.
|
69158 |
25-Nov-2000 |
obrien |
Remove binutils 2.9.1 files that are not part of 2.10.x.
|
68766 |
15-Nov-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r68765, which included commits to RCS files with non-trunk default branches.
|
68674 |
13-Nov-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r68673, which included commits to RCS files with non-trunk default branches.
|
68672 |
13-Nov-2000 |
obrien |
remove files not needed.
|
68671 |
13-Nov-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r68670, which included commits to RCS files with non-trunk default branches.
|
61844 |
20-Jun-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r61843, which included commits to RCS files with non-trunk default branches.
|
60530 |
13-May-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r60529, which included commits to RCS files with non-trunk default branches.
|
60485 |
12-May-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r60484, which included commits to RCS files with non-trunk default branches.
|
59344 |
18-Apr-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r59343, which included commits to RCS files with non-trunk default branches.
|
59025 |
05-Apr-2000 |
obrien |
This commit was generated by cvs2svn to compensate for changes in r59024, which included commits to RCS files with non-trunk default branches.
|
44349 |
28-Feb-1999 |
imp |
This commit was generated by cvs2svn to compensate for changes in r44348, which included commits to RCS files with non-trunk default branches.
|
38890 |
06-Sep-1998 |
jdp |
This commit was generated by cvs2svn to compensate for changes in r38889, which included commits to RCS files with non-trunk default branches.
|
33966 |
01-Mar-1998 |
jdp |
This commit was generated by cvs2svn to compensate for changes in r33965, which included commits to RCS files with non-trunk default branches.
|