]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: rename ldirname to stat_ldirname
authorAndreas Schwab <schwab@suse.de>
Wed, 14 May 2025 15:09:45 +0000 (17:09 +0200)
committerAndreas Schwab <schwab@suse.de>
Thu, 15 May 2025 08:20:53 +0000 (10:20 +0200)
It conflicts with the ldirname function that will be added in the next
libiberty sync.

ld/:
* ldlang.c (stat_ldirname): Rename from ldirname, all uses
changed.

ld/ldlang.c

index e0368171fa908e1755dd4738348a6a8a0b9c697c..32e6e7abdf17eec587b2fc9cf64bb6f8cd5653cb 100644 (file)
@@ -322,7 +322,7 @@ spec_match (const struct wildcard_spec *spec, const char *name)
 }
 
 static char *
-ldirname (const char *name)
+stat_ldirname (const char *name)
 {
   const char *base = lbasename (name);
 
@@ -1266,7 +1266,7 @@ new_afile (const char *name,
       /* If name is a relative path, search the directory of the current linker
         script first. */
       if (from_filename && !IS_ABSOLUTE_PATH (name))
-       p->extra_search_path = ldirname (from_filename);
+       p->extra_search_path = stat_ldirname (from_filename);
       p->flags.real = true;
       p->flags.search_dirs = true;
       break;