re PR target/74748 (libgcc_s.so.1 isn't created correctly for Blackfin FDPIC)

PR gcc/74748
	* libgcc/mkmap-symver.awk: add support for skip_underscore

From-SVN: r242933
This commit is contained in:
Thomas Petazzoni 2016-11-28 21:27:47 +00:00 committed by Jeff Law
parent 18df37ec1f
commit 7a0d2bce7f
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-11-28 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
PR gcc/74748
* libgcc/mkmap-symver.awk: add support for skip_underscore
2016-11-27 Iain Sandoe <iain@codesourcery.com>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

View File

@ -47,7 +47,11 @@ state == "nm" && ($1 == "U" || $2 == "U") {
state == "nm" && NF == 3 {
split ($3, s, "@")
def[s[1]] = 1;
if (skip_underscore && substr(s[1], 1, 1) == "_")
symname = substr(s[1], 2);
else
symname = s[1];
def[symname] = 1;
sawsymbol = 1;
next;
}