summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/debugedit/files/debugedit-4.4.6-busted-paths-with-O0.patch')
-rw-r--r--dev-util/debugedit/files/debugedit-4.4.6-busted-paths-with-O0.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/dev-util/debugedit/files/debugedit-4.4.6-busted-paths-with-O0.patch b/dev-util/debugedit/files/debugedit-4.4.6-busted-paths-with-O0.patch
deleted file mode 100644
index fe2fec6e5553..000000000000
--- a/dev-util/debugedit/files/debugedit-4.4.6-busted-paths-with-O0.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- debugedit.c.orig 2007-11-07 05:54:25.093281634 +0000
-+++ debugedit.c 2007-11-07 06:23:15.481373200 +0000
-@@ -723,8 +723,31 @@
- }
- }
-
-- if (t->attr[i].attr == DW_AT_comp_dir) {
-- if (form == DW_FORM_strp &&
-+ else if (t->attr[i].attr == DW_AT_comp_dir)
-+ {
-+ if (form == DW_FORM_string)
-+ {
-+ free (comp_dir);
-+ comp_dir = strdup (ptr);
-+
-+ if (phase == 1 && dest_dir && has_prefix (ptr, base_dir))
-+ {
-+ base_len = strlen (base_dir);
-+ dest_len = strlen (dest_dir);
-+
-+ memcpy (ptr, dest_dir, dest_len);
-+ if (dest_len < base_len)
-+ {
-+ memset (ptr + dest_len, '/',
-+ base_len - dest_len);
-+
-+ }
-+ elf_flagdata (debug_sections[DEBUG_INFO].elf_data,
-+ ELF_C_SET, ELF_F_DIRTY);
-+ }
-+ }
-+
-+ else if (form == DW_FORM_strp &&
- debug_sections[DEBUG_STR].data)
- {
- char *dir;
-@@ -749,11 +772,8 @@
- ELF_C_SET, ELF_F_DIRTY);
- }
- }
-- else if (form == DW_FORM_string) {
-- free(comp_dir);
-- comp_dir = strdup (ptr);
-- }
- }
-+
- else if ((t->tag == DW_TAG_compile_unit
- || t->tag == DW_TAG_partial_unit)
- && t->attr[i].attr == DW_AT_name