]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: dlltool: file name too long
authorAlan Modra <amodra@gmail.com>
Wed, 25 Sep 2024 01:12:36 +0000 (10:42 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 30 Sep 2024 23:05:49 +0000 (08:35 +0930)
commitd0285cdf58adf04e861cd1687f7ecec65937c99d
tree4c613eaae0df8d1f9b13e32bfc54bfa3abdf749c
parent444ae19249ac2d1221a01d87deb1aeceb535e5b4
Re: dlltool: file name too long

Allow for "snnnnn.o" suffix when testing against NAME_MAX, and tidy
TMP_STUB handling by overwriting a prior nnnnn.o string rather than
copying the entire name.

* dlltool.c (TMP_STUB): Add "nnnnn.o" to format.
(make_one_lib_file): Localise variables.  Don't copy TMP_STUB,
overwrite suffix instead.
(gen_lib_file): Similarly.
(main): Allow for max suffix when testing against NAME_MAX.
binutils/dlltool.c