[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/27391] [readelf] Handle absolute DW_AT_dwo_name
From: |
vries at gcc dot gnu.org |
Subject: |
[Bug binutils/27391] [readelf] Handle absolute DW_AT_dwo_name |
Date: |
Wed, 10 Feb 2021 13:04:18 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27391
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative patch:
...
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 84d63f63366..3cbd19710d7 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -11092,8 +11092,11 @@ load_dwo_file (const char * main_filename, const char
* name,
const char * dir,
char * separate_filename;
void * separate_handle;
- /* FIXME: Skip adding / if dwo_dir ends in /. */
- separate_filename = concat (dir, "/", name, NULL);
+ if (IS_ABSOLUTE_PATH (name))
+ separate_filename = strdup (name);
+ else
+ /* FIXME: Skip adding / if dwo_dir ends in /. */
+ separate_filename = concat (dir, "/", name, NULL);
if (separate_filename == NULL)
{
warn (_("Out of memory allocating dwo filename\n"));
...
--
You are receiving this mail because:
You are on the CC list for the bug.