1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix a manifestation of GCC bug 16625 that caused ld >= 2.17 to fail on

64-bit PowerPC when linking multiple C++ files referencing the same
method, defined in a common header, when that method had a switch
statement with more than 4 cases. This change fixes compilation of LLVM
tblgen on 64-bit PPC with binutils 2.17.

Lots of help from:	dim
Upstream after:		more testing
This commit is contained in:
Nathan Whitehorn 2010-10-25 21:49:59 +00:00
parent 51297f7d79
commit 0a0025449d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/binutils-2.17/; revision=214360

View File

@ -9640,6 +9640,9 @@ ppc64_elf_action_discarded (asection *sec)
if (strcmp (".toc1", sec->name) == 0)
return 0;
if (strcmp (".got", sec->name) == 0)
return 0;
return _bfd_elf_default_action_discarded (sec);
}