|
@@ -413,7 +413,7 @@ static int dso__synthesize_plt_symbols(struct dso *self, int v)
|
|
|
if (fd < 0)
|
|
|
goto out;
|
|
|
|
|
|
- elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
|
|
|
+ elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
|
|
|
if (elf == NULL)
|
|
|
goto out_close;
|
|
|
|
|
@@ -533,7 +533,7 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
|
|
|
Elf *elf;
|
|
|
int nr = 0, kernel = !strcmp("[kernel]", self->name);
|
|
|
|
|
|
- elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
|
|
|
+ elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
|
|
|
if (elf == NULL) {
|
|
|
if (v)
|
|
|
fprintf(stderr, "%s: cannot read %s ELF file.\n",
|
|
@@ -675,7 +675,7 @@ static char *dso__read_build_id(struct dso *self, int v)
|
|
|
if (fd < 0)
|
|
|
goto out;
|
|
|
|
|
|
- elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
|
|
|
+ elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
|
|
|
if (elf == NULL) {
|
|
|
if (v)
|
|
|
fprintf(stderr, "%s: cannot read %s ELF file.\n",
|