Skip to content

Commit

Permalink
PR gcc/74748
Browse files Browse the repository at this point in the history
	* libgcc/mkmap-symver.awk: add support for skip_underscore

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242933 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
law committed Nov 28, 2016
1 parent 687a7c2 commit 6c8f362
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions libgcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

Expand Down
6 changes: 5 additions & 1 deletion libgcc/mkmap-symver.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6c8f362

Please sign in to comment.