elf_object.cc (2632:1bb2f91485ea) elf_object.cc (2634:db0b1133abd5)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <string>
30
31// Because of the -Wundef flag we have to do this
32#define __LIBELF_INTERNAL__ 0
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <string>
30
31// Because of the -Wundef flag we have to do this
32#define __LIBELF_INTERNAL__ 0
33// counterintuitive, but the flag below causes libelf to define
34// 64-bit elf types that apparently didn't exist in some older
35// versions of Linux. They seem to be there in 2.4.x, so don't
36// set this now (it causes things to break on 64-bit platforms).
37#define __LIBELF64_LINUX 0
38#define __LIBELF_NEED_LINK_H 0
39#define __LIBELF_SYMBOL_VERSIONS 0
40
33#define __LIBELF_NEED_LINK_H 0
34#define __LIBELF_SYMBOL_VERSIONS 0
35
41#include "libelf/libelf.h"
42#include "libelf/gelf.h"
36#include "gelf.h"
43
44#include "base/loader/elf_object.hh"
45#include "base/misc.hh"
46
47#include "base/loader/symtab.hh"
48
49#include "base/trace.hh" // for DPRINTF
50

--- 265 unchanged lines hidden ---
37
38#include "base/loader/elf_object.hh"
39#include "base/misc.hh"
40
41#include "base/loader/symtab.hh"
42
43#include "base/trace.hh" // for DPRINTF
44

--- 265 unchanged lines hidden ---