diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-profile.c | 15 | ||||
-rw-r--r-- | elf/dl-runtime.c | 8 |
2 files changed, 17 insertions, 6 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c index cc25b6105f..805624909b 100644 --- a/elf/dl-profile.c +++ b/elf/dl-profile.c @@ -179,8 +179,9 @@ _dl_start_profile (struct link_map *map, const char *output_dir) cannot_create: errnum = errno; __close (fd); - fprintf (stderr, "%s: cannot create file: %s\n", filename, - _strerror_internal (errnum, buf, sizeof buf)); + _dl_sysdep_error (filename, ": cannot create file: ", + _strerror_internal (errnum, buf, sizeof buf), + "\n", NULL); return; } @@ -192,8 +193,9 @@ _dl_start_profile (struct link_map *map, const char *output_dir) { __close (fd); wrong_format: - fprintf (stderr, "%s: file is no correct profile data file for `%s'\n", - filename, _dl_profile); + _dl_sysdep_error (filename, + ": file is no correct profile data file for `", + _dl_profile, "'\n", NULL); return; } @@ -204,8 +206,9 @@ _dl_start_profile (struct link_map *map, const char *output_dir) char buf[400]; int errnum = errno; __close (fd); - fprintf (stderr, "%s: cannot map file: %s\n", filename, - _strerror_internal (errnum, buf, sizeof buf)); + _dl_sysdep_error (filename, ": cannot map file: ", + _strerror_internal (errnum, buf, sizeof buf), + "\n", NULL); return; } diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c index 1b34026d38..8ee1838df9 100644 --- a/elf/dl-runtime.c +++ b/elf/dl-runtime.c @@ -166,6 +166,14 @@ fixup ( static ElfW(Addr) profile_fixup ( #ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS + ELF_MACHINE_RUNTIME_FIXUP_ARGS, +#endif + struct link_map *l, ElfW(Word) reloc_offset, ElfW(Addr) retaddr) + __attribute__ ((unused)); + +static ElfW(Addr) +profile_fixup ( +#ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS ELF_MACHINE_RUNTIME_FIXUP_ARGS, #endif struct link_map *l, ElfW(Word) reloc_offset, ElfW(Addr) retaddr) |