summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/ld
Commit message (Collapse)AuthorAgeFilesLines
* Revert r234656, and apply a proper fix for binutils PR 10474, whichdim2012-05-071-0/+33
| | | | | | | | | | | | caused linking clang on 32-bit PowerPC to fail with "relocation truncated to fit: R_PPC_REL24" errors. Original diffs (relicensed under GPLv2 with permission from author): http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb Tested by: andreast MFC after: 1 week
* Rename the linker emulation name for powerpc and powerc64. This is needed thatandreast2011-11-191-0/+3
| | | | | we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation.
* Fix clang warnings.benl2011-06-182-3/+6
| | | | Approved by: philip (mentor)
* Add .interp back into INITIAL_READONLY_SECTIONS in MIPS n64 ABI.jchandra2011-06-011-1/+9
| | | | | | | | | | | | | | The binutils update in r218822 caused the MIPS n64 dynamic binaries to fail because the ".interp" section is not in the initial sections. This happens because elf64bmip-defs.sh overrides INITIAL_READONLY_SECTIONS to add ".MIPS.options" sections instead of the ".reginfo" section used by n32. This used to work fine, but after r218822, INITIAL_READONLY_SECTIONS also contains the .interp section, so the override has to be done differently. Reported by : aduane at juniper Obtained from: gonzo (Initial version)
* Fix clang warnings.benl2011-05-221-4/+5
| | | | Approved by: philip (mentor)
* Merge binutils 2.17.50 to head. This brings a number of improvements todim2011-02-18141-13821/+33486
|\ | | | | | | | | | | | | | | | | 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
| * For ia64, add a proper 'elf64-ia64-freebsd' output format to BFD, so thedim2010-12-051-0/+1
| | | | | | | | | | | | ELF branding for FreeBSD is done in the same way as amd64, i386 and sparc. Something similar should probably also be done for arm, mips and powerpc.
| * Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which bringsdim2010-11-01110-8133/+17586
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | us up to version 2.17.50.20070703, at the last GPLv2 commit. Amongst others, this added upstream support for some FreeBSD-specific things that we previously had to manually hack in, such as the OSABI label support, and so on. There are also quite a number of new files, some for cpu's (e.g. SPU) that we may or may not be interested in, but those can be cleaned up later on, if needed.
| * | Apply commit f6c8fecc6fe3d5532691867a7f27820bb1c426a9 from upstreamdim2010-10-252-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (still under GPLv2 at that time): Author: H.J. Lu <hjl@lucon.org> Date: Wed Sep 27 04:18:16 2006 +0000 PR ld/3223 PR ld/3267 * bfd/elf.c (assign_file_positions_for_non_load_sections): Don't warn zero size allocated sections. * ld/ldlang.h (lang_output_section_statement_type): Add section_relative_symbol. * ld/ldlang.c (strip_excluded_output_sections): Don't strip a section with a symbol relative to it. (lang_size_sections_1): Mark if an output section has a symbol symbol relative to it. This prevents warnings like the following during stripping of debug info from kernel modules on i386: ===> zlib (all) ... objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko BFD: zlib.ko: warning: allocated section `.plt' not in segment BFD: zlib.ko: warning: allocated section `.got' not in segment
| * | Apply commit d3a5e914c6ff07c426b026b0cda8d044fd1cdabe from upstreamdim2010-10-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (still under GPLv2 at that time): Author: Nick Clifton <nickc@redhat.com> Date: Thu Aug 24 14:59:24 2006 +0000 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum): Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed. This is a prerequisite for the fix coming just after this.
| * | Reapply change from r210245. In binutils 2.17, the code in question hasdim2010-10-212-56/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moved from ld/emultempl/elf32.em to ld/ldlang.c, so apply approximately the same change as upstream, which has description: * ldlang.c (lang_insert_orphan): Add __start_<section> symbol assignment inside output section statement. Ensure only one set of symbols per output section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-dollar sections before dollar sections. Correct add_child list insertion. Taken from upstream git commit 7e01d69a19a8fd079887f26853c8565da15ff340, with permission to use it under GPLv2 from the author.
| * | Merge ^vendor/binutils/dist@214082 into contrib/binutils.dim2010-10-21100-9547/+19698
| |\ \ | | |/
| | * Rename vendor/binutils/*/contrib to vendor/binutils/*/xobrien2009-01-19194-70817/+0
| | | | | | | | | | | | | | | | | | | | | Binutils has a "contrib" subdirectory - thus flattening cannot happen without renaming the upper level contrib directory in a first pass. Also, don't record this move and remove any keyword expansion.
| * | Merge ^vendor/binutils/dist@214033 into contrib/binutils.dim2010-10-191-0/+10
| | | | | | | | | | | | | | | | | | | | | The change made to bfd/elf.c in upstream revision 1.217.4.3 (which was a revert of an earlier change), caused objcopy on powerpc to fail to copy debug info from kernel modules. This had to be fixed by applying the diff from upstream revision 1.243 on top of it.
| * | Merge ^vendor/binutils/dist@213996 into contrib/binutils. Skip addingdim2010-10-183-414/+472
| | | | | | | | | | | | | | | any files we do not need, delete some files that were removed upstream, but keep our own customizations and backports from later binutils.
* | | On PowerPC64, linker emits a fake object into each linked object,kib2011-01-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 'linker stubs'. Add .note.GNU-stack for the stubs objects. Without this, final binary will have RWE mode for PT_GNU_STACK regardless of the actual requirements. Tested by: nwhitehorn Reviewed by: dim, nwhitehorn
* | | Add a workaround for the warnings and sometimes errors due to missedkib2011-01-141-0/+3
|/ / | | | | | | | | | | forward-declaration. Reviewed by: dim
* | binutils/ld: fix incorrect placement of __start_SECNAME in some casesavg2010-07-191-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __start_SECNAME and __stop_SECNAME symbols are automatically generated by ld for orphan sections, i.e. those not explicitely referenced by a linker script. The symbols are supposed to be placed correspondingly at the start and the end of the section in output file. In some cases __start_SECNAME may be placed at the address after the end of the previous section (if any) and before the start the section. This happens when following conditions are met: 1. the orphan section is found in more than one input file 2. the orphan section has different alignment requirements across input files 3. the first instance of the section encountered doesn't have the greatest alignment requirement In these conditions resulting output section will be placed at address after the end of the previous section aligned to the greatest alignment requirement in the inputs, but __start_SECNAME will be placed at address after the end of the previous section aligned to the alignment requirement of the first input in which the section is encountered. See commit message of r196118 for a concrete example of problems caused by this bug. The fix is to place __start_SECNAME inside the section and use ABSOLUTE directive, rather than placing __start_SECNAME outside the section and trying to guess address alignment. This fix is in line with upstream binutils change/fix made between versions 2.19 and 2.20 in revision of 1.307 ldlang.c. MFC after: 3 weeks
* | Teach our toolchain how to generate 64-bit PowerPC binaries. This fixesnwhitehorn2010-07-101-0/+3
| | | | | | | | | | | | | | | | 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
* | Push mips support into the tree.imp2008-12-111-0/+3
| |
* | This commit was generated by cvs2svn to compensate for changes in r179404,obrien2008-05-2919-0/+721
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2008-05-2919-0/+721
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | This commit was generated by cvs2svn to compensate for changes in r131722,obrien2004-07-061-0/+80
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2004-07-061-0/+80
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | Update HEAD with the stock binutils_2_15_20040523 file.obrien2004-06-164-251/+521
| |
* | Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints) intoobrien2004-06-161-307/+401
| | | | | | | | Binutils 2.15.
* | Merge rev 1.2 (FreeBSD a.out configuration support) into Binutils 2.15.obrien2004-06-161-86/+461
| |
* | This commit was generated by cvs2svn to compensate for changes in r130561,obrien2004-06-1697-10495/+15383
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2004-06-16103-11119/+16744
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
| * Things that never should have been imported.obrien2003-03-0222-254/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r111756,obrien2003-03-0215-179/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | Update HEAD with the stock files.obrien2002-12-023-8/+29
| |
* | Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)obrien2002-12-021-45/+58
| | | | | | | | into the Binutils 2.13.2 20021128 snap.
* | GC some stuff I thought was long gone.obrien2002-12-0211-454/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r107492,obrien2002-12-0223-372/+655
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.13 branch (just pre-.2 release).obrien2002-12-0227-425/+742
| | | | | | | | These bits are taken from the FSF anoncvs repo on 27-Oct-2002 21:12:00 EST.
* | Try to keep CVS from pissing over the next binutils import by returningobrien2002-12-024-12/+0
| | | | | | | | to purely stock files.
* | Use the stock version of this.obrien2002-10-111-13/+30
| |
* | Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)obrien2002-10-111-4/+19
| | | | | | | | into Binutils 2.13.1 snap.
* | Bring the binutils_2_13_20021110_snap version of this to the HEAD branch.obrien2002-10-111-2/+4
| |
* | Bring the 2.13 snap version of this to the HEAD branch.obrien2002-10-111-10/+63
| |
* | Use the stock 2.13.1 snapshot version of this.obrien2002-10-111-23/+15
| |
* | Merge rev 1.2 (FreeBSD a.out configuration support) into theobrien2002-10-111-14/+108
| | | | | | | | Binutils 2.13_20021110 snap.
* | This commit was generated by cvs2svn to compensate for changes in r104834,obrien2002-10-1153-1528/+3457
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.13 branch (just pre-.1 release).obrien2002-10-1159-1594/+3696
| | | | | | | | These bits are taken from the FSF anoncvs repo on 11-Oct-2002 22:39:35 PDT.
* | Remove these Bintuils 2.11 files that aren't part of 2.12.obrien2002-09-013-322/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r102729,obrien2002-08-312-3/+11
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.12 branch (post-.1 release).obrien2002-08-312-3/+11
| |
* | Merge rev 1.2 (FreeBSD a.out configuration support) into theobrien2002-07-051-0/+23
| | | | | | | | Binutils 2.12_20020622 snap.
* | Use the stock 2.12.1 snapshot version of this.obrien2002-07-051-0/+7
| |
OpenPOWER on IntegriCloud