]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
Fix patching functions which use __func__
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 9 May 2016 10:19:54 +0000 (11:19 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 9 May 2016 10:20:50 +0000 (11:20 +0100)
commit4bdd347ccefaa114fa5bcf425301bfc8e8eae753
tree3fe525c8862e6420452fbd1b806f2aed7fe94f50
parentb09aef65ffa2ab78cbdee641c82c9e588de45eaf
Fix patching functions which use __func__

If __func__ is used, it generates a symbol like __func__.5432
Since this is always included (see is_special_static), it will generate
duplicate symbol conflicts if GCC happens to use the same number (which
happens quite often since it doesn't appear to be random). To work
around this, rename the symbol to use a completely random number.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
create-diff-object.c