aboutsummaryrefslogtreecommitdiffstats
path: root/main/elfutils/musl-canonicalize_file_name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/elfutils/musl-canonicalize_file_name.patch')
-rw-r--r--main/elfutils/musl-canonicalize_file_name.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/elfutils/musl-canonicalize_file_name.patch b/main/elfutils/musl-canonicalize_file_name.patch
new file mode 100644
index 0000000000..60e22bb5bb
--- /dev/null
+++ b/main/elfutils/musl-canonicalize_file_name.patch
@@ -0,0 +1,22 @@
+--- a/libdwfl/dwfl_build_id_find_elf.c 2015-10-12 12:22:58.000000000 +0200
++++ b/libdwfl/dwfl_build_id_find_elf.c 2015-11-20 05:13:10.972994172 +0100
+@@ -94,7 +94,7 @@
+ {
+ if (*file_name != NULL)
+ free (*file_name);
+- *file_name = canonicalize_file_name (name);
++ *file_name = realpath (name, NULL);
+ if (*file_name == NULL)
+ {
+ *file_name = name;
+--- a/libdwfl/find-debuginfo.c 2015-10-12 12:22:58.000000000 +0200
++++ b/libdwfl/find-debuginfo.c 2015-11-20 05:18:56.990967176 +0100
+@@ -372,7 +372,7 @@
+ /* If FILE_NAME is a symlink, the debug file might be associated
+ with the symlink target name instead. */
+
+- char *canon = canonicalize_file_name (file_name);
++ char *canon = realpath (file_name, NULL);
+ if (canon != NULL && strcmp (file_name, canon))
+ fd = find_debuginfo_in_path (mod, canon,
+ debuglink_file, debuglink_crc,