Module Name:    src
Committed By:   rin
Date:           Mon Aug 28 00:44:58 UTC 2023

Modified Files:
        src/external/gpl3/binutils/dist/gas: remap.c

Log Message:
binutils/gas: Drop our local fix for SSP

Introduced by:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/gas/remap.c#rev1.2

Upstream has already stopped using alloca(3).


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/remap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/remap.c
diff -u src/external/gpl3/binutils/dist/gas/remap.c:1.9 src/external/gpl3/binutils/dist/gas/remap.c:1.10
--- src/external/gpl3/binutils/dist/gas/remap.c:1.9	Sat Dec 24 20:17:05 2022
+++ src/external/gpl3/binutils/dist/gas/remap.c	Mon Aug 28 00:44:58 2023
@@ -76,13 +76,10 @@ remap_debug_filename (const char *filena
 
   for (map = debug_prefix_maps; map; map = map->next)
     if (filename_ncmp (filename, map->old_prefix, map->old_len) == 0)
-      break;
-  if (!map)
-    return xstrdup (filename);
-  const char *name = filename + map->old_len;
-  size_t name_len = strlen (name) + 1;
-  char *s = (char *) xmalloc (name_len + map->new_len);
-  memcpy (s, map->new_prefix, map->new_len);
-  memcpy (s + map->new_len, name, name_len);
-  return s;
+      {
+	const char *name = filename + map->old_len;
+	return concat (map->new_prefix, name, NULL);
+      }
+	
+  return xstrdup (filename);
 }

Reply via email to