Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(966)

Side by Side Diff: third_party/tcmalloc/vendor/src/base/elf_mem_image.cc

Issue 9701040: Revert 126715 - Update the tcmalloc vendor branch to r144 (gperftools 2.0). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 // --- 30 // ---
31 // Author: Paul Pluzhnikov 31 // Author: Paul Pluzhnikov
32 // 32 //
33 // Allow dynamic symbol lookup in an in-memory Elf image. 33 // Allow dynamic symbol lookup in an in-memory Elf image.
34 // 34 //
35 35
36 #include "base/elf_mem_image.h" 36 #include "base/elf_mem_image.h"
37 37
38 #ifdef HAVE_ELF_MEM_IMAGE // defined in elf_mem_image.h 38 #ifdef HAVE_ELF_MEM_IMAGE // defined in elf_mem_image.h
39 39
40 #include <stddef.h> // for size_t, ptrdiff_t
41 #include "base/logging.h" 40 #include "base/logging.h"
42 41
43 // From binutils/include/elf/common.h (this doesn't appear to be documented 42 // From binutils/include/elf/common.h (this doesn't appear to be documented
44 // anywhere else). 43 // anywhere else).
45 // 44 //
46 // /* This flag appears in a Versym structure. It means that the symbol 45 // /* This flag appears in a Versym structure. It means that the symbol
47 // is hidden, and is only visible with an explicit version number. 46 // is hidden, and is only visible with an explicit version number.
48 // This is a GNU extension. */ 47 // This is a GNU extension. */
49 // #define VERSYM_HIDDEN 0x8000 48 // #define VERSYM_HIDDEN 0x8000
50 // 49 //
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 } 423 }
425 info_.name = symbol_name; 424 info_.name = symbol_name;
426 info_.version = version_name; 425 info_.version = version_name;
427 info_.address = image->GetSymAddr(symbol); 426 info_.address = image->GetSymAddr(symbol);
428 info_.symbol = symbol; 427 info_.symbol = symbol;
429 } 428 }
430 429
431 } // namespace base 430 } // namespace base
432 431
433 #endif // HAVE_ELF_MEM_IMAGE 432 #endif // HAVE_ELF_MEM_IMAGE
OLDNEW
« no previous file with comments | « third_party/tcmalloc/vendor/src/base/dynamic_annotations.c ('k') | third_party/tcmalloc/vendor/src/base/googleinit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698