)]}'
{
  "commit": "f2df3f65d0b4337cfb5b19eab3ee28b177427c49",
  "tree": "86d8aae1e9ef8c57721c886f67a915ba1897dc69",
  "parents": [
    "a6752f3f538e9dc0d0e7fdb2080532554a5eb395"
  ],
  "author": {
    "name": "Paulo Marques",
    "email": "pmarques@grupopie.com",
    "time": "Wed Feb 06 01:37:33 2008 -0800"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@woody.linux-foundation.org",
    "time": "Wed Feb 06 10:41:07 2008 -0800"
  },
  "message": "kallsyms should prefer non weak symbols\n\nWhen resolving symbol names from addresses with aliased symbol names,\nkallsyms_lookup always returns the first symbol, even if it is a weak\nsymbol.\n\nThis patch changes this by sorting the symbols with the weak symbols last\nbefore feeding them to the kernel.  This way the kernel runtime isn\u0027t\nchanged at all, only the kallsyms build system is changed.\n\nAnother side effect is that the symbols get sorted by address, too.  So,\neven if future binutils version have some bug in \"nm\" that makes it fail to\ncorrectly sort symbols by address, the kernel won\u0027t be affected by this.\n\nMathieu says:\n\n  I created a module in LTTng that uses kallsyms to get the symbol\n  corresponding to a specific system call address.  Unfortunately, all the\n  unimplemented syscalls were all referring to the (same) weak symbol\n  identifying an unrelated system call rather that sys_ni (or whatever\n  non-weak symbol would be expected).  Kallsyms was dumbly returning the first\n  symbol that matched.\n\n  This patch makes sure kallsyms returns the non-weak symbol when there is\n  one, which seems to be the expected result.\n\n[akpm@linux-foundation.org: coding-style fixes]\nSigned-off-by: Mathieu Desnoyers \u003cmathieu.desnoyers@polymtl.ca\u003e\nLooks-great-to: Rusty Russell \u003crusty@rustcorp.com.au\u003e\nCc: Sam Ravnborg \u003csam@ravnborg.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8fb87003d5d3ecb3cf2f46e8a83fec218c7e3535",
      "old_mode": 33188,
      "old_path": "scripts/kallsyms.c",
      "new_id": "c912137f80e247d0b8076e32f7386005127889a0",
      "new_mode": 33188,
      "new_path": "scripts/kallsyms.c"
    }
  ]
}
