diff options
| author | Tayler Hetherington <[email protected]> | 2013-03-20 18:05:40 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:06 -0700 |
| commit | 233aa6826befc31aa6df6851c3201f354a09d6ed (patch) | |
| tree | 72bab4a40d6d3b79976d9ae7372d25f42596228b /cuobjdump_to_ptxplus/elf.y | |
| parent | b4b5ceba1150347a2059e75bf0fe43c93ea9163a (diff) | |
Fix for bug 47 - only comparing ".nv.global", ignoring trailing characters (such as ".nv.global.init")
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15562]
Diffstat (limited to 'cuobjdump_to_ptxplus/elf.y')
| -rw-r--r-- | cuobjdump_to_ptxplus/elf.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cuobjdump_to_ptxplus/elf.y b/cuobjdump_to_ptxplus/elf.y index fe471da..d620078 100644 --- a/cuobjdump_to_ptxplus/elf.y +++ b/cuobjdump_to_ptxplus/elf.y @@ -58,7 +58,7 @@ stcontent : stcontent stline | stline; stline : NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER IDENTIFIER { - if (strcmp($7, ".nv.global")==0) { + if(strncmp( $7, ".nv.global", 10)==0) { g_instList->setglobalVarShndx($6); } if (strcmp($4, "11")==0) { |
