aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-07-07 14:10:21 +0200
committerJan Beulich <jbeulich@suse.com>2023-07-07 14:10:21 +0200
commiteae2847fbff56657a5d14909b574ab8ea718ee08 (patch)
tree9dfa842717c14e20709c318565f9d9a4f877d68e /ld/ldfile.c
parent13aa307c9a9086d34b555cecf5f9388fa9b062f1 (diff)
downloadgdb-eae2847fbff56657a5d14909b574ab8ea718ee08.zip
gdb-eae2847fbff56657a5d14909b574ab8ea718ee08.tar.gz
gdb-eae2847fbff56657a5d14909b574ab8ea718ee08.tar.bz2
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.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 9d9c036..df7c9cb 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));