summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of https://android.googlesource.com/toolchain/binutilsWolfgang Wiedmeyer2017-02-125-22/+47
|\
| * Set CodeView pdb path/name to base nameJoshua Lang2017-01-315-22/+47
| | | | | | | | | | | | | | | | | | The CodeView pdb path/name field is empty leading windows minidumps to have empty module paths for the binary. This patch sets the path to the base name of the binary. Bug: 33668347 Change-Id: I4138998239b07b54cc36dc2d2e3484c4b63f5435
* | Merge branch 'master' of https://android.googlesource.com/toolchain/binutilsWolfgang Wiedmeyer2016-12-096-130/+236
|\|
| * gold: enable new dtags by default.Rahul Chaudhry2016-11-151-1/+1
| |\ | | | | | | | | | | | | | | | am: 082ed0f10c Change-Id: Ifbc4608738b8b7bc38f278117b82c50c0ce2b9cd
| | * gold: enable new dtags by default.Rahul Chaudhry2016-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | This is also the default upstream: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=50701cc170a7c10a72e5ec2c7c6ed31057a31d43 Bug: 31270843
| * | gold: make icf respect section alignment requirements.Rahul Chaudhry2016-11-035-129/+235
| |\| | | | | | | | | | | | | | | | am: b8ff982870 Change-Id: I004da4b4e8073df2b3d6fad657c1c00ff74ca774
| | * gold: make icf respect section alignment requirements.Rahul Chaudhry2016-10-215-129/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=628795 The upstream bug is https://sourceware.org/bugzilla/show_bug.cgi?id=17704 This patch is backported from upstream - commit ac423761af22f7858a1413cda5df3e1d5e88d4e4 Author: Gergely Nagy <ngg@tresorit.com> Date: Fri Oct 21 11:08:20 2016 -0700 Fix PR 17704. This fix keeps the section with the highest alignment when folding sections with ICF. PR gold/17704 * icf.cc (match_sections): Add new parameter section_addraligns. Check section alignment and keep the section with the strictest alignment. (find_identical_sections): New local variable section_addraligns. Store each section's alignment. * testsuite/pr17704a_test.s: New file. * testsuite/Makefile.am (pr17704a_test): New test. * testsuite/Makefile.in: Regenerate.
| * | Remove warning about references from shared objects to hidden symbols. am: ↵Rahul Chaudhry2016-06-295-20/+35
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6422a80df9 am: 129dec3ed0 am: 1e1ca302a3 Change-Id: Idf18161ad90ebdea222a95cead1af04fb7f9bc18
| | * | Remove warning about references from shared objects to hidden symbols. am: ↵Rahul Chaudhry2016-06-295-20/+35
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6422a80df9 am: 129dec3ed0 Change-Id: Ia2d30b822ea4c0d85f5d63a347c4b1cc06d436d6
| * | | Revert \\\"Disable the warning of a hidden symbol matches a reference to be ↵Rahul Chaudhry2016-06-292-2/+18
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolved.\\\" am: 4520d6bee1 am: fd48d3412a am: 850063a5c4 Change-Id: I2d991e5f66a5ef98096cd4ea833da287f6e74b3b
| | * | Revert \\"Disable the warning of a hidden symbol matches a reference to be ↵Rahul Chaudhry2016-06-292-2/+18
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolved.\\" am: 4520d6bee1 am: fd48d3412a Change-Id: I236eef08f85d32346eeb00ef7e03cc977483e1c0
| * | | | GOLD/DWP: exit without segfault if the binary is not built with debug ↵Yunlian Jiang2016-05-171-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fission. am: 21efffa54e am: 881d3cd754 am: cc160c2199 * commit 'cc160c2199d6d3d8b64dcc578ece5eb5e75a4b80': GOLD/DWP: exit without segfault if the binary is not built with debug fission. Change-Id: I7d0c1206db80741414fdb7e4c5b21c31e42bebd9
| * | | | Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. am: d929cfd am: ↵Joseph Myers2016-04-202-1/+7
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1966aef am: 2b51ecb * commit '2b51ecbab101466172f47f38953929b1653210c1': Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. Change-Id: I7ec117c73928868416edf14e20a09ff6decadb0f
| * \ \ \ \ Add support for DT_MIPS_RLD_MAP_REL. am: a696d1d am: 39f13faMatthew Fortune2016-04-2026-14/+178
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52d9ff8 * commit '52d9ff81dbe9a79e6c0bace624091067b046948b': Add support for DT_MIPS_RLD_MAP_REL. Change-Id: I2d9d7b14e8872360d8549e9c3baa80a41951ac55
| * \ \ \ \ \ Revert "Add support for the new tag DT_MIPS_RLD_MAP2." am: 42704eb am: ba7ec7fNikola Veljkovic2016-04-203-34/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e5714c * commit '1e5714ccaf589fc08d1d5e0335c512b8ce5b3034': Revert "Add support for the new tag DT_MIPS_RLD_MAP2." Change-Id: I6b7c1c4874a22c863efdc3f67eb2c64f164d937e
| * \ \ \ \ \ \ Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host." am: ↵Nikola Veljkovic2016-04-202-7/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 405fb1a am: 825d123 am: 3186005 * commit '3186005e6155741a42bd686442ea312504f8f9be': Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host." Change-Id: Ic2d78e4e1316c6e96e2d024dea0fd603448c75b0
* | | | | | | | | various build fixes for Debian StretchWolfgang Wiedmeyer2016-12-076-50/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | | | | | | | | Merge branch 'master' of https://android.googlesource.com/toolchain/binutilsWolfgang Wiedmeyer2016-09-0838-117/+513
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | |
| * | | | | | | | Remove warning about references from shared objects to hidden symbols.Rahul Chaudhry2016-06-295-20/+35
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6422a80df9 Change-Id: I50bdd1f0349dc9453014936904bc811a23ed7e32
| | * | | | | | | Remove warning about references from shared objects to hidden symbols.Rahul Chaudhry2016-06-285-20/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 21502954 This patch is backported from upstream - commit c20ceeb226168ffd84078ef74d890c2b7f69a435 Author: Yiran Wang <yiran@google.com> Date: Mon Jul 20 08:47:57 2015 -0700 Remove warning about references from shared objects to hidden symbols. gold/ PR gold/15574 * resolve.cc (Symbol_table): Remove warning about references from shared objects to hidden symbols. * testsuite/Makefile.am (hidden_test): Add hidden_test.syms. * testsuite/Makefile.in: Regenerate. * testsuite/hidden_test.sh: Check dynamic symbol table; update expected error messages. Change-Id: Ie6fb67071c7f478859069b7b4bf629cd44f91844
| * | | | | | | | Revert \"Disable the warning of a hidden symbol matches a reference to be ↵Rahul Chaudhry2016-06-292-2/+18
| |\| | | | | | | | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolved.\" am: 4520d6bee1 Change-Id: Ibf705796bdfcfe835185aa7daf332289139fafaf
| | * | | | | | Revert "Disable the warning of a hidden symbol matches a reference to be ↵Rahul Chaudhry2016-06-282-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolved." Bug: 21502954 This change reverts https://android-review.googlesource.com/#/c/155101/, to be replaced by the upstream patch with tests. - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=c20ceeb226168ffd84078ef74d890c2b7f69a435 Change-Id: Id929c8422a016638f860ac508eeafc7080584600
| * | | | | | | GOLD/DWP: exit without segfault if the binary is not built with debug ↵Yunlian Jiang2016-05-171-0/+4
| |\ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fission. am: 21efffa54e am: 881d3cd754 * commit '881d3cd7545c511c99f208f1eb518582b16e67a9': GOLD/DWP: exit without segfault if the binary is not built with debug fission. Change-Id: I57bfd9c5e6b5f5a8d0492103881abce197f34f47
| | * | | | | | GOLD/DWP: exit without segfault if the binary is not built with debug fission.Yunlian Jiang2016-05-171-0/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21efffa54e * commit '21efffa54e136e1b45d8016339bda25690b2b7fd': GOLD/DWP: exit without segfault if the binary is not built with debug fission. Change-Id: I62c6bbf195f2b6cf8fa18dfb21ddf0bd3c9d562f
| | | * | | | | GOLD/DWP: exit without segfault if the binary is not built with debug fission.Yunlian Jiang2016-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dwp segfaults when trying to get .dwp file from a binary built without debug fission. This patch fixes that. upstream thread is https://sourceware.org/ml/binutils/2016-05/msg00204.html BUG=None TEST=dwp still works with files built with debug fission and dwp does not segfault on files that are not built with debug fission.
| * | | | | | | Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. am: d929cfdJoseph Myers2016-04-202-1/+7
| |\| | | | | | | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1966aef * commit '1966aefbbe2e442cf8589e1b64e889fbc6e60272': Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. Change-Id: I4f6b65c3c7dd8f2ceac76fb2e7642420549bd8fa
| | * | | | | Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host.Joseph Myers2016-04-202-1/+7
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d929cfd * commit 'd929cfd50d770364fd652d252abc19598b0cc84c': Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host. Change-Id: I1b4ae890df61145d24a5dfc4c08dfb108adc119e
| | | * | | | Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host.Joseph Myers2016-04-062-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-picked from upstream: d5cff5df74b18e1e5ed94de8f4c9adee3ffd95c6 For the case of MIPS n64 target and 32-bit host, the computation of the DT_MIPS_RLD_MAP_REL tag involves sdyn->output_section->vma + sdyn->output_offset (64-bit) being added to b (32-bit host pointer), so losing the high part and resulting in an incorrect DT_MIPS_RLD_MAP_REL tag, and all dynamically linked glibc tests failing for n64. This patch fixes this (spot-tested with glibc tests; however, I don't have a self-contained testcase for this bug). * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections) <DT_MIPS_RLD_MAP_REL>: Add target address to host address difference, not to host pointer. Change-Id: If4984d632723a36a3d6c739a96706b5636f975bc Conflicts: binutils-2.25/bfd/ChangeLog
| * | | | | | Add support for DT_MIPS_RLD_MAP_REL. am: a696d1dMatthew Fortune2016-04-2026-14/+178
| |\| | | | | | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 39f13fa * commit '39f13fa25e4d4d73a13687dfc1fca67916967018': Add support for DT_MIPS_RLD_MAP_REL. Change-Id: If9a8ff3fec7800d77db1d46965f53a5410f9c7a7
| | * | | | Add support for DT_MIPS_RLD_MAP_REL.Matthew Fortune2016-04-2026-14/+178
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a696d1d * commit 'a696d1d39e22f355b9f7762a0beeed014df761da': Add support for DT_MIPS_RLD_MAP_REL. Change-Id: If2957af88765d2a1c7f2f75ed1027feb9a3dbc37
| | | * | | Add support for DT_MIPS_RLD_MAP_REL.Matthew Fortune2016-04-0626-14/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tag makes it possible to access the debug map when debugging position independent executables. bfd/ * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable instead of !shared to indicate an application vs shared library. (_bfd_mips_elf_size_dynamic_sections): Likewise. (_bfd_mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP_REL. (_bfd_mips_elf_get_target_dtag): Likewise. binutils/ * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL. include/ * elf/mips.h (DT_MIPS_RLD_MAP_REL): New macro. ld/testsuite/ * ld-mips-elf/pic-and-nonpic-3b.ad: Adjust for extra dynamic tag. * ld-mips-elf/pic-and-nonpic-4b.ad: Likewise. * ld-mips-elf/pic-and-nonpic-5b.ad: Likewise. * ld-mips-elf/pic-and-nonpic-6-n32.ad: Likewise. * ld-mips-elf/pic-and-nonpic-6-n64.ad: Likewise. * ld-mips-elf/pic-and-nonpic-6-o32.ad: Likewise. * ld-mips-elf/tlsdyn-o32-1.d: Likewise. * ld-mips-elf/tlsdyn-o32-1.got: Likewise. * ld-mips-elf/tlsdyn-o32-2.d: Likewise. * ld-mips-elf/tlsdyn-o32-2.got: Likewise. * ld-mips-elf/tlsdyn-o32-3.d: Likewise. * ld-mips-elf/tlsdyn-o32-3.got: Likewise. * ld-mips-elf/tlsdyn-o32.d: Likewise. * ld-mips-elf/tlsdyn-o32.got: Likewise. * ld-mips-elf/pie-n32.d: New file. * ld-mips-elf/pie-n64.d: Likewise. * ld-mips-elf/pie-o32.d: Likewise. * ld-mips-elf/pie.s: Likewise. * ld-mips-elf/mips-elf.exp: Add new tests. Change-Id: I9fa38c2876a39c29ae3718bae0ade55c677f96fd
| * | | | | Revert "Add support for the new tag DT_MIPS_RLD_MAP2." am: 42704ebNikola Veljkovic2016-04-203-34/+3
| |\| | | | | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba7ec7f * commit 'ba7ec7f29961e88bc83e2f18cbdc54aa7f39e78d': Revert "Add support for the new tag DT_MIPS_RLD_MAP2." Change-Id: Idd296cd03815f21b2f44b598e03106ca14c63eab
| | * | | Revert "Add support for the new tag DT_MIPS_RLD_MAP2."Nikola Veljkovic2016-04-203-34/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 42704eb * commit '42704eb7fb240faa66f388f6a28d1e2d1c7cf470': Revert "Add support for the new tag DT_MIPS_RLD_MAP2." Change-Id: I151e968d99e725c37de9b1c1918beb222385818f
| | | * | Revert "Add support for the new tag DT_MIPS_RLD_MAP2."Nikola Veljkovic2016-04-063-34/+3
| | | | | | | | | | | | | | | | | | | | This reverts commit 51d71fd2cc99f309cb792cc48ae910baeb92b2a0.
| * | | | Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host." am: 405fb1aNikola Veljkovic2016-04-202-7/+1
| |\| | | | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 825d123 * commit '825d1232afbeae29a9026393cfc0234624577c52': Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host." Change-Id: I0253eb73844d8161b94ed024658da53940311cad
| | * | Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host."Nikola Veljkovic2016-04-202-7/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 405fb1a * commit '405fb1a937f705403a28d5591a1bb530b4efe9ed': Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host." Change-Id: Ie72f1cf7d19e516bae147b53279fe43f2a898775
| | | * Revert "Fix DT_MIPS_RLD_MAP_REL tag for n64 target and 32-bit host."Nikola Veljkovic2016-04-062-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7e80b87f7ff08c7c13f38d76a953b0cd753403aa. Conflicts: binutils-2.25/bfd/ChangeLog Change-Id: I1c0e3d5e9483001db6a4ffe807d6246c2f3ca126
| * | | Backport upstream CL to fix x86_32 clang segfaults. am: 78eb680Yunlian Jiang2016-04-052-47/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61706fc * commit '61706fca24d6eaef96d1957071f9fb81d747143e': Backport upstream CL to fix x86_32 clang segfaults. Change-Id: Ic273844e579d7ddc79b52debf8fc6096d4240bac
| | * | Backport upstream CL to fix x86_32 clang segfaults.Yunlian Jiang2016-04-052-47/+78
| |/| | | | |/ | | | | | | | | | | | | | | | | | | | | | am: 78eb680 * commit '78eb6804689b812b374e2e5d248a96977f13ffd1': Backport upstream CL to fix x86_32 clang segfaults. Change-Id: Idf93d170655b59139895f0256de9926198f17c2a
| | * Backport upstream CL to fix x86_32 clang segfaults.Yunlian Jiang2016-04-012-47/+78
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream patch being backported: commit 84d543b7ed93bf6511cdf45791f4f0b717dfb718 Author: Sriraman Tallam <tmsriram@google.com> Date: Fri Feb 5 15:07:45 2016 -0800 2016-02-05 Sriraman Tallam <tmsriram@google.com> * icf.cc (get_rel_addend): New function. (get_section_contents): Move merge section addend computation to a new function. Ignore negative values for SHT_REL and SHT_RELA addends. Fix bug to not read past the length of the section. Fix bug related to addend computation for MERGE sections. Tested via cbuildbot for ChromeOS and build on Android mnc-dr-release for hammerhead
| * Backport upstream CL to fix x86_64 clang test-stlport segfaults.Han Shen2016-03-103-5/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream patch being backported: commit fc5a9bd57cbb974b8fc3aeb9a15d644cd9103451 Author: Cary Coutant <ccoutant@gmail.com> Date: Fri Feb 26 07:50:15 2016 -0800 Discard FDEs for zero-length address ranges. 2016-02-26 Egor Kochetov <egor.kochetov@intel.com> Cary Coutant <ccoutant@gmail.com> gold/ PR gold/19735 * ehframe.h (Cie::fde_encoding): New method. * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length address ranges. TESTED=only tested building with 'build.py' BUG=26085687 Change-Id: I52e90fba86b113a557dd4d29d36ecb4c512f3f7a
| * Silence "Erratum 843419 found and fixed" info messages from gold.Rahul Chaudhry2016-02-162-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 26536732 Tested by building binutils on ubuntu, and using the newly built gold to link volantis binaries. The info messages are gone. This patch is backported from upstream - commit e3dbf58233db3ad72f1ba624dc7f13ffd2728f25 Author: Han Shen <shenhan@google.com> Date: Thu Feb 11 09:47:49 2016 -0800 Remove info message for every erratum 843419 found and fixed. 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com> * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove info message for every erratum 843419 found and fixed. Change-Id: I9792795096c919b006e98fdfdb01b448e597d605
| * Backport upstream patch to fix linker internal error.Han Shen2016-02-053-21/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error happens while linking a huge arm32 binary (for example, a debuggable chrome browser on arm) - the plt jump offset overflows. This fixes the problem by introducing another level of indirection. By default this does not affect anything. However in case of plt jump offset overflow, instead of triggering an internal error, the linker generates a proper message and suggests add "--long-plt" to the linker command. Tested via linking debug chrome browser for arm32. Also tested by build.py on android. The upstream patch - commit ce3e49806d505721e0875e704de0b6fcba7660ed Author: Peter Collingbourne <pcc@google.com> Date: Thu Dec 17 16:50:35 2015 -0800 Implement --long-plt flag (ARM only). gold/ PR gold/18780 * arm.cc (Target_arm::do_make_data_plt): Choose PLT generator based on value of --long-plt flag. (Output_data_plt_arm_standard::do_get_plt_entry_size): Moved to Output_data_plt_arm_short. (Output_data_plt_arm_standard::do_fill_plt_entry): Likewise. (Output_data_plt_arm_standard::plt_entry): Likewise. (Output_data_plt_arm_standard::do_fill_first_plt_entry): Fix variable reference. (Output_data_plt_arm_short): New class. (Output_data_plt_arm_short::do_fill_plt_entry): Error out on too large PLT offsets instead of asserting. (Output_data_plt_arm_long): New class. * options.h (General_options): Define --long-plt flag. Change-Id: Ia61126a09f2213d1ca5c3635ec9e5b36a63f6cf3
| * Backport trunk patch wrt wrong stub generated for aarch64 large DSOs.Han Shen2016-01-202-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested by build.py for linux aarch64 toolchains. The upstream patch is: commit 9a472eda40ba686e45bf4922455518ffa3c887e1 Author: Han Shen <shenhan@google.com> Date: Fri Jan 15 09:31:23 2016 -0800 [gold][aarch64] PR gold/19472 - DSOs need pc-relative stubs. The stub generated during relaxation uses absolute addressing mode for shared libraries, which is not correct. Use pc-relative addressing instead. gold/ChangeLog: 2016-01-15 Han Shen <shenhan@google.com> PR gold/19472 - DSOs need pc-relative stubs. * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative stub type for DSOs and pie executables. Change-Id: Id0022975cf93600117ff5bf300b9d736d6ad1f80
| * Backport trunk patch for not applying dynamic relocs.Han Shen2016-01-143-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note, there is a small change from the origin patch - while in the upstream patch, the option --no-apply-dynamic is default off, it is on by default in this CL. This should not bring any changes to android or chromeos, because the relocation value this CL changes is not used by chromeos, and is not used by android either (after the fix in bionic months ago). The backported patch is - commit 0eccf19f96d6218dd7c2f8d13f0546c2b942cc08 Author: Cary Coutant <ccoutant@gmail.com> Date: Thu Nov 5 12:24:14 2015 -0800 Add aarch64-specific --no-apply-dynamic-relocs option. With --no-apply-dynamic-relocs on aarch64 targets, gold will not apply link-time values for absolute relocations that become dynamic relocations. This provides a workaround for broken Android dynamic linkers that use the link-time value as an extra addend to the relocation. gold/ PR gold/19163 * aarch64.cc (Target_aarch64::Relocate::relocate): Don't apply certain relocations if --no-apply-dynamic-relocs is set. * options.h (--apply-dynamic-relocs): New aarch64-specific option. Tested - build whole toolchain and built android N9 image. Change-Id: Ida524bbee2a83574cd9e78ffdad9270787327c78
* | Merge branch 'master' of https://android.googlesource.com/toolchain/binutils ↵Wolfgang Wiedmeyer2016-01-141-2/+12
|\| | | | | | | into HEAD
| * Remove internal link in warning messages.Han Shen2016-01-121-2/+12
| | | | | | | | | | | | | | | | | | The go/unsafe-pie link should not appear in any warning messages, replace it with a little bit detail. Tested by building locally on ubuntu. Change-Id: I3e590108ec2c6c8917475b5d78cdabbfcf2833f7
* | fix build error with gold aarch64Wolfgang Wiedmeyer2016-01-071-1/+1
|/ | | | | | original from here: https://www.sourceware.org/ml/binutils/2015-07/msg00234.html Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Make genscripts.sh neutral to ChromeOS and Android.Han Shen2015-12-171-2/+28
| | | | | | | | | | | | | | ChromeOS reported a bug complaining about no default library search path after unification. Bug here - https://code.google.com/p/chromium/issues/detail?id=569605 Fix it for ChromeOS. This fix does not change anything for Android. Test: ChromeOS: manually test bug is fixed Android: ./build.py --host=linux --toolchain=x86_64 Change-Id: Ia900d081980d408c62a737917708e19842357e8e
* Merge "Fix darwin build failures (because of compilation warnings)."Han Shen2015-11-212-6/+16
|\