From: Jan Beulich Date: Fri, 7 Jul 2023 12:10:21 +0000 (+0200) Subject: ld: fix build with old glibc / gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eae2847fbff56657a5d14909b574ab8ea718ee08;p=binutils-gdb.git ld: fix build with old glibc / gcc "rename" conflicts with a function of that name, which gcc from that same timeframe then complains about. Use a name matching that of struct input_remap's respective field. --- diff --git a/ld/ldfile.c b/ld/ldfile.c index 9d9c036dfab..df7c9cbd65e 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -199,7 +199,7 @@ ldfile_add_remap_file (const char * file) continue; } - char * rename = p; + char * renamed = p; /* Advance past the rename entry. */ while (*p && *p != '=' && *p != ' ' && *p != '\t' && *p != '\f' @@ -208,7 +208,7 @@ ldfile_add_remap_file (const char * file) /* And terminate it. */ *p = '\0'; - ldfile_add_remap (pattern, rename); + ldfile_add_remap (pattern, renamed); } while (! feof (f));